|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.dnd.UserActionSet
public class UserActionSet
| 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 |
|---|
public UserActionSet(boolean includeExploration,
boolean includeDebug,
NakedObjectActionType type)
public UserActionSet(java.lang.String groupName,
UserActionSet parent)
public UserActionSet(java.lang.String groupName,
UserActionSet parent,
NakedObjectActionType type)
| Method Detail |
|---|
public void add(UserAction option)
public Consent disabled(View view)
UserAction
disabled in interface UserAction
public void execute(Workspace workspace,
View view,
Location at)
UserAction
execute in interface UserActionpublic Color getColor()
public java.lang.String getDescription(View view)
UserAction
getDescription in interface UserActionpublic java.lang.String getHelp(View view)
UserAction
getHelp in interface UserActionpublic UserAction[] getMenuOptions()
public java.lang.String getName(View view)
UserAction
getName in interface UserActionpublic NakedObjectActionType getType()
UserAction
getType in interface UserActionpublic void setColor(Color color)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||