Interface EditorComponentProvider
-
- All Superinterfaces:
ComponentProvider
- All Known Implementing Classes:
AbstractComponentProvider
,AuthorComponentProvider
,GenericEditorComponentProvider
@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface EditorComponentProvider extends ComponentProvider
Provides access to a created editor + helper views and additional panels. The editor might have multiple editor pages.- Since:
- 14.2
-
-
Field Summary
Fields Modifier and Type Field Description static int
ATTRIBUTES_PANEL_ID
Attributes Panelstatic int
ELEMENTS_PANEL_ID
Elements Panelstatic int
ENTITIES_PANEL_ID
Entities Panelstatic int
MODEL_PANEL_ID
Model Panelstatic int
OUTLINER_PANEL_ID
Outliner Panelstatic int
REVIEWS_PANEL_ID
Reviews Panel
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAuthorComponentListener(AuthorComponentListener listener)
Adds an author component listener.javax.swing.JComponent
getAdditionalEditHelper(int helperID)
Get an additional edit helper panel.void
removeAuthorComponentListener(AuthorComponentListener listener)
Removes an author component listener.void
showLocation(java.net.URL url, java.io.Reader reader)
Show the location referenced by a given URL in the editor.-
Methods inherited from interface ro.sync.ecss.extensions.api.component.ComponentProvider
getEditorComponent, getStatusComponent, getWSEditorAccess, load, print
-
-
-
-
Field Detail
-
OUTLINER_PANEL_ID
static final int OUTLINER_PANEL_ID
Outliner Panel- See Also:
- Constant Field Values
-
ATTRIBUTES_PANEL_ID
static final int ATTRIBUTES_PANEL_ID
Attributes Panel- See Also:
- Constant Field Values
-
MODEL_PANEL_ID
static final int MODEL_PANEL_ID
Model Panel- See Also:
- Constant Field Values
-
ELEMENTS_PANEL_ID
static final int ELEMENTS_PANEL_ID
Elements Panel- See Also:
- Constant Field Values
-
ENTITIES_PANEL_ID
static final int ENTITIES_PANEL_ID
Entities Panel- See Also:
- Constant Field Values
-
REVIEWS_PANEL_ID
static final int REVIEWS_PANEL_ID
Reviews Panel- See Also:
- Constant Field Values
-
-
Method Detail
-
showLocation
void showLocation(java.net.URL url, java.io.Reader reader) throws AuthorComponentException
Show the location referenced by a given URL in the editor.
If the document pointed by this URL is different than the document currently loaded in the editor page, this URL will be used to set the content to edit, to solve relative references (eg: images) and to show the location pointed by the URL reference part.
If the document pointed by this URL is currently loaded in the editor page, only the reference part of the given URL will be used to show the corresponding location in the editor.- Parameters:
url
- The URL to show location for.reader
- The reader over the URL, can be null.- Throws:
AuthorComponentException
- When there was a load problem (eg: IOException).
-
addAuthorComponentListener
void addAuthorComponentListener(AuthorComponentListener listener)
Adds an author component listener.- Parameters:
listener
- The listener.
-
removeAuthorComponentListener
void removeAuthorComponentListener(AuthorComponentListener listener)
Removes an author component listener.- Parameters:
listener
- The listener.
-
getAdditionalEditHelper
javax.swing.JComponent getAdditionalEditHelper(int helperID)
Get an additional edit helper panel. It can be the outline, attributes, entities, elements or model helper component, depending on the ID.- Parameters:
helperID
- One of:- ATTRIBUTES_PANEL_ID,
- ELEMENTS_PANEL_ID,
- ENTITIES_PANEL_ID,
- MODEL_PANEL_ID,
- OUTLINER_PANEL_ID constants.
- Returns:
- The additional component.
-
-