bibliothek.gui.dock.action.view
Interface ViewItem<A>

Type Parameters:
A - the type of item that is wrapped
All Known Subinterfaces:
BasicTitleViewItem<A>, DropDownViewItem, MenuViewItem<C>
All Known Implementing Classes:
AbstractDropDownHandler, AbstractMenuHandler, BasicButtonHandler, BasicDropDownButtonHandler, BasicHandler, BasicMenuHandler, BasicPanelPopupHandler, BasicPanelPopupMenuHandler, BasicPanelPopupMenuItemHandler, BasicSelectableHandler, BasicSelectableHandler.Check, BasicSelectableHandler.Radio, BasicSeparatorHandler, BubbleSeparator, ButtonDropDownHandler, ButtonMenuHandler, ConnectingViewItem, DropDownMenuHandler, MenuMenuHandler, RoundButtonViewItem, SelectableDropDownHandler, SelectableMenuHandler, SubDropDownHandler

public interface ViewItem<A>

A wrapper for an item that will be shown somewhere.

Author:
Benjamin Sigg

Method Summary
 void bind()
          Binds this item to its action
 DockAction getAction()
          Gets the action that is represented by this target.
 A getItem()
          Gets this item as component.
 void unbind()
          Unbinds this item from its action
 

Method Detail

bind

void bind()
Binds this item to its action


unbind

void unbind()
Unbinds this item from its action


getItem

A getItem()
Gets this item as component.

Returns:
this item, depending on the subclass this may or may not be null

getAction

DockAction getAction()
Gets the action that is represented by this target.

Returns:
the action, might be null