Field.BeanTableField, 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 javax.swing.text.JTextComponent |
tf |
label, listenerList, name, popupMenu, previousValue, storeData, validValue
Constructor and Description |
---|
DateField(java.lang.String name,
java.lang.String label,
DateType defValue,
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.
|
DateType |
getDate() |
javax.swing.JComponent |
getEditComponent()
Return the editing JComponent
|
protected java.lang.Object |
getEditValue()
Get current value from editComponent
|
protected java.lang.Object |
getStoreValue(java.lang.Object defValue)
Get value from Store.
|
protected void |
setEditValue(java.lang.Object value)
Set current value of editComponent
|
protected void |
setStoreValue(java.lang.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, validate
public DateField(java.lang.String name, java.lang.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 javax.swing.JComponent getEditComponent()
Field
getEditComponent
in class Field
protected boolean _validate(java.lang.StringBuffer buff)
protected java.lang.Object getEditValue()
Field
getEditValue
in class Field
public DateType getDate()
protected void setEditValue(java.lang.Object value)
Field
setEditValue
in class Field
protected void setStoreValue(java.lang.Object value)
Field
setStoreValue
in class Field
protected java.lang.Object getStoreValue(java.lang.Object defValue)
Field
getStoreValue
in class Field