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 |
|---|
Field.BeanTableField(String fldName,
String label,
ArrayList defBeans,
Class beanClass,
PreferencesExt prefs,
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.
|
JComponent |
getDeepEditComponent() |
JComponent |
getEditComponent()
return the editing JComponent
|
protected Object |
getEditValue()
Get current value from editComponent, will be an List of beanClass
|
protected Object |
getStoreValue(Object defValue)
Get value from Store, will be a List of beanClass, or null
|
protected void |
setEditValue(Object value)
set value of editComponent, must be List of beanClass
|
protected void |
setStoreValue(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, validateprotected BeanTable table
public Field.BeanTableField(String fldName, String label, ArrayList defBeans, 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(StringBuffer buff)
public JComponent getEditComponent()
getEditComponent in class Fieldpublic JComponent getDeepEditComponent()
getDeepEditComponent in class Fieldprotected Object getEditValue()
getEditValue in class Fieldprotected void setEditValue(Object value)
setEditValue in class Fieldprotected Object getStoreValue(Object defValue)
getStoreValue in class FielddefValue - use this as the defaultprotected void setStoreValue(Object newValue)
setStoreValue in class FieldCopyright © 1999–2015 UCAR/Unidata. All rights reserved.