Class SelectColorCallback.Action

java.lang.Object
com.teamdev.jxbrowser.callback.AsyncCallbackAction<com.teamdev.jxbrowser.internal.rpc.SelectColor.Response>
com.teamdev.jxbrowser.browser.callback.SelectColorCallback.Action
Enclosing interface:
SelectColorCallback

public static final class SelectColorCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.internal.rpc.SelectColor.Response>
An action providing a response to the SelectColorCallback.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Action(Consumer<com.teamdev.jxbrowser.internal.rpc.SelectColor.Response> consumer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
    Tells the browser to display a color picker.

    Methods inherited from class com.teamdev.jxbrowser.callback.AsyncCallbackAction

    isClosed

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Action

      public Action(Consumer<com.teamdev.jxbrowser.internal.rpc.SelectColor.Response> consumer)
  • Method Details

    • select

      public void select(Color color)
      Notifies the browser that the user has selected a color.
      Parameters:
      color - the selected color
    • showDialog

      public void showDialog()
      Tells the browser to display a color picker.
    • cancel

      public void cancel()
      Notifies the browser that the user has canceled color selection.