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. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
composedText
String composedText
- The text to be added by this action to the composed text.
next
State next
- The state this action leads to.
Action
public Action(State nextState)
- Constructor.
- Parameters:
nextState
- the state this action goes to.
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.