Modifier and Type | Method and Description |
---|---|
StateTree.ExecutionRegistration |
UI.beforeClientResponse(Component component,
SerializableConsumer<ExecutionContext> execution)
Registers a task to be executed before the response is sent to the
client.
|
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 |
---|---|
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 |
---|---|
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.
|
Copyright © 2018. All rights reserved.