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-api
To 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 EventListenerList
listenerList
-
Constructor Summary
Constructors Constructor Description AbstractCellEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCellEditorListener(CellEditorListener l)
protected void
fireEditingCanceled()
Notify all listeners that have registered interest for notification on this event type.protected void
fireEditingStopped()
Notify all listeners that have registered interest for notification on this event type.Object
getCellEditorValue()
boolean
isCellEditable(EventObject e)
void
removeCellEditorListener(CellEditorListener l)
boolean
shouldSelectCell(EventObject anEvent)
boolean
stopCellEditing()
-
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:
getCellEditorValue
in interfaceCellEditor
-
isCellEditable
public boolean isCellEditable(EventObject e)
- 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
-
addCellEditorListener
public void addCellEditorListener(CellEditorListener l)
- Specified by:
addCellEditorListener
in interfaceCellEditor
-
removeCellEditorListener
public void removeCellEditorListener(CellEditorListener l)
- Specified by:
removeCellEditorListener
in 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
-
-