org.ow2.wildcat
Class WAction

java.lang.Object
  extended by org.ow2.wildcat.WAction

public abstract class WAction
extends Object

Define an action to be executed when an event is triggered

Author:
Mahmoud Ben Hassine

Field Summary
protected  String description
          The action description
protected  String name
          The action name
 
Constructor Summary
WAction()
           
WAction(String name, String description)
           
 
Method Summary
 String getDescription()
          Getter for the short description of the action
 WUpdateListener getListener()
          Getter for the listener
 String getName()
          Getter for the action name
abstract  void onEvent()
          Executed when the associated event is triggered
 void setDescription(String description)
          Setter for the short description of the action
 void setListener(WUpdateListener ul)
          Setter for the listener
 void setName(String name)
          Setter for the action name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
The action name


description

protected String description
The action description

Constructor Detail

WAction

public WAction()

WAction

public WAction(String name,
               String description)
Method Detail

getName

public String getName()
Getter for the action name

Returns:
the action name

getDescription

public String getDescription()
Getter for the short description of the action

Returns:
a short description of the action

setName

public void setName(String name)
Setter for the action name


setDescription

public void setDescription(String description)
Setter for the short description of the action


getListener

public WUpdateListener getListener()
Getter for the listener


setListener

public void setListener(WUpdateListener ul)
Setter for the listener


onEvent

public abstract void onEvent()
Executed when the associated event is triggered



Copyright © 2010 OW2 Consortium. All Rights Reserved.