org.malai.interaction
Class TextChangedTransition

java.lang.Object
  extended by org.malai.interaction.Transition
      extended by org.malai.interaction.TextChangedTransition
All Implemented Interfaces:
ITransition

public class TextChangedTransition
extends Transition

This transition corresponds to a change of the text of a text field.

This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN

Malai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

06/01/2010

Since:
0.1
Author:
Arnaud BLOUIN

Field Summary
protected  java.lang.String text
          The modified text.
protected  javax.swing.text.JTextComponent textComp
          The modified text field.
 
Fields inherited from class org.malai.interaction.Transition
hid, inputState, outputState
 
Constructor Summary
TextChangedTransition(SourceableState inputState, TargetableState outputState)
          Transition.Transition(SourceableState, TargetableState)
 
Method Summary
 java.lang.String getText()
           
 javax.swing.text.JTextComponent getTextComp()
           
 void setText(java.lang.String text)
          Sets the modified text.
 void setTextComp(javax.swing.text.JTextComponent textComp)
          Sets the modified text field.
 
Methods inherited from class org.malai.interaction.Transition
action, getHid, getInputState, getOutputState, isGuardRespected, setHid, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

textComp

protected javax.swing.text.JTextComponent textComp
The modified text field.


text

protected java.lang.String text
The modified text.

Constructor Detail

TextChangedTransition

public TextChangedTransition(SourceableState inputState,
                             TargetableState outputState)
Transition.Transition(SourceableState, TargetableState)

Method Detail

getTextComp

public javax.swing.text.JTextComponent getTextComp()
Returns:
The modified text field.
Since:
0.1

getText

public java.lang.String getText()
Returns:
The modified text.
Since:
0.1

setTextComp

public void setTextComp(javax.swing.text.JTextComponent textComp)
Sets the modified text field.

Parameters:
textComp - The modified text field. Must not be null.
Since:
0.1

setText

public void setText(java.lang.String text)
Sets the modified text.

Parameters:
text - The modified text.
Since:
0.1