Defines the model operations that are available as part of the public API.
| Field Summary | |
|---|---|
static java.lang.String |
LISTADD
Property Change Event key |
static java.lang.String |
LISTREMOVE
Property Change Event key |
| Method Summary | |
|---|---|
ILocation |
addLocation(java.lang.String location,
java.lang.String activity,
int political)
Create a ILocation in the RoadTrip. |
void |
addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
Add a property change listener. |
java.lang.Object[] |
getLocations()
Returns the model content in the form of an array. |
void |
removeLocation(ILocation modelElement)
The passed ILocation reference is removed from the model. |
void |
removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
Removes a property change listener. |
void |
resetList()
Resets list to the default location content. |
| Field Detail |
public static final java.lang.String LISTADD
public static final java.lang.String LISTREMOVE
| Method Detail |
public ILocation addLocation(java.lang.String location,
java.lang.String activity,
int political)
ILocation in the RoadTrip.
If nulls are passed default values are used.
location - name for new object instanceactivity - description for activitypolitical - identifier for political unit
public void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
IRoadTrip content
(adds/removes). It does not report attribute changes to ModelElements.
listener - public java.lang.Object[] getLocations()
ILocation array.public void removeLocation(ILocation modelElement)
ILocation reference is removed from the model.
modelElement - public void removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
listener - public void resetList()