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 void
addCellEditorListener(CellEditorListener listener)
void
cancelCellEditing()
protected void
fireEditingCanceled()
Notifies all listeners that have registered interest for 'editing canceled' event.protected void
fireEditingStopped()
Notifies all listeners that have registered interest for 'editing stopped' event.Object
getCellEditorValue()
boolean
isCellEditable(EventObject event)
void
removeCellEditorListener(CellEditorListener listener)
boolean
shouldSelectCell(EventObject anEvent)
boolean
stopCellEditing()
-
-
-
Method Detail
-
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
isCellEditable
public boolean isCellEditable(EventObject event)
- 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 listener)
- Specified by:
addCellEditorListener
in interfaceCellEditor
-
removeCellEditorListener
public void removeCellEditorListener(CellEditorListener listener)
- Specified by:
removeCellEditorListener
in 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
-
-