Package bibliothek.gui.dock.common.mode
Class PreviousModeDoubleClickStrategy
java.lang.Object
bibliothek.gui.dock.common.mode.PreviousModeDoubleClickStrategy
- All Implemented Interfaces:
DoubleClickLocationStrategy
@FrameworkOnly
public class PreviousModeDoubleClickStrategy
extends Object
implements DoubleClickLocationStrategy
If the current mode is
ExtendedMode.MAXIMIZED, then this strategy asks
the CLocationModeManager for the last mode a Dockable was in and
selects this mode. Otherwise ExtendedMode.MAXIMIZED is selected.- Author:
- Benjamin Sigg
-
Field Summary
Fields inherited from interface bibliothek.gui.dock.facile.mode.DoubleClickLocationStrategy
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new strategy -
Method Summary
Modifier and TypeMethodDescriptionhandleDoubleClick(Dockable dockable, ExtendedMode current, ExtendedModeEnablement enablement) Called if the user double-clicked ondockable.
-
Constructor Details
-
PreviousModeDoubleClickStrategy
Creates a new strategy- Parameters:
manager- the manager to ask for the previous mode, notnull
-
-
Method Details
-
handleDoubleClick
public ExtendedMode handleDoubleClick(Dockable dockable, ExtendedMode current, ExtendedModeEnablement enablement) Description copied from interface:DoubleClickLocationStrategyCalled if the user double-clicked ondockable.- Specified by:
handleDoubleClickin interfaceDoubleClickLocationStrategy- Parameters:
dockable- the clicked elementcurrent- the current mode ofdockable, might benullenablement- tells which modes are available fordockableand which not- Returns:
- the mode that
dockableshould be assigned,nullindicates that nothing should happen
-