|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 2 (11.1.2.3.0) E17488-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.view.rich.model.ActiveScalarModelDecorator
public abstract class ActiveScalarModelDecorator
Users of this class are able to enable active data with the existing data models inside their JSF pages. This class will wrap the existing data model in the page and add additional active data functionality in the decorator itself. Users then replace the binding in the page to point to the decorator Example usage: original page:
<af:outputText value="#{the.original.bean.field}" id="ot4"/>
replace with :
<af:activeOutputText value="#{viewScope.ScalarModelDecorator.value}" />
where ScalarModelDecorator is a managed bean subclassing the ActiveScalarModelDecorator subclasses will look something like this: public class MyDecorator extends ActiveScalarModelDecorator
{
public ActiveDataModel getActiveDataModel()
{
return _activeDataModel;
}
}
getActiveDataModel()
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.adf.view.rich.model.ActiveDataModel |
---|
ActiveDataModel.ActiveDataPolicy |
Constructor Summary | |
---|---|
ActiveScalarModelDecorator() |
Method Summary | |
---|---|
abstract ActiveDataModel |
getActiveDataModel() returns the ActiveDataModel implementation |
ActiveDataModel.ActiveDataPolicy |
getActiveDataPolicy() always return ActiveDataPolicy.ACTIVE |
int |
getCurrentChangeCount() Returns the current monotonically increasing change count for this ActiveDataModel This change count is used by the UI components to maintain read consistency between model data fetches and the active data updates. |
protected abstract java.lang.Object |
getDecoratedValue() this returns the originalModel's original field value |
java.lang.Object |
getValue() get the value for this scalar model. |
protected abstract void |
setValue(java.lang.Object value) this sets the original field value |
void |
startActiveData(java.util.Collection<java.lang.Object> rowKeys, int startChangeCount, ActiveDataListener listener) Called by the DataUpdateManager to notify the ActiveDataModel to start delivering change notifications for the collections of the containers identified by the rowKeys. |
void |
stopActiveData(java.util.Collection<java.lang.Object> rowKeys, ActiveDataListener listener) Called by the DataUpdateManager to notify the ActiveDataModel to stop delivering change notifications for the collections of the container identified by the given rowKeys The rowKeys are not used for scalar active data model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActiveScalarModelDecorator()
Method Detail |
---|
public ActiveDataModel.ActiveDataPolicy getActiveDataPolicy()
ActiveDataPolicy.ACTIVE
getActiveDataPolicy
in interface ActiveDataModel
ActiveDataModel.ActiveDataPolicy
public final java.lang.Object getValue()
protected abstract java.lang.Object getDecoratedValue()
protected abstract void setValue(java.lang.Object value)
value
- the value to be setpublic void startActiveData(java.util.Collection<java.lang.Object> rowKeys, int startChangeCount, ActiveDataListener listener)
startActiveData
in interface ActiveDataModel
rowKeys
- not usedstartChangeCount
- Change count to start sending active data from.listener
- ActiveDataListener for the ActiceDataModel to use when notifying the DataUpdateManager of changesjava.lang.IllegalStateException
- if ActiveDataPolicy is STATICjava.lang.IllegalArgumentException
- if listener
is null
or the startChangeCount
is greater than the current change count.stopActiveData(java.util.Collection<java.lang.Object>, oracle.adf.view.rich.event.ActiveDataListener)
public void stopActiveData(java.util.Collection<java.lang.Object> rowKeys, ActiveDataListener listener)
stopActiveData
in interface ActiveDataModel
rowKeys
- not usedlistener
- the ActiveDataListener to be removed ActiveDataListener receives active events. Pass null for root collection.java.lang.IllegalStateException
- If called on an ActiveDataModel that was never started by calling startActiveData
startActiveData(java.util.Collection<java.lang.Object>, int, oracle.adf.view.rich.event.ActiveDataListener)
public int getCurrentChangeCount()
getCurrentChangeCount
in interface ActiveDataModel
public abstract ActiveDataModel getActiveDataModel()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 2 (11.1.2.3.0) E17488-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |