bibliothek.gui.dock.common.intern.action.panel
Class BasicPanelPopupHandler

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.AbstractBasicHandler<D,BasicButtonModel>
      extended by bibliothek.gui.dock.themes.basic.action.BasicHandler<CPanelPopup.PanelPopup>
          extended by bibliothek.gui.dock.common.intern.action.panel.BasicPanelPopupHandler
All Implemented Interfaces:
ViewItem<JComponent>, BasicResourceInitializer, BasicTitleViewItem<JComponent>, BasicTrigger

public class BasicPanelPopupHandler
extends BasicHandler<CPanelPopup.PanelPopup>

A handler for a CPanelPopup which is shown in a title as button.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.themes.basic.action.BasicHandler
BasicHandler.Listener
 
Constructor Summary
BasicPanelPopupHandler(CPanelPopup.PanelPopup action, Dockable dockable)
          Creates a new handler.
 
Method Summary
 void setModel(BasicButtonModel model)
          Sets the model to which all properties of the action are transfered.
 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
 
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

BasicPanelPopupHandler

public BasicPanelPopupHandler(CPanelPopup.PanelPopup action,
                              Dockable dockable)
Creates a new handler.

Parameters:
action - the action for which this handler is used
dockable - the element for which the action is used
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<CPanelPopup.PanelPopup>

setModel

public void setModel(BasicButtonModel model)
Description copied from class: AbstractBasicHandler
Sets the model to which all properties of the action are transfered.

Overrides:
setModel in class AbstractBasicHandler<CPanelPopup.PanelPopup,BasicButtonModel>
Parameters:
model - the model