getEditor
getEditor: (JSpinner) -> Component?The editor: a JSpinner.DefaultEditor holding the formatted field (getEditor():getTextField()).
JSpinner.new(…)| Method | Returns | Description |
|---|---|---|
getEditor() | Component? | The editor: a JSpinner.DefaultEditor holding the formatted field (getEditor():getTextField()). |
addChangeListener(any) | () | Adds a ChangeListener (a table with stateChanged, or that function): it hears each change of the value, the last added first; its event… |
removeChangeListener(any) | () | Removes a ChangeListener, by identity. |
getChangeListeners() | {any} | The ChangeListeners, in registration order. |
getModel() | SpinnerModel | The model. |
getValue() | any | The model's value; a subclass's override is what the field shows. |
setValue(any) | () | The model's value; a change fires the spinner's ChangeEvent. |
new(any) | JSpinner | () -> JSpinner: A spinner over a new SpinnerNumberModel(): 0, no bounds, a step of 1. |
init(JSpinner, any) | () | (JSpinner) -> (): A spinner over a new SpinnerNumberModel(): 0, no bounds, a step of 1. |
isInstance(any) | boolean | Whether obj is a JSpinner object, a class(JSpinner) subclass's included. |
| Field | Type | Description |
|---|---|---|
super | JComponentClass | JComponent's class table: the base class. |
DefaultEditor | JSpinnerDefaultEditorClass | JSpinner.DefaultEditor: the nested class JSpinnerDefaultEditor. |
| Method | Returns | Description |
|---|---|---|
JSpinnerClass.new | JSpinner | () -> JSpinner: A spinner over a new SpinnerNumberModel(): 0, no bounds, a step of 1. |
getEditorgetEditor: (JSpinner) -> Component?The editor: a JSpinner.DefaultEditor holding the formatted field (getEditor():getTextField()).
addChangeListeneraddChangeListener: (JSpinner, any) -> ()Adds a ChangeListener (a table with stateChanged, or that function): it hears each change of the value, the last added first; its events' source is the spinner.
removeChangeListenerremoveChangeListener: (JSpinner, any) -> ()Removes a ChangeListener, by identity.
getChangeListenersgetChangeListeners: (JSpinner) -> {any}The ChangeListeners, in registration order.
getModelgetModel: (JSpinner) -> SpinnerModelThe model.
getValuegetValue: (JSpinner) -> anyThe model's value; a subclass's override is what the field shows.
setValuesetValue: (JSpinner, any) -> ()The model's value; a change fires the spinner's ChangeEvent.
newnew: (any) -> JSpinner() -> JSpinner: A spinner over a new SpinnerNumberModel(): 0, no bounds, a step of 1.
(any) -> JSpinner: A spinner over model: its arrow buttons, and its editor's field showing the model's value. nil is refused.
initinit: (JSpinner, any) -> ()(JSpinner) -> (): A spinner over a new SpinnerNumberModel(): 0, no bounds, a step of 1.
(JSpinner, any) -> (): A spinner over model: its arrow buttons, and its editor's field showing the model's value. nil is refused.
isInstanceisInstance: (any) -> booleanWhether obj is a JSpinner object, a class(JSpinner) subclass's included.