Package com.iizigo.editor
Class SyntSelectionProvider.StyledText
java.lang.Object
com.iizigo.editor.SyntSelectionProvider
com.iizigo.editor.SyntSelectionProvider.StyledText
- All Implemented Interfaces:
IClipboardSelection
,ISelectionProvider
- Enclosing class:
- SyntSelectionProvider
Class for StyledText widget.
Nested Class Summary
Nested classes/interfaces inherited from class com.iizigo.editor.SyntSelectionProvider
SyntSelectionProvider.CCombo, SyntSelectionProvider.Combo, SyntSelectionProvider.IZ_CCombo, SyntSelectionProvider.Spinner, SyntSelectionProvider.StyledText, SyntSelectionProvider.Text
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionprotected Point
Gets the selection.protected void
_setSelection
(int begin, int end) Sets the selection.void
copy()
Copy.void
cut()
Cut.protected String
getText()
Gets the text.protected boolean
Checks if enabled.protected boolean
Checks if enabled.void
paste()
Pastes text.protected void
Sets the text.Methods inherited from class com.iizigo.editor.SyntSelectionProvider
addSelectionChangedListener, canCopy, canCut, canDelete, canPaste, delete, getSelection, removeSelectionChangedListener, selectAll, setSelection
Constructor Details
StyledText
Method Details
isEnabled
protected boolean isEnabled()Description copied from class:SyntSelectionProvider
Checks if enabled.- Specified by:
isEnabled
in classSyntSelectionProvider
getText
Description copied from class:SyntSelectionProvider
Gets the text.- Specified by:
getText
in classSyntSelectionProvider
setText
Description copied from class:SyntSelectionProvider
Sets the text.- Specified by:
setText
in classSyntSelectionProvider
isPassword
protected boolean isPassword()Description copied from class:SyntSelectionProvider
Checks if enabled.- Overrides:
isPassword
in classSyntSelectionProvider
copy
public void copy()Description copied from class:SyntSelectionProvider
Copy.- Specified by:
copy
in interfaceIClipboardSelection
- Specified by:
copy
in classSyntSelectionProvider
cut
public void cut()Description copied from class:SyntSelectionProvider
Cut.- Specified by:
cut
in interfaceIClipboardSelection
- Specified by:
cut
in classSyntSelectionProvider
paste
public void paste()Description copied from class:SyntSelectionProvider
Pastes text.- Specified by:
paste
in interfaceIClipboardSelection
- Specified by:
paste
in classSyntSelectionProvider
_setSelection
protected void _setSelection(int begin, int end) Description copied from class:SyntSelectionProvider
Sets the selection.- Specified by:
_setSelection
in classSyntSelectionProvider
_getSelection
Description copied from class:SyntSelectionProvider
Gets the selection.- Specified by:
_getSelection
in classSyntSelectionProvider