Package ucar.ui.prefs

Class Field.Text

    • Method Detail

      • isEditable

        public boolean isEditable()
        Can the user edit this field.
        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
      • _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)
        Get value from Store, if it exists, else return default value.
        Specified by:
        getStoreValue in class Field
        Parameters:
        defValue - default value
        Returns:
        stored value, or defValue if no store or value not in store
      • getText

        public String getText()
        Return the current accepted value
      • setText

        public void setText​(String newValue)
        Set value of text; if different from current value, store in PersistenceManager and send event.