|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WSAuthorEditorPageBase
Provides access to methods related to the Author editor actions and information.
*********************************
EXPERIMENTAL - Subject to change
*********************************
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 |
addAuthorCaretListener(AuthorCaretListener caretListener)
Adds a caret listener to the Author page. |
void |
addAuthorMouseListener(AuthorMouseListener mouseListener)
Adds a mouse listener to the current author page. |
AuthorHighlighter |
getHighlighter()
Get the highlighter which can be used to add/remove/manage the custom user highlights |
void |
refresh()
Reload the CSS files and perform a refresh on the whole document to recompute the layout and the styles for all the nodes based on the new CSS files content. |
void |
refresh(AuthorNode authorNode)
Refresh the rendering layout and CSS styles for this node and all its contents. |
void |
removeAuthorCaretListener(AuthorCaretListener caretListener)
Removes the specified caret listener from the Author page. |
void |
removeAuthorMouseListener(AuthorMouseListener mouseListener)
Removes the specified mouse listener from the current author page. |
AuthorViewToModelInfo |
viewToModel(int x,
int y)
Get the position in the document corresponding to the point in the author viewport component. |
Methods inherited from interface ro.sync.exml.workspace.api.editor.page.WSTextBasedEditorPage |
---|
deleteSelection, getCaretOffset, getLocationOnScreenAsPoint, getSelectedText, getSelectionEnd, getSelectionStart, getWordAtCaret, hasSelection, modelToViewRectangle, select, selectWord, setCaretPosition, viewToModelOffset |
Method Detail |
---|
AuthorViewToModelInfo viewToModel(int x, int y)
x
- The "x" coordinate relative to the viewport origin.y
- The "y" coordinate relative to the viewport origin.
AuthorViewToModelInfo
containing the offset and the node
at offset corresponding to the given point. The method does not return null
,
instead an undefined view to model info object is returned if a valid one could not be determined.void addAuthorMouseListener(AuthorMouseListener mouseListener)
mouseListener
- The AuthorMouseListener
to be added.void removeAuthorMouseListener(AuthorMouseListener mouseListener)
mouseListener
- The AuthorMouseListener
to be removed.void addAuthorCaretListener(AuthorCaretListener caretListener)
caretListener
- The AuthorCaretListener
to be added.void removeAuthorCaretListener(AuthorCaretListener caretListener)
caretListener
- The AuthorCaretListener
to be removed.void refresh(AuthorNode authorNode)
authorNode
- The node for which the layout and styles will be recomputed.void refresh()
AuthorHighlighter getHighlighter()
|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |