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

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

public class TextField.CursorPosition
extends java.lang.Object


Method Summary
 void asFor(TextField.CursorPosition pos)
           
 void cursorAt(Location atLocation)
           
 int getCharacter()
           
 int getLine()
           
 void home()
          Move the cursor to the top-left hand of the field
 void left()
          Movet the cursor left by one character.
 void lineDown()
          Move down one line.
 void lineUp()
          Move up one line.
 void moveForward(int characters)
          Move the cursor right by one character.
 void pageDown()
          Move down one line.
 void pageUp()
          Move cursor up by a page
 void right()
          Move the cursor right by one character.
 void top()
          Move the cursor to the top-left of the field
 java.lang.String toString()
           
 void wordLeft()
          Move the cursor left to the beginning of the previous word.
 void wordRight()
          Move the cursor right to the end of the current word.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCharacter

public int getCharacter()
Returns:
the character within this line.

getLine

public int getLine()
Returns:
the line within the field

asFor

public void asFor(TextField.CursorPosition pos)

cursorAt

public void cursorAt(Location atLocation)

home

public void home()
Move the cursor to the top-left hand of the field


left

public void left()
Movet the cursor left by one character.


lineDown

public void lineDown()
Move down one line.


lineUp

public void lineUp()
Move up one line.


moveForward

public void moveForward(int characters)
Move the cursor right by one character.


pageDown

public void pageDown()
Move down one line.


pageUp

public void pageUp()
Move cursor up by a page


right

public void right()
Move the cursor right by one character.


toString

public java.lang.String toString()

top

public void top()
Move the cursor to the top-left of the field


wordLeft

public void wordLeft()
Move the cursor left to the beginning of the previous word.


wordRight

public void wordRight()
Move the cursor right to the end of the current word.