Package com.epicbot.api.shared.entity
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WidgetChild
find(java.util.function.Predicate<WidgetChild> filter)
Finds a matching child in the group.java.util.List<WidgetChild>
findAll(java.util.function.Predicate<WidgetChild> filter)
Finds a matching child in the group.WidgetChild
getChild(int index)
Gets a child at the given index.java.util.List<WidgetChild>
getChildren()
Gets the children.int
getChildrenCount()
Gets the number of children.int
getIndex()
Gets the index of the group.java.awt.Point
getLocation()
Gets the screen location of the group.boolean
isVisible()
Gets whether or not this group is visible by checking if any of the children are visible.-
Methods inherited from interface com.epicbot.api.shared.entity.details.Validatable
isValid
-
-
-
-
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
-
-