|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CGroupBehavior
A CGroupBehavior
allows to define groups of CDockable
. Groups normaly
act together when changing the LocationMode
: e.g. if one CDockable
is minimized, all the other
CDockable
s follow.
Field Summary | |
---|---|
static CGroupBehavior |
STACKED
A behavior that moves around entire stacks of Dockable s. |
static CGroupBehavior |
TOPMOST
A behavior that moves only one Dockable at a time. |
Method Summary | |
---|---|
Dockable |
getGroupElement(Dockable dockable,
ExtendedMode mode)
Gets the element whose location or mode must be changed in order to apply mode to dockable . |
Dockable |
getReplaceElement(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(DockStation station,
Dockable dockable,
ExtendedMode mode,
ExtendedModeEnablement enablement)
Tells whether the actions of dockable for mode mode should be
shown on station too. |
Field Detail |
---|
static final CGroupBehavior TOPMOST
Dockable
at a time.
static final CGroupBehavior STACKED
Dockable
s.
Method Detail |
---|
CGroupMovement prepare(LocationModeManager<? extends LocationMode> manager, Dockable dockable, ExtendedMode target)
dockable
has to be changed such that it matches target
.
manager
- a manager which may be asked for additional informationdockable
- the element that was clicked by the usertarget
- the extended mode intended for dockable
Dockable getGroupElement(Dockable dockable, ExtendedMode mode)
mode
to dockable
. Normally dockable
itself
is returned, or a parent DockStation
of dockable
.
dockable
- some element, not null
dockable
itself, not null
Dockable getReplaceElement(Dockable old, Dockable dockable, ExtendedMode mode)
old
if old
is currently
in mode
, and dockable
is or will not be in mode
.
old
- some elementdockable
- some element, might be old
mode
- the mode in which old
is
dockable
is
no longer in mode
, can be null
boolean shouldForwardActions(DockStation station, Dockable dockable, ExtendedMode mode, ExtendedModeEnablement enablement)
dockable
for mode mode
should be
shown on station
too.
station
- the parent of dockable
dockable
- the element whose actions will be shownmode
- the mode for which the actions are requestedenablement
- a strategy telling which ExtendedMode
s are enabled for which Dockable
s
true
if the actions should be forwarded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |