com.tensegrity.palowebviewer.modules.widgets.client.actions
Class ActionProxy

java.lang.Object
  extended by com.tensegrity.palowebviewer.modules.widgets.client.actions.AbstractAction
      extended by com.tensegrity.palowebviewer.modules.widgets.client.actions.ActionProxy
All Implemented Interfaces:
IAction

public class ActionProxy
extends AbstractAction

A proxy for an action. The base action can be changed and listeners of the proxy actions will be notified of the change. It is used to add to some widget(or few of them) and afterwords define actual action


Constructor Summary
ActionProxy()
           
 
Method Summary
 IAction getAction()
           
 boolean isEnabled()
           
 void onActionPerformed(java.lang.Object arg)
           
 void setAction(IAction action)
           
 void setEnabled(boolean enabled)
           
 
Methods inherited from class com.tensegrity.palowebviewer.modules.widgets.client.actions.AbstractAction
addPropertyListener, notifyPropertyChangeListeners, removePropertyListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionProxy

public ActionProxy()
Method Detail

setAction

public void setAction(IAction action)

getAction

public IAction getAction()

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface IAction
Overrides:
isEnabled in class AbstractAction

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface IAction
Overrides:
setEnabled in class AbstractAction

onActionPerformed

public void onActionPerformed(java.lang.Object arg)