bibliothek.gui.dock.themes.basic.action
Interface BasicTrigger

All Known Subinterfaces:
BasicDropDownButtonTrigger
All Known Implementing Classes:
BasicButtonHandler, BasicDropDownButtonHandler, BasicHandler, BasicMenuHandler, BasicPanelPopupHandler, BasicSelectableHandler, BasicSelectableHandler.Check, BasicSelectableHandler.Radio

public interface BasicTrigger

Used as a callback by a BasicButtonModel to ensure the availability of properties and to inform when the user triggers a view like a button.

Author:
Benjamin Sigg

Method Summary
 DockAction getAction()
          Gets the DockAction which will be triggered by this object.
 Dockable getDockable()
          Gets the Dockable for which an action will be performed if this object is triggered.
 void triggered()
          Invoked by a BasicButtonModel when the button, which is monitored by the model, is clicked.
 

Method Detail

triggered

void triggered()
Invoked by a BasicButtonModel when the button, which is monitored by the model, is clicked.


getAction

DockAction getAction()
Gets the DockAction which will be triggered by this object. This is a completely optional method, as not every BasicTrigger is actually connected to a DockAction.

Returns:
the action, can be null

getDockable

Dockable getDockable()
Gets the Dockable for which an action will be performed if this object is triggered. This is a completely optional method, as not every BasicTrigger is actually connected to a Dockable.

Returns:
the associated dockable or null