Class BaseCellEditor
java.lang.Object
com.puppycrawl.tools.checkstyle.gui.BaseCellEditor
- All Implemented Interfaces:
CellEditor
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCellEditorListener(CellEditorListener listener) voidprotected voidNotifies all listeners that have registered interest for 'editing canceled' event.protected voidNotifies all listeners that have registered interest for 'editing stopped' event.booleanisCellEditable(EventObject event) voidremoveCellEditorListener(CellEditorListener listener) booleanshouldSelectCell(EventObject anEvent) boolean
-
Constructor Details
-
BaseCellEditor
public BaseCellEditor()
-
-
Method Details
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor
-
isCellEditable
- Specified by:
isCellEditablein interfaceCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCellin interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditingin interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()- Specified by:
cancelCellEditingin interfaceCellEditor
-
addCellEditorListener
- Specified by:
addCellEditorListenerin interfaceCellEditor
-
removeCellEditorListener
- Specified by:
removeCellEditorListenerin interfaceCellEditor
-
fireEditingStopped
protected void fireEditingStopped()Notifies all listeners that have registered interest for 'editing stopped' event.- See Also:
-
fireEditingCanceled
protected void fireEditingCanceled()Notifies all listeners that have registered interest for 'editing canceled' event.- See Also:
-