Package com.iizigo.text
Class CommonTextActions
java.lang.Object
com.iizigo.text.CommonTextActions
- All Implemented Interfaces:
- EventListener,- CaretListener,- SWTEventListener
Common text actions in the KString editors.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- final PartActionThe common actions.- final PartActionThe common actions.- final PartActionThe common actions.- final PartActionThe common actions.- final PartActionThe common actions.- final PartActionThe common actions.- final PartActionThe common actions.- final PartActionThe common actions.- final PartActionThe common actions.
- Constructor SummaryConstructorsConstructorDescription- CommonTextActions- (Shell shell, ModuleModel model, TextTableEditor editor, IVSAccessor vsAccessor, EditorTextTable defaultTextTable, IPropUndoRedo undoRedo, Boolean useTags) Constructor.
- Method SummaryModifier and TypeMethodDescription- void- assignTextControl- (KStringStyledText styledText) Assigns the StyledText instance for form editing.- void- assignTextControl- (Text text, ViewerCell cell) Assigns the Text instance for direct editing in tables.- void- caretMoved- (CaretEvent event) This method is called after the caret offset is changed.- void- dispose()Disposes of the instance.Gets the current KString from current cell.- voidShows the rich text dialog box.- void- updateStates- (KStringProp prop, boolean doUpdateTagsFromProp) Updates the states for the specified KString.
- Field Details- showRichTextThe common actions.
- insertImageThe common actions.
- insertHyperlinkThe common actions.
- insertTextIDTagThe common actions.
- insertTextVSTagThe common actions.
- entryTextThe common actions.
- entryTextTagThe common actions.
- entryHTMLThe common actions.
- entryHTMLTagThe common actions.
 
- Constructor Details- CommonTextActionspublic CommonTextActions- (Shell shell, ModuleModel model, TextTableEditor editor, IVSAccessor vsAccessor, EditorTextTable defaultTextTable, IPropUndoRedo undoRedo, Boolean useTags) Constructor.- Parameters:
- shell- The shell.
- model- The Module model.
- editor- The editor for table direct editing, can be null.
- vsAccessor- The VirtualSpace participant, null for none.
- defaultTextTable- The default text table to expand for new items, null for none.
- undoRedo- The undo/redo instance.
 
 
- Method Details- disposepublic void dispose()Disposes of the instance.
- assignTextControlAssigns the StyledText instance for form editing.
- assignTextControlAssigns the Text instance for direct editing in tables.
- getCurrentNonErroredKStringGets the current KString from current cell.- Returns:
- The KString, null for none (or KStringProp entry in error).
 
- updateStatesUpdates the states for the specified KString.- Parameters:
- prop- The current KStringProp, can be null for none.
 
- openRichTextDialogpublic void openRichTextDialog()Shows the rich text dialog box.
- caretMovedThis method is called after the caret offset is changed. The following event fields are used:- event.caretOffset the new caret offset (input)
 - Specified by:
- caretMovedin interface- CaretListener
- Parameters:
- event- the given event
- See Also: