org.ow2.frascati.explorer.action
Class AbstractAlwaysEnabledMenuItem<T>

java.lang.Object
  extended by org.ow2.frascati.explorer.action.AbstractAlwaysEnabledMenuItem<T>
All Implemented Interfaces:
org.objectweb.util.explorer.api.MenuItem

public abstract class AbstractAlwaysEnabledMenuItem<T>
extends java.lang.Object
implements org.objectweb.util.explorer.api.MenuItem

Abstract class implementing always enabled MenuItem.

Author:
Philippe Merle

Field Summary
 
Fields inherited from interface org.objectweb.util.explorer.api.MenuItem
DISABLED_STATUS, ENABLED_STATUS, NOT_VISIBLE_STATUS
 
Constructor Summary
AbstractAlwaysEnabledMenuItem()
           
 
Method Summary
 void actionPerformed(org.objectweb.util.explorer.api.MenuItemTreeView e)
           
protected  void execute(T selected)
          Execute something on the selected object.
protected  void execute(T selected, org.objectweb.util.explorer.api.MenuItemTreeView e)
          Execute something on the selected object.
 int getStatus(org.objectweb.util.explorer.api.TreeView treeView)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAlwaysEnabledMenuItem

public AbstractAlwaysEnabledMenuItem()
Method Detail

getStatus

public int getStatus(org.objectweb.util.explorer.api.TreeView treeView)
Specified by:
getStatus in interface org.objectweb.util.explorer.api.MenuItem
See Also:
MenuItem.getStatus(org.objectweb.util.explorer.api.TreeView)

actionPerformed

public final void actionPerformed(org.objectweb.util.explorer.api.MenuItemTreeView e)
Specified by:
actionPerformed in interface org.objectweb.util.explorer.api.MenuItem
See Also:
MenuItem.actionPerformed(org.objectweb.util.explorer.api.MenuItemTreeView)

execute

protected void execute(T selected,
                       org.objectweb.util.explorer.api.MenuItemTreeView e)
Execute something on the selected object. Can be override in sub-classes.


execute

protected void execute(T selected)
Execute something on the selected object.



Copyright © 2008-2010 OW2 Consortium. All Rights Reserved.