|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.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 DockActions
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 nulldefaultAction - the default action, may be null
public KeyedLocationModeActionProvider(String key,
DockAction defaultAction)
key - the key for CDockable.getAction(String), must not be nulldefaultAction - the default action, may be null| Method Detail |
|---|
public void setSelectModeAction(DockAction selectModeAction)
DefaultLocationModeActionProviderDefaultLocationModeActionProvider.getActions(Dockable, Mode, DockActionSource) if the mode
is not this. Changes to this property are applied to all visible
Dockable.
setSelectModeAction in class DefaultLocationModeActionProviderselectModeAction - the action or null
public DockActionSource getActions(Dockable dockable,
Mode<Location> currentMode,
DockActionSource currentSource)
LocationModeActionProviderdockable, which is currently in
mode mode, should have some additional DockActions
related to the owner of this LocationModeActionProvider.
getActions in interface LocationModeActionProvidergetActions in class DefaultLocationModeActionProviderdockable - 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 dockable
null if the default value should be used
public void destroy(Dockable dockable,
DockActionSource source)
LocationModeActionProviderdockable is no longer in use and all references
to dockable are to be removed.
destroy in interface LocationModeActionProviderdestroy in class DefaultLocationModeActionProviderdockable - 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 | |||||||||