Class JSSpinner


  • public class JSSpinner
    extends JSComponent
    The javax.swing.JSpinner clone
    Author:
    gianpiero.diblasi
    • Constructor Detail

      • JSSpinner

        public JSSpinner()
        Creates the object
    • Method Detail

      • setModel

        public void setModel​(SpinnerNumberModel model)
        Clone of javax.swing.JSpinner.setModel
        Parameters:
        model - The model
      • addChangeListener

        public void addChangeListener​(ChangeListener listener)
        Clone of javax.swing.JSpinner.addChangeListener
        Parameters:
        listener - The listener
      • setValue

        public void setValue​(double value)
        Clone of javax.swing.JSpinner.setValue
        Parameters:
        value - The value
      • getValue

        public double getValue()
        Clone of javax.swing.JSpinner.getValue
        Returns:
        The value
      • getValueIsAdjusting

        public boolean getValueIsAdjusting()
        Clone of javax.swing.JSpinner.getValueIsAdjusting
        Returns:
        true if value is adjusting, false otherwise
      • setEnabled

        public void setEnabled​(boolean b)
        Description copied from class: JSComponent
        Clone of javax.swing.JComponent.setEnabled
        Overrides:
        setEnabled in class JSComponent
        Parameters:
        b - true to enable the button, false otherwise