T
- the event source typepublic class ComponentEvent<T extends Component> extends EventObject
Component
.
Typically used together with ComponentEventBus
.
source
Constructor and Description |
---|
ComponentEvent(T source,
boolean fromClient)
Creates a new event using the given source and indicator whether the
event originated from the client side or the server side.
|
Modifier and Type | Method and Description |
---|---|
T |
getSource() |
boolean |
isFromClient()
Checks if this event originated from the client side.
|
void |
unregisterListener()
Unregisters the event listener currently being invoked.
|
toString
public ComponentEvent(T source, boolean fromClient)
source
- the source componentfromClient
- true
if the event originated from the client
side, false
otherwisepublic T getSource()
getSource
in class EventObject
public boolean isFromClient()
true
if the event originated from the client side,
false
otherwisepublic void unregisterListener()
This method can only be called from within an event listener. Calling it will remove the current event listener so no further events are passed to it.
Copyright © 2023. All rights reserved.