Interface WidgetGroup

All Superinterfaces:
Comparable<WidgetGroup>, Validatable

public interface WidgetGroup extends Validatable, Comparable<WidgetGroup>
Represents an interface. Each interface consists of components aka children.
  • Method Details

    • getIndex

      int getIndex()
      Gets the index of the group.
      Returns:
      int
    • isVisible

      boolean isVisible()
      Gets whether or not this group is visible by checking if any of the children are visible.
      Returns:
      true if visible, false otherwise
    • getChildrenCount

      int getChildrenCount()
      Gets the number of children.
      Returns:
      int
    • getChild

      WidgetChild getChild(int index)
      Gets a child at the given index.
      Parameters:
      index - the index
      Returns:
      WidgetChild
    • find

      Finds a matching child in the group.
      Parameters:
      filter - the matching filter
      Returns:
      WidgetChild or null
    • findAll

      Finds a matching child in the group.
      Parameters:
      filter - the matching filter
      Returns:
      list of WidgetChild
    • getChildren

      List<WidgetChild> getChildren()
      Gets the children.
      Returns:
      list of children