Class TClickableWidget

java.lang.Object
io.github.thecsdev.tcdcommons.api.client.gui.TElement
io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget
All Implemented Interfaces:
TParentElement, ITooltipProvider, IEnableStateProvider, IEnableStateProviderSetter
Direct Known Subclasses:
TButtonWidget, TTextFieldWidget

public abstract class TClickableWidget extends TElement implements IEnableStateProviderSetter
An abstract class representing a clickable widget that extends TElement.

A TClickableWidget can be interacted with either by clicking it with the mouse or by pressing the enter key when it is focused. This class provides methods to handle the click action and to process input events.

Subclasses of TClickableWidget need to implement the onClick() method to define the behavior when the widget is clicked.

See Also: