|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.beanfabrics.AbstractBean
org.beanfabrics.ModelProvider
public class ModelProvider
The default implementation of a IModelProvider.
| Constructor Summary | |
|---|---|
ModelProvider()
Constructs an empty ModelProvider. |
|
ModelProvider(java.lang.Class<? extends PresentationModel> presentationModelType)
Constructs an empty ModelProvider for the given
presentationModel type. |
|
ModelProvider(PresentationModel presentationModel)
Constructs a ModelProvider with the given presentationModel. |
|
| 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 newPresentationModel)
Sets the presentation model root object. |
|
void |
setPresentationModelType(java.lang.Class<? extends PresentationModel> newType)
Sets the type of presentation model object. |
|
| Methods inherited from class org.beanfabrics.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, equals, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelProvider()
ModelProvider.
public ModelProvider(java.lang.Class<? extends PresentationModel> presentationModelType)
ModelProvider for the given
presentationModel type.
public ModelProvider(PresentationModel presentationModel)
ModelProvider with the given presentationModel.
| Method Detail |
|---|
public <T extends PresentationModel> T getPresentationModel()
IModelProvider
getPresentationModel in interface IModelProviderT - the provided presentation model type
public void setPresentationModel(PresentationModel newPresentationModel)
setPresentationModel in interface IModelProvidernewPresentationModel - the root presentation model to setpublic <T extends PresentationModel> T getPresentationModel(Path path)
null if nothing is found.
getPresentationModel in interface IModelProviderT - the provided presentation model typepath - the path which references the presentation model
null if nothing was foundpublic java.lang.Class<? extends PresentationModel> getPresentationModelType()
getPresentationModelType in interface IModelProviderpublic void setPresentationModelType(java.lang.Class<? extends PresentationModel> newType)
setPresentationModelType in interface IModelProvidernewType - the type of the presentation model to set
public void addModelProviderListener(Path path,
ModelProviderListener l)
addModelProviderListener in interface IModelProviderpath - the path which references the presentation modell - the listener to add
public void removeModelProviderListener(Path path,
ModelProviderListener l)
removeModelProviderListener in interface IModelProviderpath - 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 | |||||||||