Package org.ka2ddo.yaac.gui.table
Class EnumCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
org.ka2ddo.yaac.gui.table.EnumCellEditor
- All Implemented Interfaces:
Serializable
,CellEditor
,TableCellEditor
,TreeCellEditor
This class defines an editor for a table cell containing an enumeration. It fires up
a JComboBox to pick null or any of the legal values of the enumeration.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate
-
Field Summary
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnumCellEditor
createEnumEditor
(Class<? extends Enum> enumeration, boolean nullAllowed) Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
-
Method Details
-
createEnumEditor
public static EnumCellEditor createEnumEditor(Class<? extends Enum> enumeration, boolean nullAllowed)
-