Class CategoryAbstractCellEditor
- java.lang.Object
-
- org.apache.log4j.lf5.viewer.categoryexplorer.CategoryAbstractCellEditor
-
- All Implemented Interfaces:
CellEditor
,TableCellEditor
,TreeCellEditor
- Direct Known Subclasses:
CategoryNodeEditor
public class CategoryAbstractCellEditor extends Object implements TableCellEditor, TreeCellEditor
CategoryAbstractCellEditor. Base class to handle the some common details of cell editing.- Author:
- Michael J. Sikorsky, Robert Shaw
-
-
Field Summary
Fields Modifier and Type Field Description protected ChangeEvent
_changeEvent
protected int
_clickCountToStart
protected EventListenerList
_listenerList
protected Object
_value
-
Constructor Summary
Constructors Constructor Description CategoryAbstractCellEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCellEditorListener(CellEditorListener l)
void
cancelCellEditing()
protected void
fireEditingCanceled()
protected void
fireEditingStopped()
Object
getCellEditorValue()
int
getClickCountToStart()
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)
void
setCellEditorValue(Object value)
void
setClickCountToStart(int count)
boolean
shouldSelectCell(EventObject anEvent)
boolean
stopCellEditing()
-
-
-
Field Detail
-
_listenerList
protected EventListenerList _listenerList
-
_value
protected Object _value
-
_changeEvent
protected ChangeEvent _changeEvent
-
_clickCountToStart
protected int _clickCountToStart
-
-
Method Detail
-
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
setCellEditorValue
public void setCellEditorValue(Object value)
-
setClickCountToStart
public void setClickCountToStart(int count)
-
getClickCountToStart
public int getClickCountToStart()
-
isCellEditable
public boolean isCellEditable(EventObject anEvent)
- Specified by:
isCellEditable
in interfaceCellEditor
-
shouldSelectCell
public boolean shouldSelectCell(EventObject anEvent)
- Specified by:
shouldSelectCell
in interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditing
in interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()
- Specified by:
cancelCellEditing
in interfaceCellEditor
-
addCellEditorListener
public void addCellEditorListener(CellEditorListener l)
- Specified by:
addCellEditorListener
in interfaceCellEditor
-
removeCellEditorListener
public void removeCellEditorListener(CellEditorListener l)
- Specified by:
removeCellEditorListener
in interfaceCellEditor
-
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
- Specified by:
getTreeCellEditorComponent
in interfaceTreeCellEditor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-
fireEditingStopped
protected void fireEditingStopped()
-
fireEditingCanceled
protected void fireEditingCanceled()
-
-