|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nakedobjects.viewer.classic.event.popup.MenuOption
Each option that a user is shown in an objects popup menu a MenuOption. A MenuOption details: the name of an option (in the users language);
getName( )
Field Summary | |
static boolean |
ALLOW
Specified option is presently allowed to be executed. |
static int |
COMPONENT
Indicates a MenuOption for a visual component. |
static int |
EXPLORATION
Indicates a MenuOption for a developer or debugging. |
static int |
OBJECT
Indicates a MenuOption for an NakedInterface. |
static boolean |
VETO
Specified option is to be disallowed - might be offered but is not presently allowed. |
static int |
VIEW
Indicates a MenuOption for a View . |
Constructor Summary | |
MenuOption()
Constructs a default menu option with no name and the type set to VIEW. |
|
MenuOption(java.lang.String name,
int type)
Constructs a menu option with specified name and types. |
Method Summary | |
abstract void |
action(MenuOptionTarget componentAction,
java.awt.Point at)
|
java.lang.String |
getName()
|
int |
getType()
returns the type of the menu option. |
void |
runAction(MenuOptionTarget target,
java.awt.Point at)
|
void |
setName(java.lang.String name)
|
java.lang.String |
toString()
|
boolean |
veto(MenuOptionTarget componentAction)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int COMPONENT
public static final int VIEW
View
.
public static final int OBJECT
public static final int EXPLORATION
public static final boolean VETO
public static final boolean ALLOW
Constructor Detail |
public MenuOption()
public MenuOption(java.lang.String name, int type)
Method Detail |
public abstract void action(MenuOptionTarget componentAction, java.awt.Point at)
public java.lang.String getName()
public int getType()
public void runAction(MenuOptionTarget target, java.awt.Point at)
public void setName(java.lang.String name)
public java.lang.String toString()
public boolean veto(MenuOptionTarget componentAction)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |