bibliothek.gui.dock.themes.basic.action.dropdown
Class SelectableDropDownHandler.Check

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler<javax.swing.JMenuItem,S>
      extended by bibliothek.gui.dock.themes.basic.action.dropdown.AbstractDropDownHandler<SelectableDockAction>
          extended by bibliothek.gui.dock.themes.basic.action.dropdown.SelectableDropDownHandler
              extended by bibliothek.gui.dock.themes.basic.action.dropdown.SelectableDropDownHandler.Check
All Implemented Interfaces:
ViewItem<javax.swing.JComponent>, DropDownViewItem, MenuViewItem<javax.swing.JComponent>
Enclosing class:
SelectableDropDownHandler

public static class SelectableDropDownHandler.Check
extends SelectableDropDownHandler

A connection representing a check-box.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.themes.basic.action.dropdown.SelectableDropDownHandler
SelectableDropDownHandler.Check, SelectableDropDownHandler.Radio
 
Field Summary
 
Fields inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler
action, dockable, item
 
Constructor Summary
SelectableDropDownHandler.Check(SelectableDockAction action, Dockable dockable, javax.swing.JMenuItem item)
          Creates a new handler.
 
Method Summary
protected  void itemTriggered()
          Called if the menuitem was clicked.
 void triggered()
          Invoked if the item is triggered from outside.
 
Methods inherited from class bibliothek.gui.dock.themes.basic.action.dropdown.SelectableDropDownHandler
bind, setView, unbind
 
Methods inherited from class bibliothek.gui.dock.themes.basic.action.dropdown.AbstractDropDownHandler
addActionListener, getView, isSelectable, isTriggerable, removeActionListener
 
Methods inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler
getAction, getDockable, getItem
 
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.action.view.ViewItem
getAction, getItem
 

Constructor Detail

SelectableDropDownHandler.Check

public SelectableDropDownHandler.Check(SelectableDockAction action,
                                       Dockable dockable,
                                       javax.swing.JMenuItem item)
Creates a new handler.

Parameters:
action - the action to observe
dockable - the Dockable for which the action is shown
item - the graphical representation of the action
Method Detail

triggered

public void triggered()
Description copied from interface: DropDownViewItem
Invoked if the item is triggered from outside. The item should call the method of its action, that causes the action to execute its natural code (for example: a checkbox may change their selected-state).


itemTriggered

protected void itemTriggered()
Description copied from class: SelectableDropDownHandler
Called if the menuitem was clicked.

Specified by:
itemTriggered in class SelectableDropDownHandler