Package docking.menu
Class ActionState<T>
- java.lang.Object
-
- docking.menu.ActionState<T>
-
- Type Parameters:
T
- the type of the action state
public class ActionState<T> extends java.lang.Object
Note: this class overrides the equals(Object) and relies upon the equals method of the userData object. Thus, if it is important that equals work for you in the non-standard identity way, then you must override equals in your user data objects.
-
-
Constructor Summary
Constructors Constructor Description ActionState(java.lang.String name, javax.swing.Icon icon, T userData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
HelpLocation
getHelpLocation()
javax.swing.Icon
getIcon()
java.lang.String
getName()
T
getUserData()
int
hashCode()
void
setHelpLocation(HelpLocation helpLocation)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ActionState
public ActionState(java.lang.String name, javax.swing.Icon icon, T userData)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getIcon
public javax.swing.Icon getIcon()
-
getUserData
public T getUserData()
-
setHelpLocation
public void setHelpLocation(HelpLocation helpLocation)
-
getHelpLocation
public HelpLocation getHelpLocation()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-