Field.BeanTableField, Field.CheckBox, Field.Date, Field.Double, Field.EnumCombo, Field.Int, Field.Password, Field.Text, Field.TextArea, Field.TextCombo
label, listenerList, name, popupMenu, previousValue, storeData, validValue
Constructor and Description |
---|
Double(java.lang.String name,
java.lang.String label,
double defValue,
int nfracDig,
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.
|
double |
getDouble()
Return the current value
|
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.
|
void |
setDouble(double value) |
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 Double(java.lang.String name, java.lang.String label, double defValue, int nfracDig, PersistenceManager storeData)
name
- of the field; must be unique within the storelabel
- to display to the userdefValue
- default value to start with.nfracDig
- number of fractional digits to displaystoreData
- store/fetch data from here, may be null.PrefPanel.addDoubleField(java.lang.String, java.lang.String, double)
protected boolean _validate(java.lang.StringBuffer buff)
public javax.swing.JComponent getEditComponent()
Field
getEditComponent
in class Field
protected java.lang.Object getEditValue()
Field
getEditValue
in class Field
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
public double getDouble()
public void setDouble(double value)