Class BaseCellEditor
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.gui.BaseCellEditor
-
- All Implemented Interfaces:
CellEditor
- Direct Known Subclasses:
TreeTable.TreeTableCellEditor
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
-
-
Field Summary
Fields Modifier and Type Field Description private EventListenerList
listenerList
A list of event listeners for the cell editor.
-
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 in 'editing canceled' event.protected void
fireEditingStopped()
Notifies all listeners that have registered interest in 'editing stopped' event.Object
getCellEditorValue()
boolean
isCellEditable(EventObject event)
void
removeCellEditorListener(CellEditorListener listener)
boolean
shouldSelectCell(EventObject anEvent)
boolean
stopCellEditing()
-
-
-
Field Detail
-
listenerList
private final EventListenerList listenerList
A list of event listeners for the cell editor.
-
-
Constructor Detail
-
BaseCellEditor
public BaseCellEditor()
-
-
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 in 'editing stopped' event.- See Also:
EventListenerList
-
fireEditingCanceled
protected void fireEditingCanceled()
Notifies all listeners that have registered interest in 'editing canceled' event.- See Also:
EventListenerList
-
-