|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.context.DefaultContext
org.beanfabrics.context.BnParentContext
public class BnParentContext
The BnParentContext
is a context that dynamically adds itself as a
parent context to the target's context.
Use this class if you want to dynamically provide access to a specific service only to PM objects that are members of this context.
Constructor Summary | |
---|---|
BnParentContext()
|
Method Summary | |
---|---|
IModelProvider |
getModelProvider()
Returns the provider. |
Path |
getPath()
Returns the path. |
PresentationModel |
getPresentationModel()
Returns the PresentationModel of this view. |
void |
setModelProvider(IModelProvider provider)
Sets the provider. |
void |
setPath(Path path)
Sets the path. |
void |
setPresentationModel(PresentationModel aPresentationModel)
Sets the PresentationModel of this view. |
Methods inherited from class org.beanfabrics.context.DefaultContext |
---|
addContextListener, addParent, addService, findService, fireParentAdded, fireParentRemoved, fireServiceAdded, fireServiceRemoved, getParents, getService, getServiceEntries, removeContextListener, removeParent, removeService, removeServiceEntry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BnParentContext()
Method Detail |
---|
public PresentationModel getPresentationModel()
PresentationModel
of this view.
getPresentationModel
in interface View<PresentationModel>
PresentationModel
public void setPresentationModel(PresentationModel aPresentationModel)
PresentationModel
of this view.
setPresentationModel
in interface View<PresentationModel>
aPresentationModel
- the PresentationModel
public IModelProvider getModelProvider()
getModelProvider
in interface ModelSubscriber
ModelProvider
public void setModelProvider(IModelProvider provider)
setModelProvider
in interface ModelSubscriber
provider
- the providerpublic Path getPath()
getPath
in interface ModelSubscriber
public void setPath(Path path)
Path
is used to locate the model inside the
provider.
setPath
in interface ModelSubscriber
path
- the path relative to the provider's root model
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |