Class DateField


  • public class DateField
    extends Field
    Input field for thredds.datatype.DateType, part of ucar.ui.prefs.
    See Also:
    Field
    • Constructor Detail

      • DateField

        public DateField​(String name,
                         String label,
                         DateType defValue,
                         PersistenceManager storeData)
        Constructor.
        Parameters:
        name - of the field; must be unique within the store
        label - to display to the user
        defValue - default value to start with.
        storeData - store/fetch data from here, may be null.
    • 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