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 |
|---|
DurationField(java.lang.String name,
java.lang.String label,
TimeDuration 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.
|
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.
|
TimeDuration |
getTimeDuration() |
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, validatepublic DurationField(java.lang.String name,
java.lang.String label,
TimeDuration 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()
FieldgetEditComponent in class Fieldpublic TimeDuration getTimeDuration()
protected boolean _validate(java.lang.StringBuffer buff)
protected java.lang.Object getEditValue()
FieldgetEditValue in class Fieldprotected void setEditValue(java.lang.Object value)
FieldsetEditValue in class Fieldprotected void setStoreValue(java.lang.Object value)
FieldsetStoreValue in class Fieldprotected java.lang.Object getStoreValue(java.lang.Object defValue)
FieldgetStoreValue in class Field