Package jmri.util.table
Class BasicCellEditor
- java.lang.Object
-
- jmri.util.table.BasicCellEditor
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
,javax.swing.CellEditor
- Direct Known Subclasses:
ButtonEditor
,ToggleButtonEditor
public class BasicCellEditor extends java.lang.Object implements javax.swing.CellEditor, java.beans.PropertyChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static javax.swing.event.ChangeEvent
changeEvent
protected java.util.EventObject
editingEvent
protected javax.swing.JComponent
editor
protected javax.swing.event.EventListenerList
listeners
-
Constructor Summary
Constructors Constructor Description BasicCellEditor()
BasicCellEditor(javax.swing.JComponent editor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCellEditorListener(javax.swing.event.CellEditorListener l)
void
cancelCellEditing()
void
editingStarted(java.util.EventObject event)
protected void
fireEditingCanceled()
protected void
fireEditingStopped()
java.lang.Object
getCellEditorValue()
javax.swing.JComponent
getComponent()
java.util.EventObject
getEditingEvent()
boolean
isCellEditable(java.util.EventObject evt)
void
propertyChange(java.beans.PropertyChangeEvent evt)
void
removeCellEditorListener(javax.swing.event.CellEditorListener l)
void
setComponent(javax.swing.JComponent comp)
boolean
shouldSelectCell(java.util.EventObject evt)
boolean
stopCellEditing()
-
-
-
Field Detail
-
changeEvent
static javax.swing.event.ChangeEvent changeEvent
-
editor
protected javax.swing.JComponent editor
-
listeners
protected javax.swing.event.EventListenerList listeners
-
editingEvent
protected java.util.EventObject editingEvent
-
-
Constructor Detail
-
BasicCellEditor
public BasicCellEditor()
-
BasicCellEditor
public BasicCellEditor(javax.swing.JComponent editor)
-
-
Method Detail
-
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interfacejavax.swing.CellEditor
-
isCellEditable
public boolean isCellEditable(java.util.EventObject evt)
- Specified by:
isCellEditable
in interfacejavax.swing.CellEditor
-
shouldSelectCell
public boolean shouldSelectCell(java.util.EventObject evt)
- Specified by:
shouldSelectCell
in interfacejavax.swing.CellEditor
-
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditing
in interfacejavax.swing.CellEditor
-
cancelCellEditing
public void cancelCellEditing()
- Specified by:
cancelCellEditing
in interfacejavax.swing.CellEditor
-
addCellEditorListener
public void addCellEditorListener(javax.swing.event.CellEditorListener l)
- Specified by:
addCellEditorListener
in interfacejavax.swing.CellEditor
-
removeCellEditorListener
public void removeCellEditorListener(javax.swing.event.CellEditorListener l)
- Specified by:
removeCellEditorListener
in interfacejavax.swing.CellEditor
-
getComponent
public javax.swing.JComponent getComponent()
-
setComponent
public void setComponent(javax.swing.JComponent comp)
-
getEditingEvent
public java.util.EventObject getEditingEvent()
-
editingStarted
public void editingStarted(java.util.EventObject event)
-
fireEditingStopped
protected void fireEditingStopped()
-
fireEditingCanceled
protected void fireEditingCanceled()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
-