Package org.dreambot.api.methods.widget
Class Widget
- java.lang.Object
-
- org.dreambot.api.methods.widget.Widget
-
public class Widget extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWidgetChild(int id, WidgetChild child)
boolean
checkValidity(java.lang.Object[] childrenReferences)
void
close()
Closes the WidgetWidgetChild
getChild(int id)
Gets the child of specified IDjava.util.List<WidgetChild>
getChildren()
Gets a List of all the WidgetChild's associated with this Widget@NonNull java.util.Collection<WidgetChild>
getChildrenCollection()
int
getID()
Gets the ID of this Widgetboolean
isVisible()
Checks if the Widget is visiblejava.lang.String
toString()
-
-
-
Method Detail
-
addWidgetChild
public void addWidgetChild(int id, WidgetChild child)
-
getChild
public WidgetChild getChild(int id)
Gets the child of specified ID- Parameters:
id
- ID of WidgetChild- Returns:
- WidgetChild of specified ID
-
getChildren
public java.util.List<WidgetChild> getChildren()
Gets a List of all the WidgetChild's associated with this Widget- Returns:
- List of WidgetChild's
-
getChildrenCollection
public @NonNull java.util.Collection<WidgetChild> getChildrenCollection()
-
getID
public int getID()
Gets the ID of this Widget- Returns:
- ID of Widget
-
close
public void close()
Closes the Widget
-
isVisible
public boolean isVisible()
Checks if the Widget is visible- Returns:
- True if one of its children are visible, else False
-
checkValidity
public boolean checkValidity(java.lang.Object[] childrenReferences)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-