|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdesktop.wonderland.common.security.Action
public abstract class Action
An action that a user can perform on a resource. This is the common superclass of all actions in the Wonderland system. An action can be any class that extends Action and has a public, no-argument construtor.
Actions are typically referred to by class, so are not designed to be stateful or mutable.
| Constructor Summary | |
|---|---|
protected |
Action(java.lang.String name)
Create a new top-level action with the given name |
protected |
Action(java.lang.String name,
java.lang.Class parentClass)
Create a new action with the given name and parent |
protected |
Action(java.lang.String name,
java.lang.Class parentClass,
java.lang.String displayName,
java.lang.String toolTip)
Create a new action with the given name and parent |
| Method Summary | ||
|---|---|---|
boolean |
equals(java.lang.Object obj)
Two actions are the same if they have the same name |
|
java.lang.String |
getDisplayName()
Get the name to display for this action. |
|
static
|
getInstance(java.lang.Class<T> actionClazz)
Instantiate an action class |
|
java.lang.String |
getName()
Get this action's name |
|
Action |
getParent()
Get this actions parent |
|
java.lang.Class |
getParentClass()
Get the class of this action's parent. |
|
java.lang.String |
getToolTip()
Get the tool tip associated with this action |
|
int |
hashCode()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Action(java.lang.String name)
name - the name of the action to created
protected Action(java.lang.String name,
java.lang.Class parentClass)
name - the name of the action to createparentClass - the class of this action's parent
protected Action(java.lang.String name,
java.lang.Class parentClass,
java.lang.String displayName,
java.lang.String toolTip)
name - the name of the action to createparentClass - the class of this action's parent| Method Detail |
|---|
public java.lang.String getName()
public Action getParent()
public java.lang.Class getParentClass()
public java.lang.String getDisplayName()
public java.lang.String getToolTip()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare to
public int hashCode()
hashCode in class java.lang.Objectpublic static <T extends Action> T getInstance(java.lang.Class<T> actionClazz)
class - the action class to instantiate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||