de.cau.cs.kieler.sim.kiem.ui.views
Class KiemComponentEditing

java.lang.Object
  extended by org.eclipse.jface.viewers.EditingSupport
      extended by de.cau.cs.kieler.sim.kiem.ui.views.KiemComponentEditing

public class KiemComponentEditing
extends EditingSupport

The Class KiemComponentEditing. It handles the editing support for DataComponentWrappers in the DataComponentWrappers table of the KiemView. It basically only allows the modification of the enabled tag of a DataComponentWrapper.

Rating proposed yellow
(2009-01-15)

Constructor Summary
KiemComponentEditing(KiemView parentParam, ColumnViewer viewer, int columnIndexParam)
          Instantiates a new KiemComponentEditing.
 
Method Summary
protected  boolean canEdit(Object element)
           
protected  CellEditor getCellEditor(Object element)
           
protected  Object getValue(Object element)
           
protected  void setValue(Object element, Object value)
           
 
Methods inherited from class org.eclipse.jface.viewers.EditingSupport
getViewer, initializeCellEditorValue, saveCellEditorValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KiemComponentEditing

public KiemComponentEditing(KiemView parentParam,
                            ColumnViewer viewer,
                            int columnIndexParam)
Instantiates a new KiemComponentEditing. This is only used in the third column where the check-box for enabling or disabling a DataComponent exists. For other columns this method generates an error.

Parameters:
parentParam - the parent
viewer - the viewer
columnIndexParam - the column index
Method Detail

canEdit

protected boolean canEdit(Object element)
Specified by:
canEdit in class EditingSupport

getCellEditor

protected CellEditor getCellEditor(Object element)
Specified by:
getCellEditor in class EditingSupport

getValue

protected Object getValue(Object element)
Specified by:
getValue in class EditingSupport

setValue

protected void setValue(Object element,
                        Object value)
Specified by:
setValue in class EditingSupport