bibliothek.gui.dock.action.view
Class ViewTarget<A>

java.lang.Object
  extended by bibliothek.gui.dock.action.view.ViewTarget<A>
Type Parameters:
A - the resulting type of a transformation

public class ViewTarget<A>
extends Object

Defines for which platform a DockAction is transformed to by a ActionViewConverter. Clients may define their own ViewTargets, but they must ensure, that the ActionViewConverter knows these new targets.

Author:
Benjamin Sigg

Field Summary
static ViewTarget<DropDownViewItem> DROP_DOWN
          A target aiming to a DropDownAction
static ViewTarget<MenuViewItem<JComponent>> MENU
          A target for a JMenu
static ViewTarget<BasicTitleViewItem<JComponent>> TITLE
          A target for an item shown on a DockTitle
 
Constructor Summary
ViewTarget(String id)
          Creates a new ViewTarget.
 
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

MENU

public static final ViewTarget<MenuViewItem<JComponent>> MENU
A target for a JMenu


TITLE

public static final ViewTarget<BasicTitleViewItem<JComponent>> TITLE
A target for an item shown on a DockTitle


DROP_DOWN

public static final ViewTarget<DropDownViewItem> DROP_DOWN
A target aiming to a DropDownAction

Constructor Detail

ViewTarget

public ViewTarget(String id)
Creates a new ViewTarget.

Parameters:
id - the unique id of this target
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