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

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.AbstractBasicHandler<D,BasicButtonModel>
      extended by bibliothek.gui.dock.themes.basic.action.BasicHandler<SelectableDockAction>
          extended by bibliothek.gui.dock.themes.basic.action.BasicSelectableHandler
All Implemented Interfaces:
ViewItem<JComponent>, BasicResourceInitializer, BasicTitleViewItem<JComponent>, BasicTrigger
Direct Known Subclasses:
BasicSelectableHandler.Check, BasicSelectableHandler.Radio

public abstract class BasicSelectableHandler
extends BasicHandler<SelectableDockAction>

A handler connecting a SelectableDockAction with a BasicButtonModel.

Author:
Benjamin Sigg

Nested Class Summary
static class BasicSelectableHandler.Check
          An implementation used to connect a SelectableDockAction of type ActionType.CHECK with a BasicButtonModel
static class BasicSelectableHandler.Radio
          An implementation used to connect a SelectableDockAction of type ActionType.RADIO with a BasicButtonModel
 
Constructor Summary
BasicSelectableHandler(SelectableDockAction action, Dockable dockable)
          Creates a new handler
 
Method Summary
 void bind()
          Binds this item to its action
 void unbind()
          Unbinds this item from its action
 
Methods inherited from class bibliothek.gui.dock.themes.basic.action.BasicHandler
createListener, getItem, setBackground, setForeground, setOrientation, triggered
 
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

BasicSelectableHandler

public BasicSelectableHandler(SelectableDockAction 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

bind

public void bind()
Description copied from interface: ViewItem
Binds this item to its action

Specified by:
bind in interface ViewItem<JComponent>
Overrides:
bind in class BasicHandler<SelectableDockAction>

unbind

public void unbind()
Description copied from interface: ViewItem
Unbinds this item from its action

Specified by:
unbind in interface ViewItem<JComponent>
Overrides:
unbind in class BasicHandler<SelectableDockAction>