org.nakedobjects.plugins.dnd
Class UserActionSet

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.UserActionSet
All Implemented Interfaces:
UserAction

public class UserActionSet
extends java.lang.Object
implements UserAction


Field Summary
 
Fields inherited from interface org.nakedobjects.plugins.dnd.UserAction
DEBUG, EXPLORATION, USER
 
Constructor Summary
UserActionSet(boolean includeExploration, boolean includeDebug, NakedObjectActionType type)
           
UserActionSet(java.lang.String groupName, UserActionSet parent)
           
UserActionSet(java.lang.String groupName, UserActionSet parent, NakedObjectActionType type)
           
 
Method Summary
 void add(UserAction option)
          Add the specified option if it is of the right type for this menu.
 Consent disabled(View view)
          Indicate that this action is disabled
 void execute(Workspace workspace, View view, Location at)
          Invoke this action.
 Color getColor()
          Returns the background colour for the menu
 java.lang.String getDescription(View view)
          Returns the description of the action.
 java.lang.String getHelp(View view)
          Returns the help text for the action.
 UserAction[] getMenuOptions()
           
 java.lang.String getName(View view)
          Returns the name of the action as the user will refer to it.
 NakedObjectActionType getType()
          Returns the type of action: user, exploration, debug, or a set.
 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
 

Constructor Detail

UserActionSet

public UserActionSet(boolean includeExploration,
                     boolean includeDebug,
                     NakedObjectActionType type)

UserActionSet

public UserActionSet(java.lang.String groupName,
                     UserActionSet parent)

UserActionSet

public UserActionSet(java.lang.String groupName,
                     UserActionSet parent,
                     NakedObjectActionType type)
Method Detail

add

public void add(UserAction option)
Add the specified option if it is of the right type for this menu.


disabled

public Consent disabled(View view)
Description copied from interface: UserAction
Indicate that this action is disabled

Specified by:
disabled in interface UserAction

execute

public void execute(Workspace workspace,
                    View view,
                    Location at)
Description copied from interface: UserAction
Invoke this action.

Specified by:
execute in interface UserAction

getColor

public Color getColor()
Returns the background colour for the menu


getDescription

public java.lang.String getDescription(View view)
Description copied from interface: UserAction
Returns the description of the action.

Specified by:
getDescription in interface UserAction

getHelp

public java.lang.String getHelp(View view)
Description copied from interface: UserAction
Returns the help text for the action.

Specified by:
getHelp in interface UserAction

getMenuOptions

public UserAction[] getMenuOptions()

getName

public java.lang.String getName(View view)
Description copied from interface: UserAction
Returns the name of the action as the user will refer to it.

Specified by:
getName in interface UserAction

getType

public NakedObjectActionType getType()
Description copied from interface: UserAction
Returns the type of action: user, exploration, debug, or a set.

Specified by:
getType in interface UserAction

setColor

public void setColor(Color color)
Specifies the background colour for the menu


toString

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


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.