Package util.treetable
Class AbstractCellEditor
- java.lang.Object
-
- util.treetable.AbstractCellEditor
-
- All Implemented Interfaces:
CellEditor
- Direct Known Subclasses:
JTreeTable.TreeTableCellEditor
public class AbstractCellEditor extends Object implements CellEditor
- Version:
- %I% %G% A base class for CellEditors, providing default implementations for all methods in the CellEditor interface and support for managing a series of listeners.
- Author:
- Philip Milne
-
-
Field Summary
Fields Modifier and Type Field Description protected EventListenerListlistenerList
-
Constructor Summary
Constructors Constructor Description AbstractCellEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCellEditorListener(CellEditorListener l)voidcancelCellEditing()protected voidfireEditingCanceled()Notify all listeners that have registered interest for notification on this event type.protected voidfireEditingStopped()Notify all listeners that have registered interest for notification on this event type.ObjectgetCellEditorValue()booleanisCellEditable(EventObject e)voidremoveCellEditorListener(CellEditorListener l)booleanshouldSelectCell(EventObject anEvent)booleanstopCellEditing()
-
-
-
Field Detail
-
listenerList
protected EventListenerList listenerList
-
-
Method Detail
-
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValuein interfaceCellEditor
-
isCellEditable
public boolean isCellEditable(EventObject e)
- Specified by:
isCellEditablein interfaceCellEditor
-
shouldSelectCell
public boolean shouldSelectCell(EventObject anEvent)
- Specified by:
shouldSelectCellin interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditingin interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()
- Specified by:
cancelCellEditingin interfaceCellEditor
-
addCellEditorListener
public void addCellEditorListener(CellEditorListener l)
- Specified by:
addCellEditorListenerin interfaceCellEditor
-
removeCellEditorListener
public void removeCellEditorListener(CellEditorListener l)
- Specified by:
removeCellEditorListenerin interfaceCellEditor
-
fireEditingStopped
protected void fireEditingStopped()
Notify all listeners that have registered interest for notification on this event type.- See Also:
EventListenerList
-
fireEditingCanceled
protected void fireEditingCanceled()
Notify all listeners that have registered interest for notification on this event type.- See Also:
EventListenerList
-
-