bibliothek.gui.dock.themes.basic.action.menu
Class SelectableMenuHandler.Radio

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler<M,SelectableDockAction>
      extended by bibliothek.gui.dock.themes.basic.action.menu.SelectableMenuHandler<javax.swing.JRadioButtonMenuItem>
          extended by bibliothek.gui.dock.themes.basic.action.menu.SelectableMenuHandler.Radio
All Implemented Interfaces:
ViewItem<javax.swing.JComponent>, MenuViewItem<javax.swing.JComponent>
Enclosing class:
SelectableMenuHandler<M extends javax.swing.JMenuItem>

public static class SelectableMenuHandler.Radio
extends SelectableMenuHandler<javax.swing.JRadioButtonMenuItem>

A handler designed to handle actions of type ActionType.RADIO.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.themes.basic.action.menu.SelectableMenuHandler
SelectableMenuHandler.Check, SelectableMenuHandler.Radio
 
Field Summary
 
Fields inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler
action, dockable, item
 
Constructor Summary
SelectableMenuHandler.Radio(SelectableDockAction action, Dockable dockable)
          Creates a new handler.
 
Method Summary
protected  boolean allowChange(boolean newValue)
          Tells whether the new value newValue can be set through the view or not.
 
Methods inherited from class bibliothek.gui.dock.themes.basic.action.menu.SelectableMenuHandler
addActionListener, bind, removeActionListener, unbind
 
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
 

Constructor Detail

SelectableMenuHandler.Radio

public SelectableMenuHandler.Radio(SelectableDockAction action,
                                   Dockable dockable)
Creates a new handler.

Parameters:
action - the action to handle
dockable - the owner of the action
Method Detail

allowChange

protected boolean allowChange(boolean newValue)
Description copied from class: SelectableMenuHandler
Tells whether the new value newValue can be set through the view or not.

Specified by:
allowChange in class SelectableMenuHandler<javax.swing.JRadioButtonMenuItem>
Parameters:
newValue - the new value for the element
Returns:
true if the value is accepted