|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.ibm.jdg2e.view.basic.LocationsContentProvider
Provides support for accessing the IRoadTrip model. An array of the
available ILocation objects are returned when requested. Model changes
are also detected and passed on to the viewer for processing.
| Constructor Summary | |
LocationsContentProvider()
|
|
| Method Summary | |
void |
dispose()
(non-Javadoc) |
java.lang.Object[] |
getElements(java.lang.Object inputElement)
Returns an Object array, the array contains
ILocation instances as obtained from the
IRoadTrip model. |
void |
inputChanged(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object oldInput,
java.lang.Object newInput)
Following the pattern of removing listener from old input and adding to new input. |
void |
propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Listener for changes to the IRoadTrip model. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LocationsContentProvider()
| Method Detail |
public void dispose()
dispose in interface org.eclipse.jface.viewers.IContentProviderIContentProvider.dispose()public java.lang.Object[] getElements(java.lang.Object inputElement)
Object array, the array contains
ILocation instances as obtained from the
IRoadTrip model.
getElements in interface org.eclipse.jface.viewers.IStructuredContentProviderIStructuredContentProvider.getElements(java.lang.Object)
public void inputChanged(org.eclipse.jface.viewers.Viewer viewer,
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 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
IRoadTrip model. Changes can be either to the number of
ILocation objects that exist or to the properties of a given ILocation
object instance.
Changes in the number of model objects trigger a viewer.refresh request. When a
property change has occured to an individual model instance a viewer.update request
is issued.
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListenerIPropertyChangeListener.propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||