public class JComponentCellEditor extends Object implements TableCellEditor, TreeCellEditor, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected ChangeEvent |
changeEvent
The change event
|
protected JComponent |
container
The container using this editor
|
protected JComponent |
editorComponent
The editor component
|
protected EventListenerList |
listenerList
List of listeners
|
| Constructor and Description |
|---|
JComponentCellEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCellEditorListener(CellEditorListener l) |
void |
cancelCellEditing() |
protected void |
fireEditingCanceled()
Fire the editing canceled event
|
protected void |
fireEditingStopped()
Fires the editor stopped event
|
Object |
getCellEditorValue() |
Component |
getComponent()
Internal class.
|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column) |
Component |
getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row) |
boolean |
isCellEditable(EventObject anEvent) |
void |
removeCellEditorListener(CellEditorListener l) |
boolean |
shouldSelectCell(EventObject anEvent) |
boolean |
stopCellEditing() |
protected EventListenerList listenerList
protected transient ChangeEvent changeEvent
protected JComponent editorComponent
protected JComponent container
public Component getComponent()
public Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic boolean isCellEditable(EventObject anEvent)
isCellEditable in interface CellEditorpublic boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell in interface CellEditorpublic boolean stopCellEditing()
stopCellEditing in interface CellEditorpublic void cancelCellEditing()
cancelCellEditing in interface CellEditorpublic void addCellEditorListener(CellEditorListener l)
addCellEditorListener in interface CellEditorpublic void removeCellEditorListener(CellEditorListener l)
removeCellEditorListener in interface CellEditorprotected void fireEditingStopped()
protected void fireEditingCanceled()
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
getTreeCellEditorComponent in interface TreeCellEditorpublic Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorCopyright © 2006–2017 Esito AS. All rights reserved.