org.nakedobjects.viewer.lightweight.view
Class TextField.Selection
java.lang.Object
org.nakedobjects.viewer.lightweight.view.TextField.Selection
- Enclosing class:
- TextField
- public class TextField.Selection
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TextField.Selection
public TextField.Selection()
extendTo
public void extendTo(Location at)
- extends the selection so the end point is the same as the cursor.
- Parameters:
at -
extendTo
public void extendTo(TextField.CursorPosition pos)
from
public TextField.CursorPosition from()
resetTo
public void resetTo(TextField.CursorPosition pos)
- clears the selection so nothing is selected. The start and end points are set to the same values as the cursor.
selectSentence
public void selectSentence()
selectWord
public void selectWord()
- set the selection to be for the word marked by the current cursor
to
public TextField.CursorPosition to()
toString
public java.lang.String toString()