Class Widget
- java.lang.Object
-
- net.eternalclient.api.wrappers.widgets.Widget
-
public class Widget extends java.lang.Object
A class representing a widget.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Widget.State
-
Constructor Summary
Constructors Constructor Description Widget(int id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WidgetChild
getChild(int id)
java.util.List<WidgetChild>
getChildren()
int
getID()
java.util.List<WidgetChild>
getVisibleChildren()
boolean
isOpen()
static boolean
isOpen(int parentID)
Checks if a parent ID is present in the list of loaded widget parents.boolean
isRendered()
static boolean
isRendered(int parentID)
Checks if a given parent ID is in the list of visible widget parents.boolean
isVisible()
static boolean
isVisible(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()
-
-