Liking cljdoc? Tell your friends :D

javax.swing.JSpinner$DateEditor

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

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

->date-editorclj

(->date-editor spinner)
(->date-editor spinner date-format-pattern)

Constructor.

Construct a JSpinner editor that supports displaying and editing the value of a SpinnerDateModel with a JFormattedTextField. This DateEditor 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 date-format-pattern - the initial pattern for the SimpleDateFormat 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 SpinnerDateModel

Constructor.

Construct a JSpinner editor that supports displaying
 and editing the value of a SpinnerDateModel
 with a JFormattedTextField.  This
 DateEditor 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`
date-format-pattern - the initial pattern for the SimpleDateFormat 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 SpinnerDateModel
raw docstring

get-formatclj

(get-format this)

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

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

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

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

get-modelclj

(get-model this)

Return our spinner ancestor's SpinnerDateModel.

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

Return our spinner ancestor's SpinnerDateModel.

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

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

× close