Interface WidgetGroup

  • All Superinterfaces:
    java.lang.Comparable<WidgetGroup>, Validatable

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

      • 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
      • getLocation

        java.awt.Point getLocation()
        Gets the screen location of the group.
        Returns:
        Point
      • getChild

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

        WidgetChild find​(java.util.function.Predicate<WidgetChild> filter)
        Finds a matching child in the group.
        Parameters:
        filter - the matching filter
        Returns:
        WidgetChild or null
      • findAll

        java.util.List<WidgetChild> findAll​(java.util.function.Predicate<WidgetChild> filter)
        Finds a matching child in the group.
        Parameters:
        filter - the matching filter
        Returns:
        list of WidgetChild
      • getChildren

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