@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 null
public ExtendedMode handleDoubleClick(Dockable dockable, ExtendedMode current, ExtendedModeEnablement enablement)
DoubleClickLocationStrategy
dockable
.handleDoubleClick
in interface DoubleClickLocationStrategy
dockable
- the clicked elementcurrent
- the current mode of dockable
, might be null
enablement
- tells which modes are available for dockable
and which notdockable
should be assigned, null
indicates
that nothing should happen