Package com.epicbot.api.shared.entity
Interface WidgetGroup
- All Superinterfaces:
Comparable<WidgetGroup>,Validatable
Represents an interface. Each interface consists of components aka children.
-
Method Summary
Modifier and TypeMethodDescriptionfind(Predicate<WidgetChild> filter) Finds a matching child in the group.findAll(Predicate<WidgetChild> filter) Finds a matching child in the group.getChild(int index) Gets a child at the given index.Gets the children.intGets the number of children.intgetIndex()Gets the index of the group.booleanGets whether or not this group is visible by checking if any of the children are visible.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.epicbot.api.shared.entity.details.Validatable
isValid
-
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
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:
WidgetChildor 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
-