|
||||||||||
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
public class DefaultLocationModeActionProvider
This default implementation always returns the same DockActionSource
to
all Dockable
s. This source contains an exchangeable DockAction
.
Constructor Summary | |
---|---|
DefaultLocationModeActionProvider()
Creates a new empty provider |
|
DefaultLocationModeActionProvider(CAction action)
Creates a new provider. |
|
DefaultLocationModeActionProvider(DockAction action)
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> mode,
DockActionSource source)
Called if the element dockable , which is currently in
mode mode , should have some additional DockAction s
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)
Calls setSelectModeAction(DockAction) . |
void |
setSelectModeAction(DockAction selectModeAction)
Sets the action which must be triggered in order to activate this mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLocationModeActionProvider()
public DefaultLocationModeActionProvider(CAction action)
action
- the action of this provider, may be null
setSelectModeAction(CAction)
public DefaultLocationModeActionProvider(DockAction action)
action
- the action of this provider, may be null
setSelectModeAction(DockAction)
Method Detail |
---|
public void setSelectModeAction(CAction action)
setSelectModeAction(DockAction)
.
action
- the new action or null
setSelectModeAction(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 null
public DockAction getSelectModeAction()
null
public DockActionSource getActions(Dockable dockable, Mode<Location> mode, DockActionSource source)
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
dockable
- the element for which an action source is requiredmode
- the current mode of dockable
source
- 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
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 |