java.lang.Object
com.puppycrawl.tools.checkstyle.gui.AbstractCellEditor
- All Implemented Interfaces:
- javax.swing.CellEditor
- Direct Known Subclasses:
- JTreeTable.TreeTableCellEditor
- public class AbstractCellEditor
- extends java.lang.Object
- implements javax.swing.CellEditor
Abstract implementation of a CellEditor.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mListenerList
private javax.swing.event.EventListenerList mListenerList
AbstractCellEditor
public AbstractCellEditor()
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Description copied from interface:
javax.swing.CellEditor
- Returns the current value for the
CellEditor.
- Specified by:
getCellEditorValue in interface javax.swing.CellEditor
isCellEditable
public boolean isCellEditable(java.util.EventObject e)
- Description copied from interface:
javax.swing.CellEditor
- Returns
true if the specified event makes the editor
editable, and false otherwise.
- Specified by:
isCellEditable in interface javax.swing.CellEditor
shouldSelectCell
public boolean shouldSelectCell(java.util.EventObject anEvent)
- Description copied from interface:
javax.swing.CellEditor
- shouldSelectCell
- Specified by:
shouldSelectCell in interface javax.swing.CellEditor
stopCellEditing
public boolean stopCellEditing()
- Description copied from interface:
javax.swing.CellEditor
- Signals to the
CellEditor that it should stop editing,
accepting the current cell value, and returns true if the
editor actually stops editing, and false otherwise.
- Specified by:
stopCellEditing in interface javax.swing.CellEditor
cancelCellEditing
public void cancelCellEditing()
- Description copied from interface:
javax.swing.CellEditor
- Signals to the
CellEditor that it should cancel editing.
- Specified by:
cancelCellEditing in interface javax.swing.CellEditor
addCellEditorListener
public void addCellEditorListener(javax.swing.event.CellEditorListener l)
- Description copied from interface:
javax.swing.CellEditor
- Registers a listener to receive javax.swing.event.ChangeEvent notifications from the
CellEditor.
- Specified by:
addCellEditorListener in interface javax.swing.CellEditor
removeCellEditorListener
public void removeCellEditorListener(javax.swing.event.CellEditorListener l)
- Description copied from interface:
javax.swing.CellEditor
- Deregisters a listener so that it no longer receives javax.swing.event.ChangeEvent
notifications from the
CellEditor.
- Specified by:
removeCellEditorListener in interface javax.swing.CellEditor
fireEditingStopped
protected void fireEditingStopped()
fireEditingCanceled
protected void fireEditingCanceled()