bibliothek.gui.dock.facile.mode
Interface DoubleClickLocationStrategy
- All Known Implementing Classes:
- PreviousModeDoubleClickStrategy
public interface DoubleClickLocationStrategy
Used by a LocationModeManager
to change the ExtendedMode
when
an element gets double-clicked.
- Author:
- Benjamin Sigg
- See Also:
LocationModeManager.setDoubleClickStrategy(DoubleClickLocationStrategy)
DEFAULT
static final DoubleClickLocationStrategy DEFAULT
- The default implementation of a
DoubleClickLocationStrategy
switches between
ExtendedMode.NORMALIZED
and ExtendedMode.MAXIMIZED
.
handleDoubleClick
ExtendedMode handleDoubleClick(Dockable dockable,
ExtendedMode current,
ExtendedModeEnablement enablement)
- Called if the user double-clicked on
dockable
.
- Parameters:
dockable
- the clicked elementcurrent
- the current mode of dockable
, might be null
enablement
- tells which modes are available for dockable
and which not
- Returns:
- the mode that
dockable
should be assigned, null
indicates
that nothing should happen