bibliothek.gui.dock.action
Class ActionType<D extends DockAction>

java.lang.Object
  extended by bibliothek.gui.dock.action.ActionType<D>
Type Parameters:
D - the specialized type of DockAction that uses this type

public class ActionType<D extends DockAction>
extends Object

The ActionType manly defines, how a DockAction is to be used. The ActionType is needed by the ActionViewConverter to create a view for a particular DockAction. Client code may create new ActionTypes, but must ensure that the ActionViewConverter knows these new types.

Author:
Benjamin Sigg

Field Summary
static ActionType<ButtonDockAction> BUTTON
          The action behaves like a button: it can be triggered, some action happens, and the original state is reestablished.
static ActionType<SelectableDockAction> CHECK
          The action behaves like a checkbox: when it is triggered, it changes it's state from selected to unselected, or vice versa.
static ActionType<DropDownAction> DROP_DOWN
          Represents a drop down action.
static ActionType<MenuDockAction> MENU
          The action is a group of other actions which are shown as soon as someone triggers the action.
static ActionType<SelectableDockAction> RADIO
          The action behaves like a radiobutton: when it is triggered, it changes to the selected-state, but some other actions may change to the unselected-state
static ActionType<SeparatorAction> SEPARATOR
          Represents a separator.
 
Constructor Summary
ActionType(String id)
          Creates a new ActionType.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BUTTON

public static final ActionType<ButtonDockAction> BUTTON
The action behaves like a button: it can be triggered, some action happens, and the original state is reestablished.


CHECK

public static final ActionType<SelectableDockAction> CHECK
The action behaves like a checkbox: when it is triggered, it changes it's state from selected to unselected, or vice versa.


RADIO

public static final ActionType<SelectableDockAction> RADIO
The action behaves like a radiobutton: when it is triggered, it changes to the selected-state, but some other actions may change to the unselected-state


MENU

public static final ActionType<MenuDockAction> MENU
The action is a group of other actions which are shown as soon as someone triggers the action.


SEPARATOR

public static final ActionType<SeparatorAction> SEPARATOR
Represents a separator.


DROP_DOWN

public static final ActionType<DropDownAction> DROP_DOWN
Represents a drop down action.

Constructor Detail

ActionType

public ActionType(String id)
Creates a new ActionType.

Parameters:
id - a unique identifier
Method Detail

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object