org.nakedobjects.viewer.lightweight
Class MenuOptionSet

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.MenuOptionSet

public class MenuOptionSet
extends java.lang.Object


Field Summary
static int DEBUG
           
static int EXPLORATION
           
static int OBJECT
           
static int VIEW
           
static int WINDOW
           
 
Constructor Summary
MenuOptionSet(boolean forView)
           
 
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
 

Field Detail

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
Constructor Detail

MenuOptionSet

public MenuOptionSet(boolean forView)
Method Detail

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()