Package ucar.ui.prefs

Class Field.Date

  • Enclosing class:
    Field

    public static class Field.Date
    extends Field
    Data input for Date
    • 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
      • isEditable

        public boolean isEditable()
        Can user edit. Default is true.
        Overrides:
        isEditable in class Field
      • setEditable

        public void setEditable​(boolean isEditable)
        Description copied from class: Field
        Set whether the field is editable, default == enabled
        Overrides:
        setEditable in class Field
      • setStoreValue

        protected void setStoreValue​(Object value)
        Set value; if different from current value, store in PersistenceManager and send event. public void setValue(Object newValue) { if (acceptIfDifferent(newValue)) { setEditValue(newValue); setStoreValue(newValue); sendEvent(); } }
        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
      • getDate

        public Date getDate()
        Return the current value
      • setDate

        public void setDate​(Date newValue)
        Set value; if different from current value, store in PersistenceManager and send event.