Field.BeanTable, 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 ComboBox |
combo |
label, listenerList, name, popupMenu, previousValue, storeData, validValue| Constructor and Description |
|---|
Field.EnumCombo(String fldName,
String label,
Collection<Object> choices,
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
|
protected Object |
getStoreValue(Object defValue)
Get value from Store, will be an item to be placed in the list
|
boolean |
isEditable()
can user edit?
|
void |
setEditable(boolean isEditable)
Set whether the field is editable, default == enabled
|
protected void |
setEditValue(Object value)
set value of editComponent
|
protected void |
setStoreValue(Object newValue)
Put new value into Store, will be an item from the list
|
accept, acceptIfDifferent, addPopupMenuAction, addPropertyChangeListener, addStandardPopups, addValidator, dfrac, finish, getLabel, getName, getPersistenceManager, getToolTipText, getValue, isEnabled, next, removePropertyChangeListener, restoreValue, sendEvent, setEnabled, setNewValueFromStore, setToolTipText, setValue, validateprotected ComboBox combo
public Field.EnumCombo(String fldName, String label, Collection<Object> choices, PersistenceManager storeData)
fldName - name of the field, must be unique within the store.label - to display to the userchoices - list of enumerations.storeData - 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 Fieldprotected void setStoreValue(Object newValue)
setStoreValue in class Fieldpublic boolean isEditable()
isEditable in class Fieldpublic void setEditable(boolean isEditable)
FieldsetEditable in class FieldCopyright © 1999-2013 UCAR/Unidata. All Rights Reserved.