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.
|
void |
showDialog()
Tells the browser to display a color picker.
|
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 showDialog()
public void cancel()