T
- Type of the UIComponent
firing this Eventpublic abstract class ComponentEvent<T extends UIComponent> extends GuiEvent
UIComponent
.Modifier and Type | Class and Description |
---|---|
static class |
ComponentEvent.ValueChange<T extends UIComponent,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, isCancelled
protected T extends UIComponent component
UIComponent
firing this ComponentEvent
public ComponentEvent(T component)
ComponentEvent
component
- 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