|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.usc.cse.desi.viewers.HostContentProvider
This content provider will provide the information for the table that will be created to display the host properties. It will display host names on the left and then the properties across the top.
| Field Summary | |
private Property[] |
myColumnNames
|
private DESIViewModel |
myTableModel
|
private org.eclipse.jface.viewers.TableViewer |
myTableViewer
|
| Constructor Summary | |
HostContentProvider()
|
|
| Method Summary | |
private void |
createTableColumns(org.eclipse.jface.viewers.TableViewer t_viewer)
This method will correctly create the collumn names based on the available properties of a host. |
void |
dispose()
I overrode this method: |
java.lang.Object[] |
getElements(java.lang.Object arg0)
I overrode this method: |
Property[] |
getMyColumnNames()
Returns a list of Properties in their column order. |
void |
inputChanged(org.eclipse.jface.viewers.Viewer arg0,
java.lang.Object oldObject,
java.lang.Object newObject)
Add listeners to the Hosts and to DESIViewModel so that when hosts are added, we can increase the amount of elements. |
void |
propertyChange(java.beans.PropertyChangeEvent arg0)
When the properties of the model change, this method will be called. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private DESIViewModel myTableModel
private Property[] myColumnNames
private org.eclipse.jface.viewers.TableViewer myTableViewer
| Constructor Detail |
public HostContentProvider()
| Method Detail |
public java.lang.Object[] getElements(java.lang.Object arg0)
getElements in interface org.eclipse.jface.viewers.IStructuredContentProviderIStructuredContentProvider.getElements(java.lang.Object)public Property[] getMyColumnNames()
getMyColumnNames in interface NodeContentProviderpublic 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 oldObject,
java.lang.Object newObject)
inputChanged in interface org.eclipse.jface.viewers.IContentProviderIContentProvider.inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)private void createTableColumns(org.eclipse.jface.viewers.TableViewer t_viewer)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||