Class BaseCellEditor
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.gui.BaseCellEditor
-
- All Implemented Interfaces:
CellEditor
public class BaseCellEditor extends Object implements 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 Constructor Description BaseCellEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCellEditorListener(CellEditorListener listener)voidcancelCellEditing()protected voidfireEditingCanceled()Notifies all listeners that have registered interest for 'editing canceled' event.protected voidfireEditingStopped()Notifies all listeners that have registered interest for 'editing stopped' event.ObjectgetCellEditorValue()booleanisCellEditable(EventObject event)voidremoveCellEditorListener(CellEditorListener listener)booleanshouldSelectCell(EventObject anEvent)booleanstopCellEditing()
-
-
-
Method Detail
-
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValuein interfaceCellEditor
-
isCellEditable
public boolean isCellEditable(EventObject event)
- 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 listener)
- Specified by:
addCellEditorListenerin interfaceCellEditor
-
removeCellEditorListener
public void removeCellEditorListener(CellEditorListener listener)
- Specified by:
removeCellEditorListenerin interfaceCellEditor
-
fireEditingStopped
protected void fireEditingStopped()
Notifies all listeners that have registered interest for 'editing stopped' event.- See Also:
EventListenerList
-
fireEditingCanceled
protected void fireEditingCanceled()
Notifies all listeners that have registered interest for 'editing canceled' event.- See Also:
EventListenerList
-
-