bibliothek.gui.dock.themes.basic.action
Class BasicButtonHandler

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.AbstractBasicHandler<D,BasicButtonModel>
      extended by bibliothek.gui.dock.themes.basic.action.BasicHandler<ButtonDockAction>
          extended by bibliothek.gui.dock.themes.basic.action.BasicButtonHandler
All Implemented Interfaces:
ViewItem<JComponent>, BasicResourceInitializer, BasicTitleViewItem<JComponent>, BasicTrigger

public class BasicButtonHandler
extends BasicHandler<ButtonDockAction>

A handler to connect a ButtonDockAction with a BasicButtonModel.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.themes.basic.action.BasicHandler
BasicHandler.Listener
 
Constructor Summary
BasicButtonHandler(ButtonDockAction action, Dockable dockable)
          Creates the new handler.
 
Method Summary
 void triggered()
          Invoked by a BasicButtonModel when the button, which is monitored by the model, is clicked.
 
Methods inherited from class bibliothek.gui.dock.themes.basic.action.BasicHandler
bind, createListener, getItem, setBackground, setForeground, setOrientation, unbind
 
Methods inherited from class bibliothek.gui.dock.themes.basic.action.AbstractBasicHandler
addBorder, ensureBorder, getAction, getDockable, getModel, isBound, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.themes.basic.action.BasicTrigger
getAction, getDockable
 
Methods inherited from interface bibliothek.gui.dock.action.view.ViewItem
getAction
 

Constructor Detail

BasicButtonHandler

public BasicButtonHandler(ButtonDockAction action,
                          Dockable dockable)
Creates the new handler.

Parameters:
action - the action to observe
dockable - the dockable for which the action is shown
Method Detail

triggered

public void triggered()
Description copied from interface: BasicTrigger
Invoked by a BasicButtonModel when the button, which is monitored by the model, is clicked.

Specified by:
triggered in interface BasicTrigger
Specified by:
triggered in class BasicHandler<ButtonDockAction>