|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.bindings.dbf.ControlBindingImpl
oracle.adfnmc.bindings.dbf.OperationBindingBase
public abstract class OperationBindingBase
Field Summary | |
---|---|
protected int |
actionID
|
protected Set |
enabledStateChangeListeners
|
protected boolean |
lastEnabledCheckValue
used to determine whether to notify 'enabled' property listeners - we only want to sent notifications when the state changes, otherwise we're doing a whole bunch of unneccesary EL re-evaluations in response to various events that affect the position or state or our iterator or DC. |
protected List |
params
|
protected java.lang.Object |
result
|
protected Set |
resultChangeListeners
|
Fields inherited from class oracle.adfnmc.bindings.dbf.ControlBindingImpl |
---|
CLASS_INSTANCE, currentError, dataControl, errors, iterBinding, metadataDef, name, parentBindingContainer |
Fields inherited from interface oracle.adfnmc.el.ELResolver |
---|
RESOLVABLE_AT_DESIGN_TIME, TYPE |
Constructor Summary | |
---|---|
OperationBindingBase(ActionDefinition mdDef,
DataControl dataControl,
IteratorExecutableBindingImpl iterBinding)
|
|
OperationBindingBase(XmlAnyDefinition mdDef,
java.lang.String name,
DataControl dataControl,
IteratorExecutableBindingImpl iterBinding,
int actionId)
|
Method Summary | |
---|---|
void |
addEnabledStateChangeListener(ValueChangeListener listener)
|
void |
addParam(java.lang.Object param)
|
void |
addResultChangeListener(ValueChangeListener listener)
|
void |
addValueChangeListener(java.lang.String property,
ValueChangeListener listener)
|
void |
containerInitialized(BindingContainer container)
Overriding implementations should always call this base implementation before returning to set the parent container |
java.lang.Object |
execute()
Executes this OperationBinding, for example, as a result of a UI button being pressed. |
protected abstract java.lang.Object |
executeImpl()
|
OperationInfo |
getOperationInfo()
Returns a description of the operation to invoke. |
protected Parameter |
getParam(int index,
java.lang.String actionName)
|
Map |
getParamsMap()
Retuns a map of name-value pairs of arguments and argument values to be passed to the bound operation. |
protected ELResolver |
getResolver()
|
java.lang.Object |
getResult()
Returns the result of invoking the operation bound by this binding (if the method has been already invoked. |
java.lang.Object |
invokeMethod(java.lang.String methodName,
java.lang.Object[] params)
|
boolean |
isOperationEnabled()
Whether the action binding is enabled or disabled. |
protected void |
notifyEnabledStateChangeListeners(boolean newValue)
|
protected void |
notifyResultChangeListeners(java.lang.Object newValue)
|
void |
positionChanged(int absoluteIndex)
Fires when the iterator position is changed to point to a different row. |
void |
rangeRefreshed()
|
void |
refresh()
|
protected void |
refreshEnabledState(boolean forceNotify)
|
void |
registerForIteratorEvents(IteratorExecutableBindingImpl evtSource)
|
void |
removeEnabledStateChangeListener(ValueChangeListener listener)
|
void |
removeResultChangeListener(ValueChangeListener listener)
|
void |
removeValueChangeListener(java.lang.String property,
ValueChangeListener listener)
|
void |
rowInserted(java.lang.Object newRow)
|
void |
rowRemoved(java.lang.Object removedRow)
|
void |
setResult(java.lang.Object newValue)
|
void |
transactionStateChanged(boolean state)
Invoked when the transaction is either marked dirty or clean. |
void |
unregisterForIteratorEvents(IteratorExecutableBindingImpl evtSource)
|
Methods inherited from class oracle.adfnmc.bindings.dbf.ControlBindingImpl |
---|
getBindings, getDataControl, getError, getErrors, getIterator, getMetadataDefinition, getName, getPath, getType, getValue, isReadOnly, prepareDeferredIterator, release, reportException, resolvePath, setListener, setValue, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.adfnmc.bindings.OperationBinding |
---|
getErrors |
Methods inherited from interface oracle.adfnmc.bindings.ControlBinding |
---|
getBindings, getMetadataDefinition, getName, getPath, release, resolvePath, setListener |
Methods inherited from interface oracle.adf.model.binding.DCTransactionStateListener |
---|
release |
Field Detail |
---|
protected int actionID
protected Set enabledStateChangeListeners
protected Set resultChangeListeners
protected boolean lastEnabledCheckValue
protected List params
protected java.lang.Object result
Constructor Detail |
---|
public OperationBindingBase(XmlAnyDefinition mdDef, java.lang.String name, DataControl dataControl, IteratorExecutableBindingImpl iterBinding, int actionId)
public OperationBindingBase(ActionDefinition mdDef, DataControl dataControl, IteratorExecutableBindingImpl iterBinding)
Method Detail |
---|
public void containerInitialized(BindingContainer container)
ControlBindingImpl
containerInitialized
in interface ControlBinding
containerInitialized
in class ControlBindingImpl
protected ELResolver getResolver()
getResolver
in class ControlBindingImpl
public void registerForIteratorEvents(IteratorExecutableBindingImpl evtSource)
registerForIteratorEvents
in class ControlBindingImpl
public void unregisterForIteratorEvents(IteratorExecutableBindingImpl evtSource)
unregisterForIteratorEvents
in class ControlBindingImpl
public void addValueChangeListener(java.lang.String property, ValueChangeListener listener)
addValueChangeListener
in interface PropertyValueChangeSource
property
- Interned property stringpublic void removeValueChangeListener(java.lang.String property, ValueChangeListener listener)
removeValueChangeListener
in interface PropertyValueChangeSource
property
- Interned property stringpublic void addEnabledStateChangeListener(ValueChangeListener listener)
public void removeEnabledStateChangeListener(ValueChangeListener listener)
public void addResultChangeListener(ValueChangeListener listener)
public void removeResultChangeListener(ValueChangeListener listener)
protected void notifyEnabledStateChangeListeners(boolean newValue)
protected void notifyResultChangeListeners(java.lang.Object newValue)
protected void refreshEnabledState(boolean forceNotify)
public void refresh()
refresh
in class ControlBindingImpl
public void positionChanged(int absoluteIndex)
IteratorPositionListener
positionChanged
in interface IteratorPositionListener
public void rowInserted(java.lang.Object newRow)
rowInserted
in interface IteratorCollectionListener
public void rowRemoved(java.lang.Object removedRow)
rowRemoved
in interface IteratorCollectionListener
public void rangeRefreshed()
rangeRefreshed
in interface IteratorCollectionListener
public void transactionStateChanged(boolean state)
DCTransactionStateListener
transactionStateChanged
in interface DCTransactionStateListener
state
- Indicates if the transaction was marked clean (true) or dirty (false).
Controls like NavigationBar then disables/enables the Save button to indicate
there are changes that need to be saved/committed to the database.public boolean isOperationEnabled()
OperationBinding
isOperationEnabled
in interface OperationBinding
public void addParam(java.lang.Object param)
protected Parameter getParam(int index, java.lang.String actionName)
public java.lang.Object invokeMethod(java.lang.String methodName, java.lang.Object[] params)
invokeMethod
in interface MethodDispatch
protected abstract java.lang.Object executeImpl()
public java.lang.Object execute()
OperationBinding
execute
in interface OperationBinding
public OperationInfo getOperationInfo()
OperationBinding
getOperationInfo
in interface OperationBinding
public Map getParamsMap()
OperationBinding
getParamsMap
in interface OperationBinding
public java.lang.Object getResult()
OperationBinding
getResult
in interface OperationBinding
public void setResult(java.lang.Object newValue)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |