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 ComboBox |
combo |
label, listenerList, name, popupMenu, previousValue, storeData, validValue| Constructor and Description |
|---|
EnumCombo(java.lang.String fldName,
java.lang.String label,
java.util.Collection<java.lang.Object> choices,
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
|
protected java.lang.Object |
getStoreValue(java.lang.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(java.lang.Object value)
set value of editComponent
|
protected void |
setStoreValue(java.lang.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 EnumCombo(java.lang.String fldName,
java.lang.String label,
java.util.Collection<java.lang.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(java.lang.StringBuffer buff)
public javax.swing.JComponent getEditComponent()
getEditComponent in class Fieldpublic javax.swing.JComponent getDeepEditComponent()
getDeepEditComponent in class Fieldprotected java.lang.Object getEditValue()
getEditValue in class Fieldprotected void setEditValue(java.lang.Object value)
setEditValue in class Fieldprotected java.lang.Object getStoreValue(java.lang.Object defValue)
getStoreValue in class Fieldprotected void setStoreValue(java.lang.Object newValue)
setStoreValue in class Fieldpublic boolean isEditable()
isEditable in class Fieldpublic void setEditable(boolean isEditable)
FieldsetEditable in class Field