org.nakedobjects.viewer.classic.view
Class ExplorationOption

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

public class ExplorationOption
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 ExplorationOption(Action action, java.lang.String labelName)
           
 
Method Summary
 void action(MenuOptionTarget target, java.awt.Point at)
           
static void menuOptions(NakedObject object, 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.
 java.lang.String toString()
           
 boolean veto(MenuOptionTarget target)
           
 
Methods inherited from class org.nakedobjects.viewer.classic.event.popup.MenuOption
getName, getType, runAction, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExplorationOption

protected ExplorationOption(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(NakedObject object,
                               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.


toString

public java.lang.String toString()
Overrides:
toString in class MenuOption

veto

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