pt.moredata.dataentry.action
Class TestAction

java.lang.Object
  extended bypt.moredata.dataentry.action.TestAction
All Implemented Interfaces:
Action

public class TestAction
extends java.lang.Object
implements Action

Classe de teste.

Author:
pcarmo

Constructor Summary
TestAction()
           
 
Method Summary
 ResponseMessage actionPerformed(ActionEvent event)
          Description of the Method
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a PropertyChange listener.
 java.lang.Object getValue(java.lang.String key)
          Gets one of this object's properties using the associated key.
 boolean isEnabled()
          Returns the enabled state of the Action.
 void putValue(java.lang.String key, java.lang.Object value)
          Sets one of this object's properties using the associated key.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a PropertyChange listener.
 void setEnabled(boolean b)
          Sets the enabled state of the Action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAction

public TestAction()
Method Detail

actionPerformed

public ResponseMessage actionPerformed(ActionEvent event)
Description of the Method

Specified by:
actionPerformed in interface Action
Parameters:
event - Description of the Parameter
Returns:
Description of the Return Value

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChange listener. Containers and attached components use these methods to register interest in this Action object. When its enabled state or other property changes, the registered listeners are informed of the change.

Parameters:
listener - a PropertyChangeListener object

getValue

public java.lang.Object getValue(java.lang.String key)
Gets one of this object's properties using the associated key.

Parameters:
key - Description of the Parameter
Returns:
The value value
See Also:
putValue(java.lang.String, java.lang.Object)

isEnabled

public boolean isEnabled()
Returns the enabled state of the Action. When enabled, any component associated with this object is active and able to fire this object's actionPerformed method.

Specified by:
isEnabled in interface Action
Returns:
true if this Action is enabled

putValue

public void putValue(java.lang.String key,
                     java.lang.Object value)
Sets one of this object's properties using the associated key. If the value has changed, a PropertyChangeEvent is sent to listeners.

Parameters:
key - a String containing the key
value - an Object value

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChange listener.

Parameters:
listener - a PropertyChangeListener object
See Also:
addPropertyChangeListener(java.beans.PropertyChangeListener)

setEnabled

public void setEnabled(boolean b)
Sets the enabled state of the Action. When enabled, any component associated with this object is active and able to fire this object's actionPerformed method. If the value has changed, a PropertyChangeEvent is sent to listeners.

Specified by:
setEnabled in interface Action
Parameters:
b - true to enable this Action, false to disable it