Class AbstractMultiChildElement
java.lang.Object
dev.pfaff.altargui.improv.Element
dev.pfaff.altargui.improv.elements.AbstractMultiChildElement
- Direct Known Subclasses:
StackElement
,TrackElement
-
Field Summary
Fields inherited from class dev.pfaff.altargui.improv.Element
EMPTY_ARRAY, STACK_WALKER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
forEachChild
(ObjIntConsumer<Element> consumer) getChild
(int index) void
Do not call this directly, unless you are theContext
implementation.protected void
onMountChild
(int index, Element child, boolean moved) protected void
onUnmountChild
(int index, Element child) protected void
onUpdateChildCount
(int count) Called afteronMountChild(int, Element, boolean)
andonUnmountChild(int, Element)
.void
setChildSupplier
(MultiChildSupplier supplier) Methods inherited from class dev.pfaff.altargui.improv.Element
allocation, context, ensureMounted, equals, hashCode, mutateLayoutImmediately, onMount, onSetAvailable, onUnmount, parent, queueLayout, setAvailable
-
Constructor Details
-
AbstractMultiChildElement
-
-
Method Details
-
onDispose
-
setChildSupplier
-
getChild
-
childCount
public int childCount() -
forEachChild
-
onMountChild
-
onUnmountChild
-
onUpdateChildCount
@MustBeInvokedByOverriders protected void onUpdateChildCount(int count) Called afteronMountChild(int, Element, boolean)
andonUnmountChild(int, Element)
.- Parameters:
count
- the number of child elements
-