public class CustomTypeComboBoxEditor extends BasicComboBoxEditor
BasicComboBoxEditor.UIResource| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowsUserValues
Whether non-present items are allowed
|
protected JComboBox |
combo
The combobox being edited
|
protected Object |
localOldValue
'oldValue' property is private somewhy, so we make our local
copy
|
editor| Constructor and Description |
|---|
CustomTypeComboBoxEditor(JComboBox combo,
boolean allowsUserValues)
Creates new editor
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convert(String value,
Class classTo)
Converts String value to specified type
|
Object |
getItem() |
void |
setItem(Object anObject)
Sets the item that should be edited.
|
addActionListener, createEditorComponent, focusGained, focusLost, getEditorComponent, removeActionListener, selectAllprotected Object localOldValue
protected final JComboBox combo
protected final boolean allowsUserValues
public CustomTypeComboBoxEditor(JComboBox combo, boolean allowsUserValues)
combo - ComboBox being editedpublic void setItem(Object anObject)
setItem in interface ComboBoxEditorsetItem in class BasicComboBoxEditoranObject - the displayed value of the editorpublic Object getItem()
getItem in interface ComboBoxEditorgetItem in class BasicComboBoxEditorCopyright © 2001–2015 Apache Cayenne. All rights reserved.