public class MyDefaultCellEditor extends DefaultCellEditor
DefaultCellEditor.EditorDelegate| Modifier and Type | Field and Description |
|---|---|
protected boolean |
requireSelect |
clickCountToStart, delegate, editorComponentchangeEvent, listenerList| Modifier | Constructor and Description |
|---|---|
protected |
MyDefaultCellEditor(JCheckBox checkBox) |
protected |
MyDefaultCellEditor(JComboBox comboBox) |
protected |
MyDefaultCellEditor(JTextField textField) |
| Modifier and Type | Method and Description |
|---|---|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column) |
boolean |
isRequireSelect() |
static TableCellEditor |
newBooleanEditor() |
static TableCellEditor |
newBooleanEditor(boolean requireSelect) |
static TableCellEditor |
newBooleanEditor(Icon icon) |
static TableCellEditor |
newBooleanEditor(Icon icon,
boolean requireSelect) |
static TableCellEditor |
newEnumEditor(EnumEditor<?> editor) |
static TableCellEditor |
newListEditor() |
static TableCellEditor |
newListEditor(JComboBox editor) |
static TableCellEditor |
newTextEditor() |
void |
setRequireSelect(boolean requireSelect) |
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditingaddCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, removeCellEditorListenerprotected MyDefaultCellEditor(JTextField textField)
protected MyDefaultCellEditor(JCheckBox checkBox)
protected MyDefaultCellEditor(JComboBox comboBox)
public static TableCellEditor newTextEditor()
public static TableCellEditor newBooleanEditor()
public static TableCellEditor newListEditor()
public static TableCellEditor newListEditor(JComboBox editor)
public static TableCellEditor newEnumEditor(EnumEditor<?> editor)
public static TableCellEditor newBooleanEditor(Icon icon)
public static TableCellEditor newBooleanEditor(Icon icon, boolean requireSelect)
public static TableCellEditor newBooleanEditor(boolean requireSelect)
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorgetTableCellEditorComponent in class DefaultCellEditorpublic boolean isRequireSelect()
public void setRequireSelect(boolean requireSelect)
Copyright © 2008–2018 Ultreia.io. All rights reserved.