@FrameworkOnly public class PreviousModeDoubleClickStrategy extends Object implements DoubleClickLocationStrategy
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.DEFAULT| Constructor and Description |
|---|
PreviousModeDoubleClickStrategy(CLocationModeManager manager)
Creates a new strategy
|
| Modifier and Type | Method and Description |
|---|---|
ExtendedMode |
handleDoubleClick(Dockable dockable,
ExtendedMode current,
ExtendedModeEnablement enablement)
Called if the user double-clicked on
dockable. |
public PreviousModeDoubleClickStrategy(CLocationModeManager manager)
manager - the manager to ask for the previous mode, not nullpublic ExtendedMode handleDoubleClick(Dockable dockable, ExtendedMode current, ExtendedModeEnablement enablement)
DoubleClickLocationStrategydockable.handleDoubleClick in interface DoubleClickLocationStrategydockable - the clicked elementcurrent - the current mode of dockable, might be nullenablement - tells which modes are available for dockable and which notdockable should be assigned, null indicates
that nothing should happenCopyright © 2018. All rights reserved.