T - Type of the UIComponent firing this Eventpublic abstract class ComponentEvent<T extends UIComponent<T>> extends GuiEvent
UIComponent.| Modifier and Type | Class and Description |
|---|---|
static class |
ComponentEvent.ValueChange<T extends UIComponent<T>,S>
Fired when a
UIComponent gets it's value changed. |
| Modifier and Type | Field and Description |
|---|---|
protected T |
component
UIComponent firing this ComponentEvent |
| Constructor and Description |
|---|
ComponentEvent(T component)
Instantiates a new
ComponentEvent |
| Modifier and Type | Method and Description |
|---|---|
T |
getComponent()
Gets the
UIComponent that fired this ComponentEvent. |
boolean |
isFrom(java.lang.String name)
Checks if this
ComponentEvent was fired by a UIComponent with this name. |
cancel, isCancelledprotected T extends UIComponent<T> component
UIComponent firing this ComponentEventpublic ComponentEvent(T component)
ComponentEventcomponent - the componentpublic T getComponent()
UIComponent that fired this ComponentEvent.public boolean isFrom(java.lang.String name)
ComponentEvent was fired by a UIComponent with this name.name - the name