bibliothek.gui.dock.themes.basic.action.menu
Class SelectableMenuHandler.Check
java.lang.Object
bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler<M,SelectableDockAction>
bibliothek.gui.dock.themes.basic.action.menu.SelectableMenuHandler<JCheckBoxMenuItem>
bibliothek.gui.dock.themes.basic.action.menu.SelectableMenuHandler.Check
- All Implemented Interfaces:
- ViewItem<JComponent>, MenuViewItem<JComponent>
- Enclosing class:
- SelectableMenuHandler<M extends JMenuItem>
public static class SelectableMenuHandler.Check
- extends SelectableMenuHandler<JCheckBoxMenuItem>
A handler designed to handle actions of type ActionType.CHECK
.
- Author:
- Benjamin Sigg
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectableMenuHandler.Check
public SelectableMenuHandler.Check(SelectableDockAction action,
Dockable dockable)
- Creates a new handler.
- Parameters:
action
- the action to handledockable
- the owner of the action
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<JCheckBoxMenuItem>
- Parameters:
newValue
- the new value for the element
- Returns:
true
if the value is accepted