public abstract class CompositionEvent extends ComponentEvent<Component>
source
Constructor and Description |
---|
CompositionEvent(Component source)
Creates a new server-side composition event with no additional
information.
|
CompositionEvent(Component source,
boolean fromClient,
String data,
String locale)
Creates a new composition event.
|
Modifier and Type | Method and Description |
---|---|
String |
getData()
Gets the string being composed.
|
Optional<Locale> |
getLocale()
Gets the optional
Locale of the event. |
getSource, isFromClient, unregisterListener
toString
public CompositionEvent(Component source, boolean fromClient, String data, String locale)
source
- the component that fired the eventfromClient
- true
if the event was originally fired on the
client, false
if the event originates from
server-side logicdata
- the string being composedlocale
- language code for the composition event, if available;
otherwise, the empty stringpublic CompositionEvent(Component source)
source
- the component that fired the eventCopyright © 2022. All rights reserved.