guk.im
Class Action

java.lang.Object
  |
  +--guk.im.Action

public class Action
extends Object

Defines an action in the FSM of the input method. An action starts from a state and goes into another one adding perhaps something to the composed text.


Field Summary
(package private)  String composedText
          The text to be added by this action to the composed text.
(package private)  State next
          The state this action leads to.
 
Constructor Summary
Action(State nextState)
          Constructor.
 
Method Summary
 String getComposedText()
          Gets the composed text added by this action.
 State getNext()
          Gets the state this action leads to.
 void setComposedText(String text)
          Sets the composed text to be added by this action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

composedText

String composedText
The text to be added by this action to the composed text.


next

State next
The state this action leads to.

Constructor Detail

Action

public Action(State nextState)
Constructor.

Parameters:
nextState - the state this action goes to.
Method Detail

setComposedText

public void setComposedText(String text)
Sets the composed text to be added by this action

Parameters:
text -

getComposedText

public String getComposedText()
Gets the composed text added by this action.


getNext

public State getNext()
Gets the state this action leads to.