public class BehaviorUtils
extends java.lang.Object
BehaviorUtils
class provides utility methods for the
implementation of IBehavior
s, such as the creation of
IFeedbackPart
s and IHandlePart
s, or the
establishment/unestablishment of anchor relations.Constructor and Description |
---|
BehaviorUtils() |
Modifier and Type | Method and Description |
---|---|
static <VR> void |
addAnchoreds(IRootPart<VR,? extends VR> root,
java.util.List<? extends IVisualPart<VR,? extends VR>> anchorages,
java.util.List<? extends IVisualPart<VR,? extends VR>> anchoreds)
Adds the given list of anchoreds as children to the given
IRootPart . |
static <VR> void |
removeAnchoreds(IRootPart<VR,? extends VR> root,
java.util.List<? extends IVisualPart<VR,? extends VR>> anchorages,
java.util.List<? extends IVisualPart<VR,? extends VR>> anchoreds)
Removes the given list of anchoreds as children from the given
IRootPart . |
public static <VR> void addAnchoreds(IRootPart<VR,? extends VR> root, java.util.List<? extends IVisualPart<VR,? extends VR>> anchorages, java.util.List<? extends IVisualPart<VR,? extends VR>> anchoreds)
IRootPart
. Additionally, all given anchorages will be attached to
the given anchorages.VR
- The visual root node of the UI toolkit this
IVisualPart
is used in, e.g. javafx.scene.Node in case
of JavaFX.root
- The IRootPart
, the anchored IVisualPart
s are
to be added to as childrenanchorages
- the IVisualPart
s which are to be added to the given
anchoreds as anchorages.anchoreds
- the IVisualPart
s to which the given anchorages are to
be added.removeAnchoreds(IRootPart, List, List)
public static <VR> void removeAnchoreds(IRootPart<VR,? extends VR> root, java.util.List<? extends IVisualPart<VR,? extends VR>> anchorages, java.util.List<? extends IVisualPart<VR,? extends VR>> anchoreds)
IRootPart
. Additionally detaches the given anchoreds from the
given anchorages.VR
- The visual root node of the UI toolkit this
IVisualPart
is used in, e.g. javafx.scene.Node in case
of JavaFX.root
- The IRootPart
from which the anchoreds are to be
removed as children.anchorages
- The anchorages to be removed from the given anchoreds.anchoreds
- The anchoreds from which to remove the given anchorages.addAnchoreds(IRootPart, List, List)
Copyright (c) 2014 itemis AG and others. All rights reserved.