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 Deprecated Methods Modifier and Type Method Description voidaddWidgetChild(int id, WidgetChild child)booleancheckValidity(java.lang.Object[] childrenReferences)voidclose()Closes the WidgetWidgetChildgetChild(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()intgetId()Gets the ID of this WidgetintgetID()Deprecated.seegetId()booleanisVisible()Checks if the Widget is visiblejava.lang.StringtoString()
-
-
-
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
-
getID
@Deprecated public int getID()
Deprecated.seegetId()
-
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:
toStringin classjava.lang.Object
-
-