Class JSpinnerHpr


  • public class JSpinnerHpr
    extends RJHelper
    • Constructor Detail

      • JSpinnerHpr

        public JSpinnerHpr()
    • Method Detail

      • newInstance

        public java.lang.Object newInstance​(RXElement anElement)
        Creates a new instance of class for given element.
        Overrides:
        newInstance in class RJHelper
      • initInstance

        public void initInstance​(javax.swing.JComponent aComponent)
        Initializes the given instance (actually called the first time an owner is set).
        Overrides:
        initInstance in class RJHelper
      • getStringValue

        public java.lang.String getStringValue​(javax.swing.JComponent aComponent)
        Returns the spinner component's value as string.
        Overrides:
        getStringValue in class RJHelper
      • getIntValue

        public int getIntValue​(javax.swing.JComponent aComponent)
        Returns the text component's text string as an int.
        Overrides:
        getIntValue in class RJHelper
      • getFloatValue

        public float getFloatValue​(javax.swing.JComponent aComponent)
        Returns the text component's text string as a float.
        Overrides:
        getFloatValue in class RJHelper
      • setValue

        public void setValue​(javax.swing.JComponent aComponent,
                             java.lang.Object aValue)
        Sets a component's value.
        Overrides:
        setValue in class RJHelper
      • setValue

        public void setValue​(javax.swing.JComponent aComponent,
                             java.lang.String aValue)
        Sets the text component's text string.
        Overrides:
        setValue in class RJHelper
      • setValue

        public void setValue​(javax.swing.JComponent aComponent,
                             int aValue)
        Returns the text component's text string from an int.
        Overrides:
        setValue in class RJHelper
      • setValue

        public void setValue​(javax.swing.JComponent aComponent,
                             float aValue)
        Returns the text component's text string from a float.
        Overrides:
        setValue in class RJHelper
      • setValue

        public void setValue​(javax.swing.JComponent aComponent,
                             java.awt.Color aValue)
        Returns a component's value from given Color.
        Overrides:
        setValue in class RJHelper
      • isEditable

        public boolean isEditable​(javax.swing.JSpinner spinner)
      • setEditable

        public void setEditable​(javax.swing.JSpinner spinner,
                                boolean value)
      • fromXML

        public void fromXML​(javax.swing.JComponent aComponent,
                            RXArchiver anArchiver,
                            RXElement anElement)
        XML unarchival.
        Overrides:
        fromXML in class RJHelper
      • setNumberModel

        public void setNumberModel​(javax.swing.JSpinner spinner,
                                   java.lang.Number val,
                                   java.lang.Number min,
                                   java.lang.Number max,
                                   java.lang.Number step)
      • resetNumberModel

        public void resetNumberModel​(javax.swing.JSpinner spinner,
                                     java.lang.Number val,
                                     java.lang.Number min,
                                     java.lang.Number max,
                                     java.lang.Number step)