Modifier and Type | Method and Description |
---|---|
<T> SerializableConsumer<T> |
UI.accessLater(SerializableConsumer<T> accessTask,
SerializableRunnable detachHandler)
Wraps the given access task as a consumer that passes a value to the
given task with this UI locked.
|
Modifier and Type | Method and Description |
---|---|
<T> SerializableConsumer<T> |
UI.accessLater(SerializableConsumer<T> accessTask,
SerializableRunnable detachHandler)
Wraps the given access task as a consumer that passes a value to the
given task with this UI locked.
|
StateTree.ExecutionRegistration |
UI.beforeClientResponse(Component component,
SerializableConsumer<ExecutionContext> execution)
Registers a task to be executed before the response is sent to the
client.
|
Modifier and Type | Method and Description |
---|---|
void |
PendingJavaScriptInvocation.then(SerializableConsumer<elemental.json.JsonValue> successHandler,
SerializableConsumer<String> errorHandler) |
void |
PendingJavaScriptInvocation.then(SerializableConsumer<elemental.json.JsonValue> successHandler,
SerializableConsumer<String> errorHandler) |
Constructor and Description |
---|
AbstractFieldSupport(C component,
T defaultValue,
SerializableBiPredicate<T,T> valueEquals,
SerializableConsumer<T> setPresentationValue)
Creates a new field support.
|
Modifier and Type | Method and Description |
---|---|
void |
Page.fetchCurrentURL(SerializableConsumer<URL> callback)
Retrieves the current url from the browser.
|
default <T> void |
PendingJavaScriptResult.then(Class<T> targetType,
SerializableConsumer<T> resultHandler)
Adds a typed handler that will be run for a successful execution.
|
default <T> void |
PendingJavaScriptResult.then(Class<T> targetType,
SerializableConsumer<T> resultHandler,
SerializableConsumer<String> errorHandler)
Adds a typed handler that will be run for a successful execution and a
handler that will be run for a failed execution.
|
default <T> void |
PendingJavaScriptResult.then(Class<T> targetType,
SerializableConsumer<T> resultHandler,
SerializableConsumer<String> errorHandler)
Adds a typed handler that will be run for a successful execution and a
handler that will be run for a failed execution.
|
default void |
PendingJavaScriptResult.then(SerializableConsumer<elemental.json.JsonValue> resultHandler)
Adds an untyped handler that will be run for a successful execution.
|
void |
PendingJavaScriptResult.then(SerializableConsumer<elemental.json.JsonValue> resultHandler,
SerializableConsumer<String> errorHandler)
Adds an untyped handler that will be run for a successful execution and a
handler that will be run for a failed execution.
|
void |
PendingJavaScriptResult.then(SerializableConsumer<elemental.json.JsonValue> resultHandler,
SerializableConsumer<String> errorHandler)
Adds an untyped handler that will be run for a successful execution and a
handler that will be run for a failed execution.
|
Modifier and Type | Method and Description |
---|---|
protected <T> Registration |
Binder.addListener(Class<T> eventType,
SerializableConsumer<T> method)
Adds a listener to the binder.
|
void |
Result.handle(SerializableConsumer<R> ifOk,
SerializableConsumer<String> ifError)
Invokes either the first callback or the second one, depending on whether
this Result denotes a success or a failure, respectively.
|
void |
Result.handle(SerializableConsumer<R> ifOk,
SerializableConsumer<String> ifError)
Invokes either the first callback or the second one, depending on whether
this Result denotes a success or a failure, respectively.
|
default void |
Result.ifError(SerializableConsumer<String> consumer)
Applies the
consumer if result is an error. |
default void |
Result.ifOk(SerializableConsumer<R> consumer)
Applies the
consumer if result is not an error. |
Constructor and Description |
---|
ReadOnlyHasValue(SerializableConsumer<V> valueProcessor)
Creates new
ReadOnlyHasValue with null as an empty value. |
ReadOnlyHasValue(SerializableConsumer<V> valueProcessor,
V emptyValue)
Creates new
ReadOnlyHasValue |
Modifier and Type | Method and Description |
---|---|
<F> SerializableConsumer<F> |
DataCommunicator.setDataProvider(DataProvider<T,F> dataProvider,
F initialFilter)
Sets the current data provider for this DataCommunicator.
|
Modifier and Type | Method and Description |
---|---|
protected <E> Registration |
AbstractDataProvider.addListener(Class<E> eventType,
SerializableConsumer<E> method)
Registers a new listener with the specified activation method to listen
events generated by this component.
|
Constructor and Description |
---|
DataCommunicator(DataGenerator<T> dataGenerator,
ArrayUpdater arrayUpdater,
SerializableConsumer<elemental.json.JsonArray> dataUpdater,
StateNode stateNode)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
<F> SerializableConsumer<F> |
HierarchicalDataCommunicator.setDataProvider(DataProvider<T,F> dataProvider,
F initialFilter)
Set the current hierarchical data provider for this communicator.
|
<F> SerializableConsumer<F> |
HierarchicalDataCommunicator.setDataProvider(HierarchicalDataProvider<T,F> dataProvider,
F initialFilter)
Set the current hierarchical data provider for this communicator.
|
Constructor and Description |
---|
HierarchicalDataCommunicator(CompositeDataGenerator<T> dataGenerator,
HierarchicalArrayUpdater arrayUpdater,
SerializableConsumer<elemental.json.JsonArray> dataUpdater,
StateNode stateNode,
SerializableSupplier<ValueProvider<T,String>> uniqueKeyProviderSupplier)
Construct a new hierarchical data communicator backed by a
TreeDataProvider . |
Modifier and Type | Method and Description |
---|---|
Map<String,SerializableConsumer<SOURCE>> |
Renderer.getEventHandlers()
Gets the event handlers linked to this renderer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Renderer.setEventHandler(String handlerName,
SerializableConsumer<SOURCE> handler)
Sets an event handler for events from elements inside the template.
|
TemplateRenderer<SOURCE> |
TemplateRenderer.withEventHandler(String handlerName,
SerializableConsumer<SOURCE> handler)
Sets an event handler for events from elements inside the template.
|
Modifier and Type | Method and Description |
---|---|
SerializableConsumer<ExecutionContext> |
StateTree.BeforeClientResponseEntry.getExecution() |
Modifier and Type | Method and Description |
---|---|
StateTree.ExecutionRegistration |
StateTree.beforeClientResponse(StateNode context,
SerializableConsumer<ExecutionContext> execution)
Registers a task to be executed before the response is sent to the
client.
|
void |
StateNode.runWhenAttached(SerializableConsumer<UI> command)
Runs the command when the node is attached to a UI.
|
Modifier and Type | Method and Description |
---|---|
ReturnChannelRegistration |
ReturnChannelMap.registerChannel(SerializableConsumer<elemental.json.JsonArray> handler)
Registers a new channel based on a callback that receives the provided
arguments when a message is passed to the channel.
|
Copyright © 2025. All rights reserved.