Interface SelectColorCallback
- All Superinterfaces:
AsyncCallback<SelectColorCallback.Params,
,SelectColorCallback.Action> BrowserAsyncCallback<SelectColorCallback.Params,
,SelectColorCallback.Action> BrowserCallback
,Callback
- All Known Implementing Classes:
DefaultSelectColorCallback
,DefaultSelectColorCallback
,DefaultSelectColorCallback
public interface SelectColorCallback
extends BrowserAsyncCallback<SelectColorCallback.Params,SelectColorCallback.Action>
This callback is invoked when the user clicks an
<input type='color'>
HTML5 element. You
can use this callback to display your own color chooser dialog or set the required color
programmatically without displaying any dialogs.
The SelectColorCallback.Params
describes the color chooser dialog params.
Use the SelectColorCallback.Action.select(Color)
method to notify the browser that the color has been
selected.
Use the SelectColorCallback.Action.cancel()
to cancel the color selection.
If the callback throws an exception, the SelectColorCallback.Action.cancel()
method will be invoked.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
An action providing a response to theSelectColorCallback
.static interface
The parameters of theSelectColorCallback
. -
Method Summary
Methods inherited from interface com.teamdev.jxbrowser.callback.AsyncCallback
on