org.nakedobjects.viewer.classic.view
Class ExplorationOption
java.lang.Object
org.nakedobjects.viewer.classic.event.popup.MenuOption
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExplorationOption
protected ExplorationOption(Action action,
java.lang.String labelName)
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