Interface ContentEditingManager.OnContentEditingContentChangeListener
-
- All Implemented Interfaces:
public interface ContentEditingManager.OnContentEditingContentChangeListener
Listener for content editing changes.
-
-
Method Summary
Modifier and Type Method Description void
onContentSelectionChange(UUID contentId, int selStart, int selEnd, StyleInfo styleInfo, boolean styleWasChanged)
Called when the cursor position/selection has changed Mainly used to update the content editing toolbar to show the proper text style for the current cursor position. void
onStartEditingContentBlock(UUID contentId)
Called when the provided block goes into editing mode (need to change the frame style and display the editing widget now) void
onFinishEditingContentBlock(UUID contentId)
Called when the provided block goes out of editing mode (loses focus, or global content editing mode is being finished) void
onContentChange(UUID contentId)
Called when the content has successfully been changed. void
onTextBlockStyleChange(UUID contentId, TextBlockStyleInfo textBlockStyleInfo)
Called when a style that affects the whole textblock has successfully been changed. -
-
Method Detail
-
onContentSelectionChange
void onContentSelectionChange(UUID contentId, int selStart, int selEnd, StyleInfo styleInfo, boolean styleWasChanged)
Called when the cursor position/selection has changed Mainly used to update the content editing toolbar to show the proper text style for the current cursor position.
- Parameters:
contentId
- id of the content blockselStart
- start position of the selectionselEnd
- end position of the selection, also the cursor positionstyleInfo
- style info of the content block
-
onStartEditingContentBlock
void onStartEditingContentBlock(UUID contentId)
Called when the provided block goes into editing mode (need to change the frame style and display the editing widget now)
- Parameters:
contentId
- id of the content block
-
onFinishEditingContentBlock
void onFinishEditingContentBlock(UUID contentId)
Called when the provided block goes out of editing mode (loses focus, or global content editing mode is being finished)
- Parameters:
contentId
- id of the content block
-
onContentChange
void onContentChange(UUID contentId)
Called when the content has successfully been changed.
- Parameters:
contentId
- id of the changed content block
-
onTextBlockStyleChange
void onTextBlockStyleChange(UUID contentId, TextBlockStyleInfo textBlockStyleInfo)
Called when a style that affects the whole textblock has successfully been changed.
- Parameters:
contentId
- id of the changed content blocktextBlockStyleInfo
- style info of the changed content block
-
-
-
-