org.nakedobjects.viewer.lightweight.view
Class TextField.Selection

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.view.TextField.Selection
Enclosing class:
TextField

public class TextField.Selection
extends java.lang.Object


Constructor Summary
TextField.Selection()
           
 
Method Summary
 void extendTo(Location at)
          extends the selection so the end point is the same as the cursor.
 void extendTo(TextField.CursorPosition pos)
           
 TextField.CursorPosition from()
           
 void resetTo(TextField.CursorPosition pos)
          clears the selection so nothing is selected.
 void selectSentence()
           
 void selectWord()
          set the selection to be for the word marked by the current cursor
 TextField.CursorPosition to()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextField.Selection

public TextField.Selection()
Method Detail

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()