Class IntegerEditor

    • Constructor Detail

      • IntegerEditor

        public IntegerEditor()
    • Method Detail

      • init

        protected void init​(java.beans.FeatureDescriptor descriptor)
        Initializes this property editor with the enumerated items.
        Overrides:
        init in class ConfiguratorEditorSupport
      • getCustomEditor

        public java.awt.Component getCustomEditor()
        Return the custom editor for the enumeration or the integer.
        Specified by:
        getCustomEditor in interface java.beans.PropertyEditor
        Overrides:
        getCustomEditor in class SwingEditorSupport
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener l)
        Must overload the PropertyChangeListener registration because this class is the only interface to the SwingEnumEditor.
        Specified by:
        addPropertyChangeListener in interface java.beans.PropertyEditor
        Overrides:
        addPropertyChangeListener in class java.beans.PropertyEditorSupport
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener l)
        Specified by:
        removePropertyChangeListener in interface java.beans.PropertyEditor
        Overrides:
        removePropertyChangeListener in class java.beans.PropertyEditorSupport
      • setValue

        public void setValue​(java.lang.Object value)
        Specified by:
        setValue in interface java.beans.PropertyEditor
        Overrides:
        setValue in class AbstractNumberEditor
      • getValue

        public java.lang.Object getValue()
        Specified by:
        getValue in interface java.beans.PropertyEditor
        Overrides:
        getValue in class AbstractNumberEditor
      • extractSubtype

        protected java.lang.Object extractSubtype​(java.lang.Number number)
        Description copied from class: AbstractNumberEditor
        Return the right kind of number here.
        Specified by:
        extractSubtype in class AbstractNumberEditor
        Parameters:
        number - Will never be null.
        Returns:
        The correct kind of number, for example, a Double