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

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

public class BasicMenuHandler
extends BasicHandler<MenuDockAction>

A handler connecting a MenuDockAction 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
BasicMenuHandler(MenuDockAction action, Dockable dockable)
          Creates a 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

BasicMenuHandler

public BasicMenuHandler(MenuDockAction action,
                        Dockable dockable)
Creates a new handler

Parameters:
action - the action which is observed by this handler
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<MenuDockAction>