com.togethersoft.openapi.ide.inspector.util.table
Class AbstractCellEditor

Direct Known Subclasses:
PropertyValueEditor

public abstract class AbstractCellEditor
implements CellEditor, Serializable

Represents abstract cell editor. This editor can serialize it's contents.

Author:
TogetherSoft

Field Summary
 protected ChangeEventchangeEvent
           
 protected EventListenerListlistenerList
           

Constructor Summary
AbstractCellEditor()
           Initialize this editor.

Method Summary
 voidaddCellEditorListener(CellEditorListener celleditorlistener)
           Adds cell editor listener.
 voidcancelCellEditing()
           Cancels cell editing.
 protected voidfireEditingCanceled()
           Fires EditingCanceled event.
 protected voidfireEditingStopped()
           Fires EditingStopped event.
 abstract ObjectgetCellEditorValue()
           Returns value of this editor.
 booleanisCellEditable(EventObject eventobject)
           Checks whether it is possible to editor this cell.
 voidremoveCellEditorListener(CellEditorListener celleditorlistener)
           Removes cell editor listener.
 booleanshouldSelectCell(EventObject eventobject)
           
 booleanstopCellEditing()
           Stops cell editing.

Field Detail

changeEvent

protected ChangeEvent changeEvent

listenerList

protected EventListenerList listenerList
Constructor Detail

AbstractCellEditor

public AbstractCellEditor()
Initialize this editor.
Method Detail

addCellEditorListener

public void addCellEditorListener(CellEditorListener celleditorlistener)
Adds cell editor listener.
Parameters:
celleditorlistener - CellEditorListener to be added

cancelCellEditing

public void cancelCellEditing()
Cancels cell editing. Fires EditingCancelled event.

fireEditingCanceled

protected void fireEditingCanceled()
Fires EditingCanceled event.

fireEditingStopped

protected void fireEditingStopped()
Fires EditingStopped event.

getCellEditorValue

public abstract Object getCellEditorValue()
Returns value of this editor. Has to be overrided.

isCellEditable

public boolean isCellEditable(EventObject eventobject)
Checks whether it is possible to editor this cell.
Returns: Always true

removeCellEditorListener

public void removeCellEditorListener(CellEditorListener celleditorlistener)
Removes cell editor listener.
Parameters:
celleditorlistener - CellEditorListener to be removed

shouldSelectCell

public boolean shouldSelectCell(EventObject eventobject)

stopCellEditing

public boolean stopCellEditing()
Stops cell editing. Fires EditingStopped event.
Returns: Always true

Association Links

to Class javax.swing.event.EventListenerList

to Class javax.swing.event.ChangeEvent