|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.intern.action.CActionOffer
@FrameworkOnly public class CActionOffer
An ActionOffer that searches for CommonDockables
and asks them for their sources.
| Constructor Summary | |
|---|---|
CActionOffer(CControl control)
Creates a new action offer |
|
| Method Summary | |
|---|---|
DockActionSource |
getSource(Dockable dockable,
DockActionSource source,
DockActionSource[] guards,
DockActionSource parent,
DockActionSource[] parents)
Generates one source of actions
for the given Dockable. |
boolean |
interested(Dockable dockable)
Tells whether this ActionOffer wants to collect the
actions for the dockable, or if this ActionOffer
is not interested in the Dockable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CActionOffer(CControl control)
control - the control for which this offer is used| Method Detail |
|---|
public boolean interested(Dockable dockable)
ActionOfferActionOffer wants to collect the
actions for the dockable, or if this ActionOffer
is not interested in the Dockable.
interested in interface ActionOfferdockable - The Dockable to test
true if this ActionOffer should tell which
actions will be associated with the dockable,
false otherwise.
public DockActionSource getSource(Dockable dockable,
DockActionSource source,
DockActionSource[] guards,
DockActionSource parent,
DockActionSource[] parents)
ActionOffersource of actions
for the given Dockable. The ActionOffer is free how to use the
actions that are created by other parts of the system, but it is a good
idea to use all of them. Note that each argument, and each element in
an array, can be null.
getSource in interface ActionOfferdockable - The Dockable for which the the source
has to be created. An invocation of interested
should return true, otherwise the behavior of this method
is not specified.source - the DockActionSource derived from dockableguards - a list of DockActionSources derived from ActionGuardsparent - the DockActionSource derived from the parent of dockableparents - a list of DockActionSources derived from all parents of dockable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||