bibliothek.gui.dock.station.split
Class SplitFullScreenAction

java.lang.Object
  extended by bibliothek.gui.dock.action.actions.AbstractStandardDockAction
      extended by bibliothek.gui.dock.action.actions.GroupedDockAction<K,D>
          extended by bibliothek.gui.dock.action.actions.GroupedDropDownItemAction<K,SimpleButtonAction>
              extended by bibliothek.gui.dock.action.actions.GroupedButtonDockAction<java.lang.Boolean>
                  extended by bibliothek.gui.dock.station.split.SplitFullScreenAction
All Implemented Interfaces:
ButtonDockAction, DockAction, DropDownItemAction, ListeningDockAction, StandardDockAction, StandardDropDownItemAction

public class SplitFullScreenAction
extends GroupedButtonDockAction<java.lang.Boolean>
implements ListeningDockAction

This DockAction is mainly used by the SplitDockStation to allow it's children to get in fullscreen-mode.

Author:
Benjamin Sigg

Nested Class Summary
private  class SplitFullScreenAction.Listener
          A listener to the set of icons
 
Field Summary
private  DockController controller
           
private  SplitFullScreenAction.Listener listener
           
private  SplitDockStation split
           
 
Fields inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction
listeners
 
Constructor Summary
SplitFullScreenAction(SplitDockStation station)
          Constructs the action and sets the station on which the Dockables will be made fullscreen.
 
Method Summary
 void action(Dockable dockable)
          Invoked when this action is triggered by the user.
private  void change(Dockable dockable, java.lang.Boolean value)
           
protected  java.lang.Boolean createGroupKey(Dockable dockable)
          Calculates the name of the group to which the dockable should be added.
Every Dockable is member of one group.
 void setController(DockController controller)
          Called when a new controller has been set.
 
Methods inherited from class bibliothek.gui.dock.action.actions.GroupedButtonDockAction
createGroup, createView
 
Methods inherited from class bibliothek.gui.dock.action.actions.GroupedDropDownItemAction
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerable, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
 
Methods inherited from class bibliothek.gui.dock.action.actions.GroupedDockAction
binded, ensureGroup, getDisabledIcon, getDisabledIcon, getGenerator, getGroup, getGroup, getIcon, getIcon, getText, getText, getTooltipText, getTooltipText, groupExists, isEnabled, isEnabled, isKnown, isRemoveEmptyGroups, removeGroup, setDisabledIcon, setEnabled, setGenerator, setGroup, setIcon, setRemoveEmptyGroups, setText, setTooltipText, unbinded
 
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction
addDockActionListener, bind, fireActionDisabledIconChanged, fireActionEnabledChanged, fireActionIconChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBindeds, isBinded, removeDockActionListener, unbind
 
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.DockAction
bind, createView, unbind
 
Methods inherited from interface bibliothek.gui.dock.action.dropdown.DropDownItemAction
isDropDownSelectable, isDropDownTriggerable
 

Field Detail

split

private SplitDockStation split

controller

private DockController controller

listener

private SplitFullScreenAction.Listener listener
Constructor Detail

SplitFullScreenAction

public SplitFullScreenAction(SplitDockStation station)
Constructs the action and sets the station on which the Dockables will be made fullscreen.

Parameters:
station - the station
Method Detail

setController

public void setController(DockController controller)
Description copied from interface: ListeningDockAction
Called when a new controller has been set.

Specified by:
setController in interface ListeningDockAction
Parameters:
controller - the new controller

action

public void action(Dockable dockable)
Description copied from interface: ButtonDockAction
Invoked when this action is triggered by the user.

Specified by:
action in interface ButtonDockAction
Parameters:
dockable - The Dockable which is associated with this DockAction, and which shall be used for the current action.

change

private void change(Dockable dockable,
                    java.lang.Boolean value)

createGroupKey

protected java.lang.Boolean createGroupKey(Dockable dockable)
Description copied from class: GroupedDockAction
Calculates the name of the group to which the dockable should be added.
Every Dockable is member of one group. The membership determines text, icon, etc. for the dockable. Whenever a dockable is binded to this action, the group will be determined by this method. Later on, the group can be changed by the method setGroup.
The default implementation uses the generator of this action.

Overrides:
createGroupKey in class GroupedDockAction<java.lang.Boolean,SimpleButtonAction>
Parameters:
dockable - The Dockable whose group has to be found
Returns:
the name of the dockable's group. That can be an existing or a non existing group. null is not a valid result.