public static interface SpenSDoc.ContentEventListener
SpenSDoc.registContentListener(int, ContentEventListener)| Modifier and Type | Field and Description |
|---|---|
static int |
CHANGED_CONTENT
The content is changed
|
static int |
CHANGED_TASK
The content's task is changed
|
static int |
CHANGED_TEXT
The content's text is changed
|
| Modifier and Type | Method and Description |
|---|---|
void |
onContentAdded(SpenSDoc sdoc,
ArrayList<SpenContentBase> contentList,
ArrayList<Integer> indexList)
Called when adding contents.
This API will not be called on Undo/Redo. |
void |
onContentChanged(SpenSDoc sdoc,
ArrayList<SpenContentBase> contentList,
ArrayList<Integer> indexList,
ArrayList<Integer> changedTypeList,
ArrayList<Integer> historyPosList)
Called when changing contents.
This API will not be called on Undo/Redo. |
void |
onContentRemoved(SpenSDoc sdoc,
ArrayList<SpenContentBase> contentList,
ArrayList<Integer> indexList)
Called when removing contents.
This API will not be called on Undo/Redo. |
void |
onThumbnailAddable(SpenSDoc sdoc,
boolean addable)
Called when the thumbnail addable state is changed.
|
static final int CHANGED_CONTENT
static final int CHANGED_TASK
static final int CHANGED_TEXT
void onContentAdded(SpenSDoc sdoc, ArrayList<SpenContentBase> contentList, ArrayList<Integer> indexList)
sdoc - The sdoc instance to which a content is added.contentList - The list of content instance, that added.indexList - The list of content's index to be added.void onContentRemoved(SpenSDoc sdoc, ArrayList<SpenContentBase> contentList, ArrayList<Integer> indexList)
sdoc - The sdoc instance to which a content is added.contentList - The list of content instance, that removed.indexList - The list of content's index to be removed.void onContentChanged(SpenSDoc sdoc, ArrayList<SpenContentBase> contentList, ArrayList<Integer> indexList, ArrayList<Integer> changedTypeList, ArrayList<Integer> historyPosList)
sdoc - The sdoc instance to which a content is added.contentList - The list of content instance, that changed.indexList - The list of content's index to be changed.changedTypeList - The list of content's changed type.historyPosList - The list of content's changed index.void onThumbnailAddable(SpenSDoc sdoc, boolean addable)
sdoc - The sdoc instance to which a content is added.addable - The thumbnail is addable or not.