public static final class SelectColorCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.internal.rpc.SelectColor.Response>
SelectColorCallback
.Constructor and Description |
---|
Action(java.util.function.Consumer<com.teamdev.jxbrowser.internal.rpc.SelectColor.Response> consumer) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Notifies the browser that the user has canceled color selection.
|
void |
select(Color color)
Notifies the browser that the user has selected a color.
|
isClosed
public Action(java.util.function.Consumer<com.teamdev.jxbrowser.internal.rpc.SelectColor.Response> consumer)
public void select(Color color)
color
- the selected colorpublic void cancel()