Class BaseCellEditor
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.gui.BaseCellEditor
-
- All Implemented Interfaces:
javax.swing.CellEditor
public class BaseCellEditor extends java.lang.Object implements javax.swing.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(javax.swing.event.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.java.lang.Object
getCellEditorValue()
boolean
isCellEditable(java.util.EventObject event)
void
removeCellEditorListener(javax.swing.event.CellEditorListener listener)
boolean
shouldSelectCell(java.util.EventObject anEvent)
boolean
stopCellEditing()
-
-
-
Method Detail
-
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interfacejavax.swing.CellEditor
-
isCellEditable
public boolean isCellEditable(java.util.EventObject event)
- Specified by:
isCellEditable
in interfacejavax.swing.CellEditor
-
shouldSelectCell
public boolean shouldSelectCell(java.util.EventObject anEvent)
- Specified by:
shouldSelectCell
in interfacejavax.swing.CellEditor
-
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditing
in interfacejavax.swing.CellEditor
-
cancelCellEditing
public void cancelCellEditing()
- Specified by:
cancelCellEditing
in interfacejavax.swing.CellEditor
-
addCellEditorListener
public void addCellEditorListener(javax.swing.event.CellEditorListener listener)
- Specified by:
addCellEditorListener
in interfacejavax.swing.CellEditor
-
removeCellEditorListener
public void removeCellEditorListener(javax.swing.event.CellEditorListener listener)
- Specified by:
removeCellEditorListener
in interfacejavax.swing.CellEditor
-
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
-
-