Widgets

object Widgets

Functions

close
Link copied to clipboard
fun close(interfaceComponents: Array<Component>?): Boolean

Finds the close button among the provided interface components, and closes it using mouse.

fun close(interfaceComponent: Component): Boolean

Finds the close button among the components of the provided interface widget, and closes it using mouse.

fun close(interfaceComponents: Array<Component>?, hotkey: Boolean): Boolean

Finds the close button among the provided interface components, and closes it using either mouse or hotkey. WARNING: It is recommended to use the overloaded method .close. In the future, when the antipatterns are implemented, the client will automatically decide whether or not to use hotkeys to close the interface.

fun close(closeButton: Component?, hotkey: Boolean): Boolean

Finds the close button among the components of the provided interface widget, and closes it using either mouse or hotkey. WARNING: It is recommended to use the overloaded method .close. In the future, when the antipatterns are implemented, the client will automatically decide whether or not to use hotkeys to close the interface.

component
Link copied to clipboard
fun component(index: Int, componentIndex: Int): Component

Retrieves the cached Component of the given Component index.

fun component(index: Int, componentIndex: Int, subComponentIndex: Int): Component
get
Link copied to clipboard
fun get(predicate: Predicate<Widget>? = null, first: Boolean = false): List<Widget?>

{@inheritDoc}

nil
Link copied to clipboard
fun nil(): Widget
scroll
Link copied to clipboard
fun scroll(component: Component?, pane: Component?, bar: Component?): Boolean

Scrolls to view the provided component, if it's not already in view.

stream
Link copied to clipboard
fun stream(): WidgetStream

{@inheritDoc}

widget
Link copied to clipboard
fun widget(index: Int): Widget

Properties

logger
Link copied to clipboard
val logger: Logger