Package 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DoubleClickLocationStrategyThe default implementation of aDoubleClickLocationStrategyswitches betweenExtendedMode.NORMALIZEDandExtendedMode.MAXIMIZED. -
Method Summary
Modifier and TypeMethodDescriptionhandleDoubleClick(Dockable dockable, ExtendedMode current, ExtendedModeEnablement enablement) Called if the user double-clicked ondockable.
-
Field Details
-
DEFAULT
The default implementation of aDoubleClickLocationStrategyswitches betweenExtendedMode.NORMALIZEDandExtendedMode.MAXIMIZED.
-
-
Method Details
-
handleDoubleClick
ExtendedMode handleDoubleClick(Dockable dockable, ExtendedMode current, ExtendedModeEnablement enablement) Called if the user double-clicked ondockable.- 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
-