Methods Summary |
---|
public void | addCellEditorListener(javax.swing.event.CellEditorListener l)Adds a CellEditorListener to the listener list.
listenerList.add(CellEditorListener.class, l);
|
public void | cancelCellEditing()Calls fireEditingCanceled .
fireEditingCanceled();
|
protected void | fireEditingCanceled()Notifies all listeners that have registered interest for
notification on this event type. The event instance
is created lazily.
// Guaranteed to return a non-null array
Object[] listeners = listenerList.getListenerList();
// Process the listeners last to first, notifying
// those that are interested in this event
for (int i = listeners.length-2; i>=0; i-=2) {
if (listeners[i]==CellEditorListener.class) {
// Lazily create the event:
if (changeEvent == null)
changeEvent = new ChangeEvent(this);
((CellEditorListener)listeners[i+1]).editingCanceled(changeEvent);
}
}
|
protected void | fireEditingStopped()Notifies all listeners that have registered interest for
notification on this event type. The event instance
is created lazily.
// Guaranteed to return a non-null array
Object[] listeners = listenerList.getListenerList();
// Process the listeners last to first, notifying
// those that are interested in this event
for (int i = listeners.length-2; i>=0; i-=2) {
if (listeners[i]==CellEditorListener.class) {
// Lazily create the event:
if (changeEvent == null)
changeEvent = new ChangeEvent(this);
((CellEditorListener)listeners[i+1]).editingStopped(changeEvent);
}
}
|
public javax.swing.event.CellEditorListener[] | getCellEditorListeners()Returns an array of all the CellEditorListener s added
to this AbstractCellEditor with addCellEditorListener().
return (CellEditorListener[])listenerList.getListeners(
CellEditorListener.class);
|
public boolean | isCellEditable(java.util.EventObject e)Returns true.
// Force this to be implemented.
// public Object getCellEditorValue()
return true;
|
public void | removeCellEditorListener(javax.swing.event.CellEditorListener l)Removes a CellEditorListener from the listener list.
listenerList.remove(CellEditorListener.class, l);
|
public boolean | shouldSelectCell(java.util.EventObject anEvent)Returns true.
return true;
|
public boolean | stopCellEditing()Calls fireEditingStopped and returns true.
fireEditingStopped();
return true;
|