public interface LocationModeActionProvider
LocationMode, provides a (set of) actions
to set the mode of a Dockable to the owner of this provider.Dockable is not the same as the owner mode, and if the
owner mode is available to the element.| Modifier and Type | Method and Description |
|---|---|
void |
destroy(Dockable dockable,
DockActionSource source)
Called if
dockable is no longer in use and all references
to dockable are to be removed. |
DockActionSource |
getActions(Dockable dockable,
Mode<Location> currentMode,
DockActionSource currentSource)
Called if the element
dockable, which is currently in
mode mode, should have some additional DockActions
related to the owner of this LocationModeActionProvider. |
DockActionSource getActions(Dockable dockable, Mode<Location> currentMode, DockActionSource currentSource)
dockable, which is currently in
mode mode, should have some additional DockActions
related to the owner of this LocationModeActionProvider.dockable - the element for which an action source is requiredcurrentMode - the current mode of dockablecurrentSource - the source that was returned by this method in the previous call. May
be null either if this method returned null or was not yet
called for dockablenull if the default value should be usedvoid destroy(Dockable dockable, DockActionSource source)
dockable is no longer in use and all references
to dockable are to be removed.dockable - the element which is no longer handled by the owning modesource - the last result of getActions, may be nullCopyright © 2018. All rights reserved.