Package bibliothek.gui.dock.facile.mode
Interface LocationModeActionProvider
- All Known Implementing Classes:
DefaultLocationModeActionProvider,KeyedLocationModeActionProvider,MappingLocationModeActionProvider
public interface LocationModeActionProvider
Is associated with one
The actions provided by this interface are only shown if the mode of a
LocationMode, provides a (set of) actions
to set the mode of a Dockable to the owner of this provider.The actions provided by this interface are only shown if the mode of a
Dockable is not the same as the owner mode, and if the
owner mode is available to the element.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(Dockable dockable, DockActionSource source) Called ifdockableis no longer in use and all references todockableare to be removed.getActions(Dockable dockable, Mode<Location> currentMode, DockActionSource currentSource) Called if the elementdockable, which is currently in modemode, should have some additionalDockActions related to the owner of thisLocationModeActionProvider.
-
Method Details
-
getActions
DockActionSource getActions(Dockable dockable, Mode<Location> currentMode, DockActionSource currentSource) Called if the elementdockable, which is currently in modemode, should have some additionalDockActions related to the owner of thisLocationModeActionProvider.- Parameters:
dockable- the element for which an action source is requiredcurrentMode- the current mode ofdockablecurrentSource- the source that was returned by this method in the previous call. May benulleither if this method returnednullor was not yet called fordockable- Returns:
- the source or
nullif the default value should be used
-
destroy
Called ifdockableis no longer in use and all references todockableare to be removed.- Parameters:
dockable- the element which is no longer handled by the owning modesource- the last result ofgetActions, may benull
-