Interface WidgetChild

All Superinterfaces:
Actionable, Clickable, Comparable<WidgetChild>, Identifiable, Interactable, Item, Nameable, Renderable, Validatable

public interface WidgetChild extends Actionable, Clickable, Interactable, Item, Validatable, Comparable<WidgetChild>
Represents an interface component. A widget child may or may not have a parent interface, and will always have a parent WidgetGroup.
  • Method Details

    • getIndex

      int getIndex()
      Gets the index.
      Returns:
      int
    • getChildId

      int getChildId()
      Gets the interface id of this child.
      Returns:
      int
    • getParentId

      int getParentId()
      Gets the id of the parent.
      Returns:
      int
    • getGroup

      WidgetGroup getGroup()
      Gets the widget group.
      Returns:
      WidgetGroup
    • getParent

      WidgetChild getParent()
      Gets the parent.
      Returns:
      parent or null
    • getRelativeX

      int getRelativeX()
      Gets the x-coordinate relative to its parent.
      Returns:
      int
    • getRelativeY

      int getRelativeY()
      Gets the y-coordinate relative to its parent.
      Returns:
      int
    • getRelativeLocation

      Point getRelativeLocation()
      Gets the location relative to its parent.
      Returns:
      int
    • getAbsoluteX

      int getAbsoluteX()
      Gets the absolute x-coordinate on screen.
      Returns:
      int
    • getAbsoluteY

      int getAbsoluteY()
      Gets the absolute y-coordinate on screen.
      Returns:
      int
    • getAbsoluteLocation

      Point getAbsoluteLocation()
      Gets the absolute location on screen.
      Returns:
      int
    • getWidth

      int getWidth()
      Gets the width.
      Returns:
      int
    • getHeight

      int getHeight()
      Gets the height.
      Returns:
      int
    • getBounds

      Rectangle getBounds()
      Gets the bounding rectangle of this interface.
      Returns:
      int
    • getScrollX

      int getScrollX()
      Gets the x-coordinate of the scroll bar.
      Returns:
      int
    • getScrollY

      int getScrollY()
      Gets the y-coordinate of the scroll bar.
      Returns:
      int
    • getScrollWidth

      int getScrollWidth()
      Gets the width of the scroll bar.
      Returns:
      int
    • getScrollHeight

      int getScrollHeight()
      Gets the height of the scroll bar.
      Returns:
      int
    • getBorderThickness

      int getBorderThickness()
      Gets the border thickness.
      Returns:
      int
    • getRotationX

      int getRotationX()
      Gets the rotation on the x-axis.
      Returns:
      int
    • getRotationY

      int getRotationY()
      Gets the rotation on the y-axis.
      Returns:
      int
    • getRotationZ

      int getRotationZ()
      Gets the rotation on the z-axis.
      Returns:
      int
    • getAlpha

      int getAlpha()
      Gets the alpha/transparency.
      Returns:
      int
    • getMaterialId

      int getMaterialId()
      Gets the material id.
      Returns:
      int
    • getFontId

      int getFontId()
      Gets the font id.
      Returns:
      int
    • getModelZoom

      int getModelZoom()
      Gets the model zoom.
      Returns:
      int
    • getModelId

      int getModelId()
      Gets the model id.
      Returns:
      int
    • getText

      String getText()
      Gets the text.
      Returns:
      String
    • getRawText

      String getRawText()
      Gets the raw text with HTML
      Returns:
      String
    • getTextColor

      Color getTextColor()
      Gets the text color.
      Returns:
      Color
    • getItemId

      int getItemId()
      Gets the item id.
      Returns:
      int[]
    • hasChildren

      boolean hasChildren()
      Gets whether or not this interface has children.
      Returns:
      true if it has children, false otherwise
    • getChildren

      List<WidgetChild> getChildren()
      Gets the children.
      Returns:
      list of children
    • getChild

      WidgetChild getChild(int index)
      Gets the child at the given index.
      Parameters:
      index - the index
      Returns:
      child or null
    • find

      Finds a matching child.
      Parameters:
      filter - the matching filter
      Returns:
      WidgetChild or null
    • findAll

      Finds a matching child.
      Parameters:
      filter - the matching filter
      Returns:
      list of WidgetChild