|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.group.TopMostGroupBehavior
public class TopMostGroupBehavior
This most simple CGroupBehavior just set the mode of the one
Dockable whose mode should change anyway.
| Field Summary |
|---|
| Fields inherited from interface bibliothek.gui.dock.common.group.CGroupBehavior |
|---|
STACKED, TOPMOST |
| Constructor Summary | |
|---|---|
TopMostGroupBehavior()
|
|
| Method Summary | |
|---|---|
Dockable |
getGroupElement(LocationModeManager<? extends LocationMode> manager,
Dockable dockable,
ExtendedMode mode)
Gets the element whose location or mode must be changed in order to apply mode to dockable. |
Dockable |
getReplaceElement(LocationModeManager<? extends LocationMode> manager,
Dockable old,
Dockable dockable,
ExtendedMode mode)
Gets the element which would replace old if old is currently
in mode, and dockable is or will not be in mode. |
CGroupMovement |
prepare(LocationModeManager<? extends LocationMode> manager,
Dockable dockable,
ExtendedMode target)
Calculates how the mode of dockable has to be changed such that it matches target. |
boolean |
shouldForwardActions(LocationModeManager<? extends LocationMode> manager,
DockStation station,
Dockable dockable,
ExtendedMode mode)
Tells whether the actions of dockable for mode mode should be
shown on station too. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TopMostGroupBehavior()
| Method Detail |
|---|
public CGroupMovement prepare(LocationModeManager<? extends LocationMode> manager,
Dockable dockable,
ExtendedMode target)
CGroupBehaviordockable has to be changed such that it matches target.
Please note that some modules use directly CGroupBehavior.getGroupElement(LocationModeManager, Dockable, ExtendedMode) and do never call
this method.
prepare in interface CGroupBehaviormanager - a manager which may be asked for additional informationdockable - the element that was clicked by the usertarget - the extended mode intended for dockable
null
public Dockable getGroupElement(LocationModeManager<? extends LocationMode> manager,
Dockable dockable,
ExtendedMode mode)
CGroupBehaviormode to dockable. Normally dockable itself
is returned, or a parent DockStation of dockable.
getGroupElement in interface CGroupBehaviormanager - a manager which may be asked for additional informationdockable - some element, not nullmode - the target mode
dockable
itself, not null
public Dockable getReplaceElement(LocationModeManager<? extends LocationMode> manager,
Dockable old,
Dockable dockable,
ExtendedMode mode)
CGroupBehaviorold if old is currently
in mode, and dockable is or will not be in mode.
getReplaceElement in interface CGroupBehaviormanager - a manager which may be asked for additional informationold - some elementdockable - some element, might be oldmode - the mode in which old is
dockable is
no longer in mode, can be null
public boolean shouldForwardActions(LocationModeManager<? extends LocationMode> manager,
DockStation station,
Dockable dockable,
ExtendedMode mode)
CGroupBehaviordockable for mode mode should be
shown on station too.
shouldForwardActions in interface CGroupBehaviormanager - a manager which may be asked for additional informationstation - the parent of dockabledockable - the element whose actions will be shownmode - the mode for which the actions are requested
true if the actions should be forwarded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||