public class DefaultLocationModeActionProvider extends Object implements LocationModeActionProvider
DockActionSource to
all Dockables. This source contains an exchangeable DockAction.| Constructor and Description |
|---|
DefaultLocationModeActionProvider()
Creates a new empty provider
|
DefaultLocationModeActionProvider(CAction action)
Creates a new provider.
|
DefaultLocationModeActionProvider(DockAction action)
Creates a new provider.
|
| 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> mode,
DockActionSource source)
Called if the element
dockable, which is currently in
mode mode, should have some additional DockActions
related to the owner of this LocationModeActionProvider. |
DockAction |
getSelectModeAction()
Gets the action which must be triggered in order to activate this mode.
|
void |
setSelectModeAction(CAction action)
|
void |
setSelectModeAction(DockAction selectModeAction)
Sets the action which must be triggered in order to activate this mode.
|
public DefaultLocationModeActionProvider()
public DefaultLocationModeActionProvider(CAction action)
action - the action of this provider, may be nullsetSelectModeAction(CAction)public DefaultLocationModeActionProvider(DockAction action)
action - the action of this provider, may be nullsetSelectModeAction(DockAction)public void setSelectModeAction(CAction action)
action - the new action or nullsetSelectModeAction(DockAction)public void setSelectModeAction(DockAction selectModeAction)
getActions(Dockable, Mode, DockActionSource) if the mode
is not this. Changes to this property are applied to all visible
Dockable.selectModeAction - the action or nullpublic DockAction getSelectModeAction()
nullpublic DockActionSource getActions(Dockable dockable, Mode<Location> mode, DockActionSource source)
LocationModeActionProviderdockable, which is currently in
mode mode, should have some additional DockActions
related to the owner of this LocationModeActionProvider.getActions in interface LocationModeActionProviderdockable - the element for which an action source is requiredmode - the current mode of dockablesource - 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 usedpublic void destroy(Dockable dockable, DockActionSource source)
LocationModeActionProviderdockable is no longer in use and all references
to dockable are to be removed.destroy in interface LocationModeActionProviderdockable - the element which is no longer handled by the owning modesource - the last result of getActions, may be nullCopyright © 2018. All rights reserved.