Package tripleplay.ui
Class Elements<T extends Elements<T>>
java.lang.Object
tripleplay.ui.Element<T>
tripleplay.ui.Container<T>
tripleplay.ui.Container.Mutable<T>
tripleplay.ui.Elements<T>
Contains other elements and lays them out according to a layout policy.
-
Nested Class Summary
Nested classes/interfaces inherited from class tripleplay.ui.Container
Container.Mutable<T extends Container.Mutable<T>>
Nested classes/interfaces inherited from class tripleplay.ui.Element
Element.Take
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreact.SignalView<Element<?>>
Emitted after a child has been added to this Elements.Element<?>
childAt
(int index) Returns the child at the specified index.int
Returns the number of children contained by this container.react.SignalView<Element<?>>
Emitted after a child has been removed from this Elements.void
Removes and destroys the specified child.void
Removes and destroys all children from this container.void
destroyAt
(int index) Removes and destroys the child at the specified index.iterator()
Returns an unmodifiable iterator over the children of this Container.void
Removes the specified child from this container.void
Removes all children from this container.void
removeAt
(int index) Removes the child at the specified index from this container.setStylesheet
(Stylesheet sheet) Configures the stylesheet to be used by this group.Returns the stylesheet configured for this group, or null.Methods inherited from class tripleplay.ui.Container
removeFromParent
Methods inherited from class tripleplay.ui.Element
addStyles, addStyles, bindEnabled, bindVisible, bounds, constraint, enabledSlot, hierarchyChanged, isAdded, isEnabled, isShowing, isVisible, location, parent, setConstraint, setEnabled, setStyles, setStyles, setVisible, size, styles, visibleSlot, x, y
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Elements
Creates a collection with the specified layout.
-
-
Method Details
-
childAdded
Emitted after a child has been added to this Elements. -
childRemoved
Emitted after a child has been removed from this Elements. -
stylesheet
Returns the stylesheet configured for this group, or null.- Specified by:
stylesheet
in classContainer<T extends Elements<T>>
-
setStylesheet
Configures the stylesheet to be used by this group. -
add
-
add
-
childCount
public int childCount()Description copied from class:Container
Returns the number of children contained by this container.- Specified by:
childCount
in classContainer<T extends Elements<T>>
-
childAt
Description copied from class:Container
Returns the child at the specified index. -
iterator
Description copied from class:Container
Returns an unmodifiable iterator over the children of this Container. -
remove
Description copied from class:Container.Mutable
Removes the specified child from this container.- Specified by:
remove
in classContainer.Mutable<T extends Elements<T>>
-
removeAt
public void removeAt(int index) Description copied from class:Container.Mutable
Removes the child at the specified index from this container.- Specified by:
removeAt
in classContainer.Mutable<T extends Elements<T>>
-
removeAll
public void removeAll()Description copied from class:Container.Mutable
Removes all children from this container.- Specified by:
removeAll
in classContainer.Mutable<T extends Elements<T>>
-
destroy
Description copied from class:Container.Mutable
Removes and destroys the specified child.- Specified by:
destroy
in classContainer.Mutable<T extends Elements<T>>
-
destroyAt
public void destroyAt(int index) Description copied from class:Container.Mutable
Removes and destroys the child at the specified index.- Specified by:
destroyAt
in classContainer.Mutable<T extends Elements<T>>
-
destroyAll
public void destroyAll()Description copied from class:Container.Mutable
Removes and destroys all children from this container.- Specified by:
destroyAll
in classContainer.Mutable<T extends Elements<T>>
-