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)

Field Summary
static DoubleClickLocationStrategy DEFAULT
          The default implementation of a DoubleClickLocationStrategy switches between ExtendedMode.NORMALIZED and ExtendedMode.MAXIMIZED.
 
Method Summary
 ExtendedMode handleDoubleClick(Dockable dockable, ExtendedMode current, ExtendedModeEnablement enablement)
          Called if the user double-clicked on dockable.
 

Field Detail

DEFAULT

static final DoubleClickLocationStrategy DEFAULT
The default implementation of a DoubleClickLocationStrategy switches between ExtendedMode.NORMALIZED and ExtendedMode.MAXIMIZED.

Method Detail

handleDoubleClick

ExtendedMode handleDoubleClick(Dockable dockable,
                               ExtendedMode current,
                               ExtendedModeEnablement enablement)
Called if the user double-clicked on dockable.

Parameters:
dockable - the clicked element
current - 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