|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface EditorComponentProvider
Provides access to a created editor + helper views and additional panels. The editor might have multiple editor pages.
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.
Method Summary | |
---|---|
void |
addAuthorComponentListener(AuthorComponentListener listener)
Adds an author component listener. |
javax.swing.JComponent |
getAdditionalEditHelper(int helperID)
Get an additional edit helper panel. |
java.awt.Component |
getEditorComponent()
Get the main editor panel. |
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. |
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 |
showLocation(java.net.URL url,
java.io.Reader reader)
Show the location referenced by a given URL in the editor. |
Method Detail |
---|
WSEditor getWSEditorAccess()
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).void showLocation(java.net.URL url, java.io.Reader reader) throws AuthorComponentException
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).void addAuthorComponentListener(AuthorComponentListener listener)
listener
- The listener.void removeAuthorComponentListener(AuthorComponentListener listener)
listener
- The listener.javax.swing.JComponent getAdditionalEditHelper(int helperID)
helperID
- One of:
java.awt.Component getEditorComponent()
java.awt.Component getStatusComponent()
void print(boolean preview)
preview
- true
to show the Print Preview dialog, false
to show the Print dialog.
|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |