Class AbstractNumberEditor

    • Field Detail

      • formattedTextField

        protected javax.swing.JFormattedTextField formattedTextField
    • Constructor Detail

      • AbstractNumberEditor

        public AbstractNumberEditor()
    • Method Detail

      • newNumberFormat

        protected abstract java.text.NumberFormat newNumberFormat()
        Override to provide the correct number format for your type
      • extractSubtype

        protected abstract java.lang.Object extractSubtype​(java.lang.Number number)
        Return the right kind of number here.
        Parameters:
        number - Will never be null.
        Returns:
        The correct kind of number, for example, a Double
      • setValue

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

        protected void initComponents()
        Description copied from class: ConfiguratorEditorSupport
        This is where you can add your own components to the "panel" field. It has a box layout and the binding button will be added after this method is called.
        Specified by:
        initComponents in class ConfiguratorEditorSupport
      • getValue

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