org.nakedobjects.viewer.classic
Class ClassOption

java.lang.Object
  extended byorg.nakedobjects.viewer.classic.event.popup.MenuOption
      extended byorg.nakedobjects.viewer.classic.ClassOption

public class ClassOption
extends MenuOption

Options for an underlying object determined dynamically by looking for methods starting with action, veto and option for specifying the action, vetoing the option and giving the option an name respectively.


Field Summary
 
Fields inherited from class org.nakedobjects.viewer.classic.event.popup.MenuOption
ALLOW, COMPONENT, EXPLORATION, OBJECT, VETO, VIEW
 
Constructor Summary
protected ClassOption(Action action, java.lang.String labelName)
           
 
Method Summary
 void action(MenuOptionTarget target, java.awt.Point at)
           
static void menuOptions(NakedClass nakedClass, MenuOptionSet menuOptionSet)
          Queries the ObjectInterface class for the ObjectInterface for the specified object and looks for Options to offer to the user adding them to the MenuOptionSet.
 boolean veto(MenuOptionTarget target)
           
 
Methods inherited from class org.nakedobjects.viewer.classic.event.popup.MenuOption
getName, getType, runAction, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassOption

protected ClassOption(Action action,
                      java.lang.String labelName)
Method Detail

action

public void action(MenuOptionTarget target,
                   java.awt.Point at)
Specified by:
action in class MenuOption

menuOptions

public static void menuOptions(NakedClass nakedClass,
                               MenuOptionSet menuOptionSet)
Queries the ObjectInterface class for the ObjectInterface for the specified object and looks for Options to offer to the user adding them to the MenuOptionSet.


veto

public boolean veto(MenuOptionTarget target)
Overrides:
veto in class MenuOption