public interface IEditorListener
Modifier and Type | Method and Description |
---|---|
void |
activeBlockChanged(Editor editor,
java.lang.String blockId)
Invoked when the active block has changed.
|
void |
contentChanged(Editor editor,
java.lang.String[] blockIds)
Invoked when the content has changed.
|
void |
onError(Editor editor,
java.lang.String blockId,
EditorError err,
java.lang.String message)
Invoked when an error has occurred.
|
void |
partChanged(Editor editor)
Invoked when the part associated with the listened editor has changed.
|
void |
partChanging(Editor editor,
ContentPart oldPart,
ContentPart newPart)
Invoked when the part associated with the listened editor is about to change.
|
void |
selectionChanged(Editor editor,
java.lang.String[] blockIds)
Invoked when the selection has changed.
|
void partChanging(Editor editor, ContentPart oldPart, ContentPart newPart)
editor
- the editor.oldPart
- the old part.newPart
- the new part.Editor.setPart(ContentPart)
void partChanged(Editor editor)
editor
- the editor.Editor.setPart(ContentPart)
void contentChanged(Editor editor, java.lang.String[] blockIds)
editor
- the editor associated to the part that contains the modified content.blockIds
- the identifiers of the modified blocks.void onError(Editor editor, java.lang.String blockId, EditorError err, java.lang.String message)
editor
- the editor associated to block on which the error has occurred.blockId
- the identifier of the block on which this error has occurred.err
- the error code corresponding to the error.message
- the error message.void selectionChanged(Editor editor, java.lang.String[] blockIds)
editor
- the editor that performed the selection change.blockIds
- the identifiers of the selected blocks.void activeBlockChanged(Editor editor, java.lang.String blockId)
editor
- the editor that performed the selection change.blockId
- the identifier of the active block.