Class NumberRangeInputDialog

java.lang.Object
docking.DialogComponentProvider
docking.widgets.dialogs.NumberRangeInputDialog
All Implemented Interfaces:
ActionContextProvider, StatusListener, TaskListener

public class NumberRangeInputDialog extends DialogComponentProvider
An input dialog that accepts number input as discrete values or a range of values using ':' as the range separator.
  • Constructor Details

    • NumberRangeInputDialog

      public NumberRangeInputDialog(String title, String label)
  • Method Details

    • show

      public boolean show()
      show displays the dialog, gets the user input
      Returns:
      false if the user cancelled the operation
    • okCallback

      protected void okCallback()
      Description copied from class: DialogComponentProvider
      The callback method for when the "OK" button is pressed.
      Overrides:
      okCallback in class DialogComponentProvider
    • cancelCallback

      protected void cancelCallback()
      Description copied from class: DialogComponentProvider
      The callback method for when the "Cancel" button is pressed. The default behavior is to call setVisible(false) and dispose() on the dialog.
      Overrides:
      cancelCallback in class DialogComponentProvider
    • wasCancelled

      public boolean wasCancelled()
      Returns if this dialog is cancelled
      Returns:
      true if cancelled
    • getValue

      public SortedRangeList getValue()
      Return the value of the first (and maybe only) text field
      Returns:
      the text field value
    • setValue

      public void setValue(String text)
      Sets the text of the primary text field
      Parameters:
      text - the text