VdexReload 1.1.3 API

uk.ac.reload.dweezil.menu
Class ProxyAction

java.lang.Object
  extended byuk.ac.reload.dweezil.menu.ProxyAction
All Implemented Interfaces:
MenuActionListener

public abstract class ProxyAction
extends java.lang.Object
implements MenuActionListener

This Proxy Action is performed when a Main Menu Action (like Delete, or Save) is performed


Field Summary
protected  MenuAction _proxyMenuAction
          The Menu Action we are listening for
 
Constructor Summary
ProxyAction(MenuAction proxyMenuAction)
          Constructor
 
Method Summary
 void addListener()
          Add Listener to Menu Action
 MenuAction getMenuAction()
          Get the MenuAction
 java.lang.String getText()
          Gets the Menu Item text
 boolean isEnabled()
          Whether it is enabled
 void removeAllListeners()
          Call this to clean up
 void removeListener()
          Call this to clean up
 void setEnabled(boolean enabled)
          Set the Menu Item enabled or disabled
 void setText(java.lang.String text)
          Set the Menu Item Text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.reload.dweezil.menu.MenuActionListener
menuActionPerformed
 

Field Detail

_proxyMenuAction

protected MenuAction _proxyMenuAction
The Menu Action we are listening for

Constructor Detail

ProxyAction

public ProxyAction(MenuAction proxyMenuAction)
Constructor

Parameters:
proxyMenuAction -
Method Detail

removeListener

public void removeListener()
Call this to clean up


removeAllListeners

public void removeAllListeners()
Call this to clean up


addListener

public void addListener()
Add Listener to Menu Action


setEnabled

public void setEnabled(boolean enabled)
Set the Menu Item enabled or disabled

Parameters:
enabled -

setText

public void setText(java.lang.String text)
Set the Menu Item Text

Parameters:
text -

getText

public java.lang.String getText()
Gets the Menu Item text

Returns:
The text

isEnabled

public boolean isEnabled()
Whether it is enabled

Returns:
true if enabled, false otherwise

getMenuAction

public MenuAction getMenuAction()
Get the MenuAction

Returns:
the MenuAction

VdexReload 1.1.3 API