edu.usc.cse.desi.viewers
Class LocCellModifier

java.lang.Object
  extended byedu.usc.cse.desi.viewers.LocCellModifier
All Implemented Interfaces:
org.eclipse.jface.viewers.ICellModifier

public class LocCellModifier
extends java.lang.Object
implements org.eclipse.jface.viewers.ICellModifier

This is the cell modifier for our table that displays locational constraints. What this means is that this class allows the locational constraints table to be modified. When this class receives a change, it will pass the new info on to the model.

Author:
NeLs Started on Sep 27, 2004

Field Summary
private  org.eclipse.jface.viewers.TableViewer myTableViewer
           
 
Constructor Summary
LocCellModifier(org.eclipse.jface.viewers.TableViewer table_viewer)
           
 
Method Summary
 boolean canModify(java.lang.Object arg0, java.lang.String arg1)
          This table can be modified at any cell because it's Comps/Hosts.
 java.lang.Object getValue(java.lang.Object arg0, java.lang.String arg1)
          I overrode this method:
 void modify(java.lang.Object arg0, java.lang.String arg1, java.lang.Object arg2)
          Modifies the selected table cell by setting its value to the new value as specified by the paremeter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myTableViewer

private org.eclipse.jface.viewers.TableViewer myTableViewer
Constructor Detail

LocCellModifier

public LocCellModifier(org.eclipse.jface.viewers.TableViewer table_viewer)
Method Detail

canModify

public boolean canModify(java.lang.Object arg0,
                         java.lang.String arg1)
This table can be modified at any cell because it's Comps/Hosts.

Specified by:
canModify in interface org.eclipse.jface.viewers.ICellModifier
See Also:
ICellModifier.canModify(java.lang.Object, java.lang.String)

getValue

public java.lang.Object getValue(java.lang.Object arg0,
                                 java.lang.String arg1)
I overrode this method:

Specified by:
getValue in interface org.eclipse.jface.viewers.ICellModifier
See Also:
ICellModifier.getValue(java.lang.Object, java.lang.String)

modify

public void modify(java.lang.Object arg0,
                   java.lang.String arg1,
                   java.lang.Object arg2)
Modifies the selected table cell by setting its value to the new value as specified by the paremeter. I overrode this method:

Specified by:
modify in interface org.eclipse.jface.viewers.ICellModifier
See Also:
ICellModifier.modify(java.lang.Object, java.lang.String, java.lang.Object)