Package com.iizigo.editor
Class SyntSelectionProvider.Text
- java.lang.Object
-
- com.iizigo.editor.SyntSelectionProvider
-
- com.iizigo.editor.SyntSelectionProvider.Text
-
- All Implemented Interfaces:
IClipboardSelection
,org.eclipse.jface.viewers.ISelectionProvider
- Enclosing class:
- SyntSelectionProvider
public static class SyntSelectionProvider.Text extends SyntSelectionProvider
Class for Text widget.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.iizigo.editor.SyntSelectionProvider
SyntSelectionProvider.CCombo, SyntSelectionProvider.Combo, SyntSelectionProvider.Spinner, SyntSelectionProvider.StyledText, SyntSelectionProvider.Text
-
-
Constructor Summary
Constructors Constructor Description Text(org.eclipse.swt.widgets.Text c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.graphics.Point
_getSelection()
Gets the selection.protected void
_setSelection(int begin, int end)
Sets the selection.void
copy()
Copy.void
cut()
Cut.protected java.lang.String
getText()
Gets the text.protected boolean
isEnabled()
Checks if enabled.protected boolean
isPassword()
Checks if enabled.void
paste()
Pastes text.protected void
setText(java.lang.String s)
Sets the text.-
Methods inherited from class com.iizigo.editor.SyntSelectionProvider
addSelectionChangedListener, canCopy, canCut, canDelete, canPaste, delete, getSelection, removeSelectionChangedListener, selectAll, setSelection
-
-
-
-
Method Detail
-
isEnabled
protected boolean isEnabled()
Description copied from class:SyntSelectionProvider
Checks if enabled.- Specified by:
isEnabled
in classSyntSelectionProvider
-
getText
protected java.lang.String getText()
Description copied from class:SyntSelectionProvider
Gets the text.- Specified by:
getText
in classSyntSelectionProvider
-
setText
protected void setText(java.lang.String s)
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
protected org.eclipse.swt.graphics.Point _getSelection()
Description copied from class:SyntSelectionProvider
Gets the selection.- Specified by:
_getSelection
in classSyntSelectionProvider
-
-