Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.puppycrawl.tools.checkstyle.gui
Class AbstractCellEditor  view AbstractCellEditor download AbstractCellEditor.java

java.lang.Object
  extended bycom.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.


Field Summary
private  javax.swing.event.EventListenerList mListenerList
           
 
Constructor Summary
AbstractCellEditor()
           
 
Method Summary
 void addCellEditorListener(javax.swing.event.CellEditorListener l)
          Registers a listener to receive javax.swing.event.ChangeEvent notifications from the CellEditor.
 void cancelCellEditing()
          Signals to the CellEditor that it should cancel editing.
protected  void fireEditingCanceled()
           
protected  void fireEditingStopped()
           
 java.lang.Object getCellEditorValue()
          Returns the current value for the CellEditor.
 boolean isCellEditable(java.util.EventObject e)
          Returns true if the specified event makes the editor editable, and false otherwise.
 void removeCellEditorListener(javax.swing.event.CellEditorListener l)
          Deregisters a listener so that it no longer receives javax.swing.event.ChangeEvent notifications from the CellEditor.
 boolean shouldSelectCell(java.util.EventObject anEvent)
          shouldSelectCell
 boolean stopCellEditing()
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mListenerList

private javax.swing.event.EventListenerList mListenerList
Constructor Detail

AbstractCellEditor

public AbstractCellEditor()
Method Detail

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()