|
|||||||||
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.
ModelProviderListener
s 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 PM instance hold by this container. |
|
|
getPresentationModel(Path path)
Returns the PM 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 PM, that is declared to be held at the root node of this provider. |
|
void |
removeModelProviderListener(Path path,
ModelProviderListener l)
Removes a ModelProviderListener from the listener list that was
registered for a specific path. |
|
void |
setPresentationModel(PresentationModel pm)
Sets the given PM instance as root node into this provider. |
|
void |
setPresentationModelType(java.lang.Class<? extends PresentationModel> newType)
Declares the type of the PM, that should be held at the root node of this provider. |
Method Detail |
---|
java.lang.Class<? extends PresentationModel> getPresentationModelType()
null
.
void setPresentationModelType(java.lang.Class<? extends PresentationModel> newType)
newType
- the type of the PM<T extends PresentationModel> T getPresentationModel()
T
- the provided PM type
void setPresentationModel(PresentationModel pm)
pm
- the PM<T extends PresentationModel> T getPresentationModel(Path path)
null
if nothing is found.
T
- the provided PM typepath
- the path to the target PM relative to the root node held by this provider
null
if nothing was foundvoid addModelProviderListener(Path path, ModelProviderListener l)
ModelProviderListener
to the listener list. The listener is
registered for all structural changes along the given path and will be
informed whenever the model reference at the end of the path changes.
path
- the path which references the presentation modell
- the listener to addvoid removeModelProviderListener(Path path, ModelProviderListener l)
ModelProviderListener
from the listener list that was
registered for a specific path.
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 |