Liking cljdoc? Tell your friends :D

javax.swing.JSpinner$NumberEditor

An editor for a JSpinner whose model is a SpinnerNumberModel. The value of the editor is displayed with a JFormattedTextField whose format is defined by a NumberFormatter instance whose minimum and maximum properties are mapped to the SpinnerNumberModel.

An editor for a JSpinner whose model is a
SpinnerNumberModel.  The value of the editor is
displayed with a JFormattedTextField whose format
is defined by a NumberFormatter instance whose
minimum and maximum properties
are mapped to the SpinnerNumberModel.
raw docstring

->number-editorclj

(->number-editor spinner)
(->number-editor spinner decimal-format-pattern)

Constructor.

Construct a JSpinner editor that supports displaying and editing the value of a SpinnerNumberModel with a JFormattedTextField. This NumberEditor becomes both a ChangeListener on the spinner and a PropertyChangeListener on the new JFormattedTextField.

spinner - the spinner whose model this editor will monitor - javax.swing.JSpinner decimal-format-pattern - the initial pattern for the DecimalFormat object that's used to display and parse the value of the text field. - java.lang.String

throws: java.lang.IllegalArgumentException - if the spinners model is not an instance of SpinnerNumberModel or if decimalFormatPattern is not a legal argument to DecimalFormat

Constructor.

Construct a JSpinner editor that supports displaying
 and editing the value of a SpinnerNumberModel
 with a JFormattedTextField.  This
 NumberEditor becomes both a ChangeListener
 on the spinner and a PropertyChangeListener
 on the new JFormattedTextField.

spinner - the spinner whose model this editor will monitor - `javax.swing.JSpinner`
decimal-format-pattern - the initial pattern for the DecimalFormat object that's used to display and parse the value of the text field. - `java.lang.String`

throws: java.lang.IllegalArgumentException - if the spinners model is not an instance of SpinnerNumberModel or if decimalFormatPattern is not a legal argument to DecimalFormat
raw docstring

get-formatclj

(get-format this)

Returns the java.text.DecimalFormat object the JFormattedTextField uses to parse and format numbers.

returns: the value of getTextField().getFormatter().getFormat(). - java.text.DecimalFormat

Returns the java.text.DecimalFormat object the
 JFormattedTextField uses to parse and format
 numbers.

returns: the value of getTextField().getFormatter().getFormat(). - `java.text.DecimalFormat`
raw docstring

get-modelclj

(get-model this)

Return our spinner ancestor's SpinnerNumberModel.

returns: getSpinner().getModel() - javax.swing.SpinnerNumberModel

Return our spinner ancestor's SpinnerNumberModel.

returns: getSpinner().getModel() - `javax.swing.SpinnerNumberModel`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close