|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.facile.mode.DefaultLocationModeActionProvider bibliothek.gui.dock.common.mode.KeyedLocationModeActionProvider
public class KeyedLocationModeActionProvider
This LocationModeActionProvider
returns a KeyedActionSource
for
each CDockable
it encounters.
Constructor Summary | |
---|---|
KeyedLocationModeActionProvider(String key)
Creates a new provider. |
|
KeyedLocationModeActionProvider(String key,
CAction defaultAction)
Creates a new provider. |
|
KeyedLocationModeActionProvider(String key,
DockAction defaultAction)
Creates a new provider. |
Method Summary | |
---|---|
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 DockAction s
related to the owner of this LocationModeActionProvider . |
void |
setSelectModeAction(DockAction selectModeAction)
Sets the action which must be triggered in order to activate this mode. |
Methods inherited from class bibliothek.gui.dock.facile.mode.DefaultLocationModeActionProvider |
---|
getSelectModeAction, setSelectModeAction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyedLocationModeActionProvider(String key)
key
- the key for CDockable.getAction(String)
, must not be null
public KeyedLocationModeActionProvider(String key, CAction defaultAction)
key
- the key for CDockable.getAction(String)
, must not be null
defaultAction
- the default action, may be null
public KeyedLocationModeActionProvider(String key, DockAction defaultAction)
key
- the key for CDockable.getAction(String)
, must not be null
defaultAction
- the default action, may be null
Method Detail |
---|
public void setSelectModeAction(DockAction selectModeAction)
DefaultLocationModeActionProvider
DefaultLocationModeActionProvider.getActions(Dockable, Mode, DockActionSource)
if the mode
is not this
. Changes to this property are applied to all visible
Dockable
.
setSelectModeAction
in class DefaultLocationModeActionProvider
selectModeAction
- the action or null
public DockActionSource getActions(Dockable dockable, Mode<Location> currentMode, DockActionSource currentSource)
LocationModeActionProvider
dockable
, which is currently in
mode mode
, should have some additional DockAction
s
related to the owner of this LocationModeActionProvider
.
getActions
in interface LocationModeActionProvider
getActions
in class DefaultLocationModeActionProvider
dockable
- the element for which an action source is requiredcurrentMode
- the current mode of dockable
currentSource
- 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 dockable
null
if the default value should be usedpublic void destroy(Dockable dockable, DockActionSource source)
LocationModeActionProvider
dockable
is no longer in use and all references
to dockable
are to be removed.
destroy
in interface LocationModeActionProvider
destroy
in class DefaultLocationModeActionProvider
dockable
- the element which is no longer handled by the owning modesource
- the last result of getActions
, may be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |