org.jagatoo.input.actions
Class AbstractLabeledInputAction

java.lang.Object
  extended by org.jagatoo.input.actions.AbstractInputAction
      extended by org.jagatoo.input.actions.AbstractLabeledInputAction
All Implemented Interfaces:
InputAction, LabeledInputAction

public abstract class AbstractLabeledInputAction
extends AbstractInputAction
implements LabeledInputAction

An InputAction can be bound to an arbitrary InputDevice's component. It is executed on a state-change.


Constructor Summary
AbstractLabeledInputAction(int ordinal, java.lang.String text)
           
 
Method Summary
 java.lang.String getLocalizedText()
          
 java.lang.String getText()
          
 
Methods inherited from class org.jagatoo.input.actions.AbstractInputAction
ordinal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jagatoo.input.actions.InputAction
ordinal
 

Constructor Detail

AbstractLabeledInputAction

public AbstractLabeledInputAction(int ordinal,
                                  java.lang.String text)
Method Detail

getText

public final java.lang.String getText()

Specified by:
getText in interface LabeledInputAction
Returns:
a description-text for this InputAction.

getLocalizedText

public java.lang.String getLocalizedText()

Specified by:
getLocalizedText in interface LabeledInputAction
Returns:
a localozed descriptive text for this InputAction. You should prefer this method over LabeledInputAction.getText().