Class MyDefaultCellEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- org.nuiton.jaxx.runtime.swing.editor.MyDefaultCellEditor
-
- All Implemented Interfaces:
Serializable,CellEditor,TableCellEditor,TreeCellEditor
public class MyDefaultCellEditor extends DefaultCellEditor
- Since:
- 1.5
- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanrequireSelect-
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
-
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMyDefaultCellEditor(JCheckBox checkBox)protectedMyDefaultCellEditor(JComboBox comboBox)protectedMyDefaultCellEditor(JTextField textField)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)booleanisRequireSelect()static TableCellEditornewBooleanEditor()static TableCellEditornewBooleanEditor(boolean requireSelect)static TableCellEditornewBooleanEditor(Icon icon)static TableCellEditornewBooleanEditor(Icon icon, boolean requireSelect)static TableCellEditornewEnumEditor(EnumEditor<?> editor)static TableCellEditornewListEditor()static TableCellEditornewListEditor(JComboBox editor)static TableCellEditornewTextEditor()voidsetRequireSelect(boolean requireSelect)-
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, 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
-
-
-
-
Constructor Detail
-
MyDefaultCellEditor
protected MyDefaultCellEditor(JTextField textField)
-
MyDefaultCellEditor
protected MyDefaultCellEditor(JCheckBox checkBox)
-
MyDefaultCellEditor
protected MyDefaultCellEditor(JComboBox comboBox)
-
-
Method Detail
-
newTextEditor
public static TableCellEditor newTextEditor()
-
newBooleanEditor
public static TableCellEditor newBooleanEditor()
-
newListEditor
public static TableCellEditor newListEditor()
-
newListEditor
public static TableCellEditor newListEditor(JComboBox editor)
-
newEnumEditor
public static TableCellEditor newEnumEditor(EnumEditor<?> editor)
-
newBooleanEditor
public static TableCellEditor newBooleanEditor(Icon icon)
-
newBooleanEditor
public static TableCellEditor newBooleanEditor(Icon icon, boolean requireSelect)
-
newBooleanEditor
public static TableCellEditor newBooleanEditor(boolean requireSelect)
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponentin interfaceTableCellEditor- Overrides:
getTableCellEditorComponentin classDefaultCellEditor
-
isRequireSelect
public boolean isRequireSelect()
-
setRequireSelect
public void setRequireSelect(boolean requireSelect)
-
-