public class DurationField
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 javax.swing.text.JTextComponent |
tf |
| Constructor and Description |
|---|
DurationField(java.lang.String name,
java.lang.String label,
ucar.nc2.units.TimeDuration defValue,
ucar.util.prefs.PersistenceManager storeData)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_validate(java.lang.StringBuffer buff)
See if edit value is valid, put error message in buff.
|
javax.swing.JComponent |
getEditComponent() |
protected java.lang.Object |
getEditValue() |
protected java.lang.Object |
getStoreValue(java.lang.Object defValue) |
ucar.nc2.units.TimeDuration |
getTimeDuration() |
protected void |
setEditValue(java.lang.Object value) |
protected void |
setStoreValue(java.lang.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, validatepublic DurationField(java.lang.String name,
java.lang.String label,
ucar.nc2.units.TimeDuration 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 javax.swing.JComponent getEditComponent()
getEditComponent in class ucar.ui.prefs.Fieldpublic ucar.nc2.units.TimeDuration getTimeDuration()
protected boolean _validate(java.lang.StringBuffer buff)
_validate in class ucar.ui.prefs.Fieldprotected java.lang.Object getEditValue()
getEditValue in class ucar.ui.prefs.Fieldprotected void setEditValue(java.lang.Object value)
setEditValue in class ucar.ui.prefs.Fieldprotected void setStoreValue(java.lang.Object value)
setStoreValue in class ucar.ui.prefs.Fieldprotected java.lang.Object getStoreValue(java.lang.Object defValue)
getStoreValue in class ucar.ui.prefs.Field