Field.BeanTable, Field.CheckBox, Field.Date, Field.Double, Field.EnumCombo, Field.Int, Field.Password, Field.Text, Field.TextArea, Field.TextCombo| Modifier and Type | Field and Description |
|---|---|
protected JTextComponent |
tf |
label, listenerList, name, popupMenu, previousValue, storeData, validValue| Constructor and Description |
|---|
DateField(String name,
String label,
DateType defValue,
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.
|
DateType |
getDate() |
JComponent |
getEditComponent()
Return the editing JComponent
|
protected Object |
getEditValue()
Get current value from editComponent
|
protected Object |
getStoreValue(Object defValue)
Get value from Store.
|
protected void |
setEditValue(Object value)
Set current value of editComponent
|
protected void |
setStoreValue(Object value)
Put new value into Store.
|
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, DateType defValue, 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()
FieldgetEditComponent in class Fieldprotected boolean _validate(StringBuffer buff)
protected Object getEditValue()
FieldgetEditValue in class Fieldpublic DateType getDate()
protected void setEditValue(Object value)
FieldsetEditValue in class Fieldprotected void setStoreValue(Object value)
FieldsetStoreValue in class Fieldprotected Object getStoreValue(Object defValue)
FieldgetStoreValue in class FieldCopyright © 1999–2014 UCAR/Unidata. All rights reserved.