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.intReturns the number of children contained by this container.react.SignalView<Element<?>>Emitted after a child has been removed from this Elements.voidRemoves and destroys the specified child.voidRemoves and destroys all children from this container.voiddestroyAt(int index) Removes and destroys the child at the specified index.iterator()Returns an unmodifiable iterator over the children of this Container.voidRemoves the specified child from this container.voidRemoves all children from this container.voidremoveAt(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
removeFromParentMethods 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, yMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
stylesheetin 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:ContainerReturns the number of children contained by this container.- Specified by:
childCountin classContainer<T extends Elements<T>>
-
childAt
Description copied from class:ContainerReturns the child at the specified index. -
iterator
Description copied from class:ContainerReturns an unmodifiable iterator over the children of this Container. -
remove
Description copied from class:Container.MutableRemoves the specified child from this container.- Specified by:
removein classContainer.Mutable<T extends Elements<T>>
-
removeAt
public void removeAt(int index) Description copied from class:Container.MutableRemoves the child at the specified index from this container.- Specified by:
removeAtin classContainer.Mutable<T extends Elements<T>>
-
removeAll
public void removeAll()Description copied from class:Container.MutableRemoves all children from this container.- Specified by:
removeAllin classContainer.Mutable<T extends Elements<T>>
-
destroy
Description copied from class:Container.MutableRemoves and destroys the specified child.- Specified by:
destroyin classContainer.Mutable<T extends Elements<T>>
-
destroyAt
public void destroyAt(int index) Description copied from class:Container.MutableRemoves and destroys the child at the specified index.- Specified by:
destroyAtin classContainer.Mutable<T extends Elements<T>>
-
destroyAll
public void destroyAll()Description copied from class:Container.MutableRemoves and destroys all children from this container.- Specified by:
destroyAllin classContainer.Mutable<T extends Elements<T>>
-