public class EnumEditor extends CustomEditor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowNull |
protected Class |
classEnum |
protected JComboBox |
combo |
protected int |
nullIndex |
propertyEditorSupportcellEditable, component, listeners, shouldSelectCell| Constructor and Description |
|---|
EnumEditor(Class cenum,
boolean allowNull) |
EnumEditor(EnumEditor sample) |
| Modifier and Type | Method and Description |
|---|---|
EnumEditor |
clone() |
protected JComponent |
createComponent()
Создание графического компонента - редактора
|
String |
getAsText() |
String |
getJavaInitializationString() |
Object |
getValue() |
void |
setAsText(String text) |
void |
setValue(Object value) |
addPropertyChangeListener, firePropertyChanged, getCellEditorValue, getComponent, getCustomEditor, getTags, isPaintable, paintValue, parseEditOptions, removePropertyChangeListener, setTags, startEditing, supportsCustomEditoraddCellEditorListener, cancelCellEditing, clearAllListeners, fireEditingCanceled, fireEditingStopped, getEditIcon, getNullIcon, getNullSelectedIcon, getNullUnSelectedIcon, isCellEditable, isShouldSelectCell, removeCellEditorListener, setCellEditable, setComponent, setShouldSelectCell, stopCellEditingprotected Class classEnum
protected boolean allowNull
protected int nullIndex
protected JComboBox combo
public EnumEditor(Class cenum, boolean allowNull)
public EnumEditor(EnumEditor sample)
public EnumEditor clone()
clone in class CustomEditorprotected JComponent createComponent()
CustomEditorcreateComponent in class CustomEditorpublic void setValue(Object value)
public Object getValue()
public String getJavaInitializationString()
public String getAsText()
public void setAsText(String text) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2019. All rights reserved.