@API(type=NOT_EXTENDABLE, src=PRIVATE) public class AuthorComponentProvider extends ro.sync.ecss.extensions.api.component.InternalComponentProvider implements DisplayModeConstants, EditorComponentProvider
AuthorAccess
API.Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTES_PANEL_ID
Attributes Panel
|
protected boolean |
detectionFinished
True if the detection finished
|
static int |
ELEMENTS_PANEL_ID
Elements Panel
|
static int |
ENTITIES_PANEL_ID
Entities Panel
|
protected static ro.sync.exml.MessageBundle |
messages
The messages resource bundle.
|
static int |
MODEL_PANEL_ID
Model Panel
|
static int |
OUTLINER_PANEL_ID
Outliner Panel
|
static int |
REVIEWS_PANEL_ID
Reviews Panel
|
DISPLAY_MODE_BLOCK_TAGS, DISPLAY_MODE_FULL_TAGS, DISPLAY_MODE_FULL_TAGS_WITH_ATTRS, DISPLAY_MODE_INLINE_TAGS, DISPLAY_MODE_NO_TAGS, DISPLAY_MODE_PARTIAL_TAGS
Modifier and Type | Method and Description |
---|---|
void |
addAuthorComponentListener(AuthorComponentListener listener)
Adds an author component listener.
|
java.util.List<javax.swing.JToolBar> |
createExtensionActionsToolbars()
Deprecated.
Please use instead the method ((WSAuthorComponentEditorPage)getWSEditorAccess().getCurrentPage()).createExtensionActionsToolbars();
|
java.io.Reader |
createReader()
Create a reader over the editor's current page content
|
javax.swing.JComponent |
getAdditionalEditHelper(int helperID)
Get an additional edit helper panel.
|
AuthorAccess |
getAuthorAccess()
Deprecated.
Please use instead the method ((WSAuthorEditorPage)getWSEditorAccess().getCurrentPage()).getAuthorAccess().
|
java.util.Map<java.lang.String,javax.swing.AbstractAction> |
getAuthorCommonActions()
Deprecated.
Please use instead the method ((WSAuthorEditorPage)getWSEditorAccess().getCurrentPage()).getActionsProvider().getAuthorCommonActions().
|
java.util.Map<java.lang.String,javax.swing.AbstractAction> |
getAuthorExtensionActions()
Deprecated.
Please use instead the method ((WSAuthorEditorPage)getWSEditorAccess().getCurrentPage()).getActionsProvider().getAuthorExtensionActions().
|
java.awt.Component |
getEditorComponent()
Get the main editor panel.
|
protected java.lang.Object |
getEditorKey() |
java.awt.Component |
getStatusComponent()
Get the status panel which shows the status of the edited document.
|
WSEditor |
getWSEditorAccess()
Get the access to the WS Editor.
|
boolean |
isModified()
Check if the component is modified
|
void |
load(java.net.URL url,
java.io.Reader reader)
Sets the content to edit.
|
void |
print(boolean preview)
Print the author component content.
|
void |
removeAuthorComponentListener(AuthorComponentListener listener)
Removes an author component listener.
|
void |
save()
Save the content back to the original URL from where it was loaded using the internal support.
|
void |
setBreadCrumbPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
Deprecated.
Please use instead the method ((WSAuthorComponentEditorPage)getWSEditorAccess().getCurrentPage()).setBreadCrumbPopUpCustomizer();
|
void |
setEditorPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
Deprecated.
Please use instead the method ((WSAuthorEditorPage)getWSEditorAccess().getCurrentPage())addPopUpMenuCustomizer(AuthorPopupMenuCustomizer popUpCustomizer)
|
void |
setModified(boolean modified)
Sets the modified status.
|
void |
setOutlinerPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
Deprecated.
Please use instead the method ((WSAuthorComponentEditorPage)getWSEditorAccess().getCurrentPage()).setOutlinerPopUpCustomizer();
|
void |
showBreadCrumb(boolean showBreadCrumb)
Deprecated.
Please use instead the method ((WSAuthorComponentEditorPage)getWSEditorAccess().getCurrentPage()).showBreadCrumbPanel();
|
void |
showLocation(java.net.URL url)
Show the location referenced by a given URL in the editor.
|
void |
showLocation(java.net.URL url,
java.io.Reader reader)
Show the location referenced by a given URL in the editor.
|
protected static final ro.sync.exml.MessageBundle messages
protected boolean detectionFinished
public static final int OUTLINER_PANEL_ID
public static final int ATTRIBUTES_PANEL_ID
public static final int MODEL_PANEL_ID
public static final int ELEMENTS_PANEL_ID
public static final int ENTITIES_PANEL_ID
public static final int REVIEWS_PANEL_ID
public void save()
public void load(java.net.URL url, java.io.Reader reader) throws AuthorComponentException
This does not guarantee that the set content has been interpreted, you should set an
AuthorComponentListener
and listen for documentTypeChanged()
before using
the author extension actions.
load
in interface ComponentProvider
url
- URL to load, can be null
if the reader is specified
If no XML content reader is given, the URL will be used both to obtain the
content and to solve relative references (eg: images).
If the XML content reader is also given, the URL will only be used to solve
relative references from the file.reader
- The reader.AuthorComponentException
- When there was a load problem (eg: IOException).public void showLocation(java.net.URL url, java.io.Reader reader) throws AuthorComponentException
EditorComponentProvider
showLocation
in interface EditorComponentProvider
url
- The URL to show location for.reader
- The reader over the URL, can be null.AuthorComponentException
- When there was a load problem (eg: IOException).EditorComponentProvider.showLocation(java.net.URL, java.io.Reader)
public java.io.Reader createReader()
public void addAuthorComponentListener(AuthorComponentListener listener)
addAuthorComponentListener
in interface EditorComponentProvider
listener
- The listener.public void removeAuthorComponentListener(AuthorComponentListener listener)
removeAuthorComponentListener
in interface EditorComponentProvider
listener
- The listener.public java.awt.Component getEditorComponent()
ComponentProvider
getEditorComponent
in interface ComponentProvider
public java.awt.Component getStatusComponent()
ComponentProvider
getStatusComponent
in interface ComponentProvider
@Deprecated public java.util.Map<java.lang.String,javax.swing.AbstractAction> getAuthorExtensionActions()
This should get called after each load as the extension actions depend on the loaded document type.
null
if no actions available.@Deprecated public java.util.Map<java.lang.String,javax.swing.AbstractAction> getAuthorCommonActions()
public boolean isModified()
true
if the component is modified.public void setModified(boolean modified)
modified
- true
to flag as modified.@Deprecated public AuthorAccess getAuthorAccess()
public WSEditor getWSEditorAccess()
getWSEditorAccess
in interface ComponentProvider
protected java.lang.Object getEditorKey()
getEditorKey
in class ro.sync.ecss.extensions.api.component.InternalComponentProvider
@Deprecated public void setEditorPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
popUpCustomizer
- The pop Up Customizer.@Deprecated public void setOutlinerPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
popUpCustomizer
- The pop Up Customizer.@Deprecated public void showBreadCrumb(boolean showBreadCrumb)
showBreadCrumb
- true
to show the Bread Crumb.@Deprecated public void setBreadCrumbPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
popUpCustomizer
- The pop Up Customizer.public javax.swing.JComponent getAdditionalEditHelper(int helperID)
getAdditionalEditHelper
in interface EditorComponentProvider
helperID
- One of:
public void print(boolean preview)
print
in interface ComponentProvider
preview
- true
to show the Print Preview dialog, false
to show the Print dialog.@Deprecated public java.util.List<javax.swing.JToolBar> createExtensionActionsToolbars()
public void showLocation(java.net.URL url) throws AuthorComponentException
url
- The URL to show location for.AuthorComponentException
- When there was a load problem (eg: IOException).© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.