Package org.cytoscape.util.swing
Class AbstractCellEditor
- java.lang.Object
-
- org.cytoscape.util.swing.AbstractCellEditor
-
- All Implemented Interfaces:
CellEditor
- Direct Known Subclasses:
JTreeTable.TreeTableCellEditor
public abstract class AbstractCellEditor extends Object implements CellEditor
An abstract, convenience implementation of a Cell Editor that really only adds event listener support. All other methods should be probably be overridden.Module:
swing-util-apiTo use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>swing-util-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (Abstract Class): This class is abstract and meant to be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
-
-
Field Summary
Fields Modifier and Type Field Description protected EventListenerListlistenerList
-
Constructor Summary
Constructors Constructor Description AbstractCellEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCellEditorListener(CellEditorListener l)protected voidfireEditingCanceled()Notify all listeners that have registered interest for notification on this event type.protected voidfireEditingStopped()Notify all listeners that have registered interest for notification on this event type.ObjectgetCellEditorValue()booleanisCellEditable(EventObject e)voidremoveCellEditorListener(CellEditorListener l)booleanshouldSelectCell(EventObject anEvent)booleanstopCellEditing()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.CellEditor
cancelCellEditing
-
-
-
-
Field Detail
-
listenerList
protected EventListenerList listenerList
-
-
Method Detail
-
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValuein interfaceCellEditor
-
isCellEditable
public boolean isCellEditable(EventObject e)
- Specified by:
isCellEditablein interfaceCellEditor
-
shouldSelectCell
public boolean shouldSelectCell(EventObject anEvent)
- Specified by:
shouldSelectCellin interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditingin interfaceCellEditor
-
addCellEditorListener
public void addCellEditorListener(CellEditorListener l)
- Specified by:
addCellEditorListenerin interfaceCellEditor
-
removeCellEditorListener
public void removeCellEditorListener(CellEditorListener l)
- Specified by:
removeCellEditorListenerin interfaceCellEditor
-
fireEditingStopped
protected void fireEditingStopped()
Notify all listeners that have registered interest for notification on this event type.- See Also:
EventListenerList
-
fireEditingCanceled
protected void fireEditingCanceled()
Notify all listeners that have registered interest for notification on this event type.- See Also:
EventListenerList
-
-