org.nakedobjects.viewer.lightweight
Class MenuOptionSet
java.lang.Object
org.nakedobjects.viewer.lightweight.MenuOptionSet
- public class MenuOptionSet
- extends java.lang.Object
|
Method Summary |
void |
add(int section,
UserAction option)
|
Color |
getColor()
Returns the background colour for the menu |
java.util.Vector |
getMenuOptions(boolean includeDebug)
|
boolean |
isForView()
Determines if the menu is for a view or for whatever the view represents. |
void |
setColor(Color color)
Specifies the background colour for the menu |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WINDOW
public static final int WINDOW
- See Also:
- Constant Field Values
VIEW
public static final int VIEW
- See Also:
- Constant Field Values
OBJECT
public static final int OBJECT
- See Also:
- Constant Field Values
EXPLORATION
public static final int EXPLORATION
- See Also:
- Constant Field Values
DEBUG
public static final int DEBUG
- See Also:
- Constant Field Values
MenuOptionSet
public MenuOptionSet(boolean forView)
setColor
public void setColor(Color color)
- Specifies the background colour for the menu
getColor
public Color getColor()
- Returns the background colour for the menu
isForView
public boolean isForView()
- Determines if the menu is for a view or for whatever the view represents.
- Returns:
- true if for the view itself
getMenuOptions
public java.util.Vector getMenuOptions(boolean includeDebug)
add
public void add(int section,
UserAction option)
toString
public java.lang.String toString()