Class NumberRangeInputDialog

    • Constructor Detail

      • NumberRangeInputDialog

        public NumberRangeInputDialog​(java.lang.String title,
                                      java.lang.String label)
    • Method Detail

      • show

        public boolean show()
        show displays the dialog, gets the user input
        Returns:
        false if the user cancelled the operation
      • 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​(java.lang.String text)
        Sets the text of the primary text field
        Parameters:
        text - the text