|
Oxygen XML Editor 13.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectro.sync.ecss.extensions.api.component.AuthorComponentProvider
@API(type=NOT_EXTENDABLE, src=PRIVATE) public class AuthorComponentProvider
A component encapsulating all the visual editing part.
Developers can set the XML and CSS files, and access the document through the AuthorAccess
API.
Field Summary | |
---|---|
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 |
static int |
MODEL_PANEL_ID
Model Panel |
static int |
OUTLINER_PANEL_ID
Outliner Panel |
Method Summary | |
---|---|
void |
addAuthorComponentListener(AuthorComponentListener listener)
Adds an author component listener. |
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()
Get the author access used to perform various operations on the Author Page. |
java.util.Map<java.lang.String,javax.swing.AbstractAction> |
getAuthorCommonActions()
Get the map of author common actions (undo, redo, cut, copy, paste, etc). |
java.util.Map<java.lang.String,javax.swing.AbstractAction> |
getAuthorExtensionActions()
Gets the map of author extension actions. |
java.awt.Component |
getEditorComponent()
|
java.awt.Component |
getStatusComponent()
|
WSEditor |
getWSEditorAccess()
Get the access to the WS Editor. |
boolean |
isModified()
|
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)
The Pop-up customizer can be used to add/remove actions from the pop-up menu in the Author bread crumb before showing it. |
void |
setEditorPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
The Pop-up customizer can be used to add/remove actions from the pop-up menu in the Author page editor before showing it. |
void |
setModified(boolean modified)
Sets the modified status. |
void |
setOutlinerPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
The Pop-up customizer can be used to add/remove actions from the pop-up menu in the Author Outliner view before showing it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Method Detail |
---|
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.
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 java.io.Reader createReader()
public void addAuthorComponentListener(AuthorComponentListener listener)
listener
- The listener.public void removeAuthorComponentListener(AuthorComponentListener listener)
listener
- The listener.public java.awt.Component getEditorComponent()
public java.awt.Component getStatusComponent()
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.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.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
public AuthorAccess getAuthorAccess()
public WSEditor getWSEditorAccess()
public void setEditorPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
popUpCustomizer
- The pop Up Customizer.public void setOutlinerPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
popUpCustomizer
- The pop Up Customizer.public void setBreadCrumbPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
popUpCustomizer
- The pop Up Customizer.public javax.swing.JComponent getAdditionalEditHelper(int helperID)
helperID
- One of:
public void print(boolean preview)
preview
- true
to show the Print Preview dialog, false
to show the Print dialog.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
|
Oxygen XML Editor 13.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |