Class Widget
- java.lang.Object
-
- net.eternalclient.api.wrappers.widgets.Widget
-
public class Widget extends java.lang.ObjectA class representing a widget.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classWidget.State
-
Constructor Summary
Constructors Constructor Description Widget(int id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WidgetChildgetChild(int id)java.util.List<WidgetChild>getChildren()intgetID()java.util.List<WidgetChild>getVisibleChildren()booleanisOpen()static booleanisOpen(int parentID)Checks if a parent ID is present in the list of loaded widget parents.booleanisRendered()static booleanisRendered(int parentID)Checks if a given parent ID is in the list of visible widget parents.booleanisVisible()static booleanisVisible(int parentID)Checks if the widget with the specified parent ID is visible.
-
-
-
Method Detail
-
isOpen
public static boolean isOpen(int parentID)
Checks if a parent ID is present in the list of loaded widget parents.- Parameters:
parentID- the ID of the parent widget- Returns:
- true if the parent ID is present, false otherwise
-
isVisible
public static boolean isVisible(int parentID)
Checks if the widget with the specified parent ID is visible.- Parameters:
parentID- the ID of the parent widget- Returns:
- true if the widget is visible, false otherwise
-
isRendered
public static boolean isRendered(int parentID)
Checks if a given parent ID is in the list of visible widget parents.- Parameters:
parentID- the ID of the parent widget to check- Returns:
- true if the parent ID is in the list of visible widget parents, false otherwise
-
getID
public int getID()
-
getChild
public WidgetChild getChild(int id)
-
getChildren
public java.util.List<WidgetChild> getChildren()
-
getVisibleChildren
public java.util.List<WidgetChild> getVisibleChildren()
-
isVisible
public boolean isVisible()
-
isOpen
public boolean isOpen()
-
isRendered
public boolean isRendered()
-
-