Package tripleplay.ui

Class Container.Mutable<T extends Container.Mutable<T>>

java.lang.Object
tripleplay.ui.Element<T>
tripleplay.ui.Container<T>
tripleplay.ui.Container.Mutable<T>
All Implemented Interfaces:
Iterable<Element<?>>
Direct Known Subclasses:
Box, Elements
Enclosing class:
Container<T extends Container<T>>

public abstract static class Container.Mutable<T extends Container.Mutable<T>> extends Container<T>
A container that allows mutation (adding and removal) of its children.
  • Constructor Details

    • Mutable

      public Mutable()
  • Method Details

    • remove

      public abstract void remove(Element<?> child)
      Removes the specified child from this container.
    • removeAt

      public abstract void removeAt(int index)
      Removes the child at the specified index from this container.
    • removeAll

      public abstract void removeAll()
      Removes all children from this container.
    • destroy

      public abstract void destroy(Element<?> child)
      Removes and destroys the specified child.
    • destroyAt

      public abstract void destroyAt(int index)
      Removes and destroys the child at the specified index.
    • destroyAll

      public abstract void destroyAll()
      Removes and destroys all children from this container.