|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.usc.cse.desi.viewers.CollocContentProvider
This is the content provider for the table that will display the collocational constraints. It will be a table that has pull-down combo boxes for each cell so that you can decide if the components must be collocated, can be or cannot be.
| Field Summary | |
(package private) java.lang.Object[] |
myCategoryNames
|
(package private) DESIViewModel |
myModel
|
(package private) org.eclipse.jface.viewers.TableViewer |
myTableViewer
|
| Constructor Summary | |
CollocContentProvider()
|
|
| Method Summary | |
void |
dispose()
When the table is killed, we must make sure to remove ourselves as a listener to everythin that we're listening to. |
java.lang.Object[] |
getElements(java.lang.Object arg0)
This method returns all the components so that the LabelProvider has access to them. |
java.lang.Object[] |
getMyCategoryNames()
|
void |
inputChanged(org.eclipse.jface.viewers.Viewer arg0,
java.lang.Object oldInput,
java.lang.Object newInput)
When the input changes, the tables must be resized, all listeners on the old model must be removed and all listeners must be added on the new model. |
void |
propertyChange(java.beans.PropertyChangeEvent arg0)
On a property change we must refresh the table if properties have changes, or if the number of components has changed, we must resize the table. |
private void |
sizeTable(DESIViewModel model,
org.eclipse.swt.widgets.Table table)
Every time something changes that should make the table resize, for instance if the number of comps changes, this method should be called. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
org.eclipse.jface.viewers.TableViewer myTableViewer
DESIViewModel myModel
java.lang.Object[] myCategoryNames
| Constructor Detail |
public CollocContentProvider()
| Method Detail |
public java.lang.Object[] getElements(java.lang.Object arg0)
getElements in interface org.eclipse.jface.viewers.IStructuredContentProviderIStructuredContentProvider.getElements(java.lang.Object)public void propertyChange(java.beans.PropertyChangeEvent arg0)
propertyChange in interface java.beans.PropertyChangeListenerPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)public void dispose()
dispose in interface org.eclipse.jface.viewers.IContentProviderIContentProvider.dispose()
public void inputChanged(org.eclipse.jface.viewers.Viewer arg0,
java.lang.Object oldInput,
java.lang.Object newInput)
inputChanged in interface org.eclipse.jface.viewers.IContentProviderIContentProvider.inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)public java.lang.Object[] getMyCategoryNames()
private void sizeTable(DESIViewModel model,
org.eclipse.swt.widgets.Table table)
model - table -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||