public class DateField
extends ucar.ui.prefs.Field
Fielducar.ui.prefs.Field.BeanTableField, ucar.ui.prefs.Field.CheckBox, ucar.ui.prefs.Field.Date, ucar.ui.prefs.Field.Double, ucar.ui.prefs.Field.EnumCombo, ucar.ui.prefs.Field.Int, ucar.ui.prefs.Field.Password, ucar.ui.prefs.Field.Text, ucar.ui.prefs.Field.TextArea, ucar.ui.prefs.Field.TextCombo| Modifier and Type | Field and Description |
|---|---|
protected JTextComponent |
tf |
| Constructor and Description |
|---|
DateField(String name,
String label,
ucar.nc2.units.DateType defValue,
ucar.util.prefs.PersistenceManager storeData)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_validate(StringBuffer buff)
See if edit value is valid, put error message in buff.
|
ucar.nc2.units.DateType |
getDate() |
JComponent |
getEditComponent() |
protected Object |
getEditValue() |
protected Object |
getStoreValue(Object defValue) |
protected void |
setEditValue(Object value) |
protected void |
setStoreValue(Object value) |
accept, acceptIfDifferent, addPopupMenuAction, addPropertyChangeListener, addStandardPopups, addValidator, dfrac, finish, getDeepEditComponent, getLabel, getName, getPersistenceManager, getToolTipText, getValue, isEditable, isEnabled, next, removePropertyChangeListener, restoreValue, sendEvent, setEditable, setEnabled, setNewValueFromStore, setToolTipText, setValue, validateprotected JTextComponent tf
public DateField(String name, String label, ucar.nc2.units.DateType defValue, ucar.util.prefs.PersistenceManager storeData)
name - of the field; must be unique within the storelabel - to display to the userdefValue - default value to start with.storeData - store/fetch data from here, may be null.public JComponent getEditComponent()
getEditComponent in class ucar.ui.prefs.Fieldprotected boolean _validate(StringBuffer buff)
_validate in class ucar.ui.prefs.Fieldprotected Object getEditValue()
getEditValue in class ucar.ui.prefs.Fieldpublic ucar.nc2.units.DateType getDate()
protected void setEditValue(Object value)
setEditValue in class ucar.ui.prefs.Fieldprotected void setStoreValue(Object value)
setStoreValue in class ucar.ui.prefs.Field