Package ucar.ui.prefs

Class Field.Int

  • Enclosing class:
    Field

    public static class Field.Int
    extends Field
    Data input for double. Stored object is a String, exactly as user input. Use get/set Double to deal as a double.
    • Method Detail

      • _validate

        protected boolean _validate​(StringBuffer buff)
        See if edit value is valid, put error message in buff.
        Specified by:
        _validate in class Field
      • getEditValue

        protected Object getEditValue()
        Description copied from class: Field
        Get current value from editComponent
        Specified by:
        getEditValue in class Field
      • setEditValue

        protected void setEditValue​(Object value)
        Description copied from class: Field
        Set current value of editComponent
        Specified by:
        setEditValue in class Field
      • setStoreValue

        protected void setStoreValue​(Object value)
        Description copied from class: Field
        Put new value into Store. Must be immutable or make a copy
        Specified by:
        setStoreValue in class Field
      • getStoreValue

        protected Object getStoreValue​(Object defValue)
        Description copied from class: Field
        Get value from Store. Must be immutable or return a copy
        Specified by:
        getStoreValue in class Field
      • getInt

        public int getInt()
        Return the current value
      • setInt

        public void setInt​(int value)