|
Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1.7.0) E10684-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.view.rich.activedata.ActiveModelContext
public final class ActiveModelContext
Called by ActiveDataModel implementations whenever a model attribute which supports active data is dereferenced. When the attribute is dereferenced and the ActiveDataModel's ActiveDataPolicy isn't STATIC
, the ActiveDataModel should:
ActiveModelContext.getActiveModelContext
addActiveModelInfo
with the current keyPath and model attributeIf retrieving the parameters to pass to addActiveModelInfo
might be expensive, isComponentInterestedInActiveData
may be called first to determine whether the call to addActiveModelInfo
will even be necessary.
Method Summary | |
---|---|
void |
addActiveModelInfo(ActiveDataModel activeModel, java.lang.Object[] keyPath, java.lang.String modelAttrName) Registers the model key path and attribute to associate with the current active component attribute, if any. |
static ActiveModelContext |
getActiveModelContext() Retrieves the ActiveModelContext instance for this Thread. |
javax.faces.component.UIComponent |
getCurrentActiveComponent() Returns the current component that active data and auto-PPR information is being collected for. |
boolean |
isComponentInterestedInActiveData() Returns true if the current component supports active data and thus a call to addActiveModelInfo is worthwhile. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ActiveModelContext getActiveModelContext()
public boolean isComponentInterestedInActiveData()
true
if the current component supports active data and thus a call to addActiveModelInfo
is worthwhile.true
if the current component supports active data.addActiveModelInfo(oracle.adf.view.rich.model.ActiveDataModel, java.lang.Object[], java.lang.String)
public void addActiveModelInfo(ActiveDataModel activeModel, java.lang.Object[] keyPath, java.lang.String modelAttrName)
Registers the model key path and attribute to associate with the current active component attribute, if any. If the current component doesn't support active data or the active data policy of the current ActiveDataModel is ActiveDataPolicy.STATIC
, no registration will occur.
addActiveModelInfo
with might be expensive, the ActiveDataModel implementation should first check that it's ActiveDataPolicy isn't ActiveDataPolicy.STATIC
and that isComponentInterestedInActiveData
is true
.activeModel
- The ActiveDataModel instance that will push the data.keyPath
- rowKey path to the model attribute name, if any. Active data on different paths will be ignored.modelAttrName
- Name of model attribute supporting active dataisComponentInterestedInActiveData()
public javax.faces.component.UIComponent getCurrentActiveComponent()
null
if no active data dependencies are currently being collected.ActiveComponentContext.pushActiveComponent(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
|
Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1.7.0) E10684-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |