Class CheckBoxParam

java.lang.Object
io.deephaven.query.parameterized.impl.ui.CheckBoxParam
All Implemented Interfaces:
ParamWidget

public class CheckBoxParam extends Object implements ParamWidget
A simple ParamWidget that displays a boolean as a checkbox.
  • Constructor Details

    • CheckBoxParam

      public CheckBoxParam(Parameter parameter)
  • Method Details

    • getValues

      public String[] getValues()
      Description copied from interface: ParamWidget
      Get the text representation of the current parameter value
      Specified by:
      getValues in interface ParamWidget
      Returns:
      the string representation of the value
    • setValue

      public void setValue(String[] value)
      Description copied from interface: ParamWidget
      Set the current value to the specified value or set of values..
      Specified by:
      setValue in interface ParamWidget
      Parameters:
      value - the value to set
    • getParam

      @NotNull public @NotNull Parameter getParam()
      Description copied from interface: ParamWidget
      Get the Parameter object for this widget
      Specified by:
      getParam in interface ParamWidget
      Returns:
      the parameter
    • validate

      public boolean validate()
      Description copied from interface: ParamWidget
      Check if the Parameter meets its Constraint criteria.
      Specified by:
      validate in interface ParamWidget
      Returns:
      true if the value is valid.
    • getComponent

      @NotNull public @NotNull JComponent getComponent()
      Description copied from interface: ParamWidget
      Get the ui component for rendering
      Specified by:
      getComponent in interface ParamWidget
      Returns:
      the component