Class BaseCellEditor
java.lang.Object
com.puppycrawl.tools.checkstyle.gui.BaseCellEditor
- All Implemented Interfaces:
CellEditor
- Direct Known Subclasses:
TreeTable.TreeTableCellEditor
A base class for CellEditors, providing default implementations for all
methods in the CellEditor interface and support for managing a series
of listeners.
Original Source Location
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EventListenerList
A list of event listeners for the cell editor. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCellEditorListener
(CellEditorListener listener) void
protected void
Notifies all listeners that have registered interest in 'editing canceled' event.protected void
Notifies all listeners that have registered interest in 'editing stopped' event.boolean
isCellEditable
(EventObject event) void
removeCellEditorListener
(CellEditorListener listener) boolean
shouldSelectCell
(EventObject anEvent) boolean
-
Field Details
-
listenerList
A list of event listeners for the cell editor.
-
-
Constructor Details
-
BaseCellEditor
public BaseCellEditor()
-
-
Method Details
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
isCellEditable
- Specified by:
isCellEditable
in interfaceCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCell
in interfaceCellEditor
-
stopCellEditing
- Specified by:
stopCellEditing
in interfaceCellEditor
-
cancelCellEditing
- Specified by:
cancelCellEditing
in interfaceCellEditor
-
addCellEditorListener
- Specified by:
addCellEditorListener
in interfaceCellEditor
-
removeCellEditorListener
- Specified by:
removeCellEditorListener
in interfaceCellEditor
-
fireEditingStopped
Notifies all listeners that have registered interest in 'editing stopped' event.- See Also:
-
fireEditingCanceled
Notifies all listeners that have registered interest in 'editing canceled' event.- See Also:
-