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 BeanTable |
table |
label, listenerList, name, popupMenu, previousValue, storeData, validValue
Constructor and Description |
---|
BeanTableField(java.lang.String fldName,
java.lang.String label,
java.util.ArrayList defBeans,
java.lang.Class beanClass,
PreferencesExt 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 |
getDeepEditComponent() |
javax.swing.JComponent |
getEditComponent()
return the editing JComponent
|
protected java.lang.Object |
getEditValue()
Get current value from editComponent, will be an List of beanClass
|
protected java.lang.Object |
getStoreValue(java.lang.Object defValue)
Get value from Store, will be a List of beanClass, or null
|
protected void |
setEditValue(java.lang.Object value)
set value of editComponent, must be List of beanClass
|
protected void |
setStoreValue(java.lang.Object newValue)
Put new value into Store, must be a List ob objects of type beanClass
|
accept, acceptIfDifferent, addPopupMenuAction, addPropertyChangeListener, addStandardPopups, addValidator, dfrac, finish, getLabel, getName, getPersistenceManager, getToolTipText, getValue, isEditable, isEnabled, next, removePropertyChangeListener, restoreValue, sendEvent, setEditable, setEnabled, setNewValueFromStore, setToolTipText, setValue, validate
protected BeanTable table
public BeanTableField(java.lang.String fldName, java.lang.String label, java.util.ArrayList defBeans, java.lang.Class beanClass, PreferencesExt prefs, PersistenceManager storeData)
fldName
- name of the field, must be unique within the store.label
- to display to the userdefBeans
- list of default beans to ues. May be null.beanClass
- class type of the beansstoreData
- store/fetch data from here, may be null.PrefPanel.addTextComboField(java.lang.String, java.lang.String, java.util.Collection, int, boolean)
protected boolean _validate(java.lang.StringBuffer buff)
public javax.swing.JComponent getEditComponent()
getEditComponent
in class Field
public javax.swing.JComponent getDeepEditComponent()
getDeepEditComponent
in class Field
protected java.lang.Object getEditValue()
getEditValue
in class Field
protected void setEditValue(java.lang.Object value)
setEditValue
in class Field
protected java.lang.Object getStoreValue(java.lang.Object defValue)
getStoreValue
in class Field
defValue
- use this as the defaultprotected void setStoreValue(java.lang.Object newValue)
setStoreValue
in class Field