|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModelProvider
A container for an PresentationModel object.
ModelProviderListeners can subscribe for change events on the
structure of the presentation object model.
| Method Summary | ||
|---|---|---|
void |
addModelProviderListener(Path path,
ModelProviderListener l)
Adds a ModelProviderListener to the listener list. |
|
|
getPresentationModel()
Returns the presentation model hold by this container. |
|
|
getPresentationModel(Path path)
Returns the presentation model found at the end of the specified path or null if nothing is found. |
|
java.lang.Class<? extends PresentationModel> |
getPresentationModelType()
Returns the type of the presentation model object. |
|
void |
removeModelProviderListener(Path path,
ModelProviderListener l)
Removes a ModelProviderListener from the listener list that was registered for a specific path. |
|
void |
setPresentationModel(PresentationModel pModel)
Sets the presentation model root object. |
|
void |
setPresentationModelType(java.lang.Class<? extends PresentationModel> newType)
Sets the type of presentation model object. |
|
| Method Detail |
|---|
java.lang.Class<? extends PresentationModel> getPresentationModelType()
void setPresentationModelType(java.lang.Class<? extends PresentationModel> newType)
newType - the type of the presentation model to set<T extends PresentationModel> T getPresentationModel()
T - the provided presentation model type
void setPresentationModel(PresentationModel pModel)
pModel - the root presentation model to set<T extends PresentationModel> T getPresentationModel(Path path)
null if nothing is found.
T - the provided presentation model typepath - the path which references the presentation model
null if nothing was found
void addModelProviderListener(Path path,
ModelProviderListener l)
path - the path which references the presentation modell - the listener to add
void removeModelProviderListener(Path path,
ModelProviderListener l)
path - the path which references the presentation modell - the listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||