public static class

JSpinner.ListEditor

extends JSpinner.DefaultEditor
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JPanel
           ↳ javax.swing.JSpinner.DefaultEditor
             ↳ javax.swing.JSpinner.ListEditor

Class Overview

An editor for a JSpinner whose model is a SpinnerListModel.

Summary

[Expand]
Inherited Constants
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
[Expand]
Inherited Fields
From class javax.swing.JComponent
Public Constructors
JSpinner.ListEditor(JSpinner spinner)
Construct a JSpinner editor that supports displaying and editing the value of a SpinnerListModel with a JFormattedTextField.
Public Methods
SpinnerListModel getModel()
Return our spinner ancestor's SpinnerNumberModel.
[Expand]
Inherited Methods
From class javax.swing.JSpinner.DefaultEditor
From class javax.swing.JPanel
From class javax.swing.JComponent
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.LayoutManager
From interface java.awt.MenuContainer
From interface java.awt.image.ImageObserver
From interface java.beans.PropertyChangeListener
From interface javax.accessibility.Accessible
From interface javax.swing.event.ChangeListener

Public Constructors

public JSpinner.ListEditor (JSpinner spinner)

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

Parameters
spinner the spinner whose model this editor will monitor
Throws
IllegalArgumentException if the spinners model is not an instance of SpinnerListModel

Public Methods

public SpinnerListModel getModel ()

Return our spinner ancestor's SpinnerNumberModel.

Returns
  • getSpinner().getModel()