Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.bindings
Interface ControlBinding

All Known Subinterfaces:
AttributeBinding, AttributesBinding, OperationBinding, RangeBinding
All Known Implementing Classes:
AdapterOperationBinding, AttributeBindingImpl, ControlBindingImpl, CustomOperationBinding, DynamicListBindingImpl, IndexedAttributeBindingImpl, IteratorExecutableBindingImpl, MethodIteratorBindingImpl, OperationBindingBase, RangeBindingImpl, StaticListBindingImpl

public interface ControlBinding

Base interface for all bindings that allow binding a View component to the data accessed via a datacontrol.


Method Summary
 void containerInitialized(BindingContainer container)
          Called when the initialization of the container is complete.
 Map getBindings()
          added for ADFNMC
 XmlAnyDefinition getMetadataDefinition()
          added for ADFNMC
 java.lang.String getName()
          Return name that identifies this binding uniquely in it's container.
 java.lang.String getPath()
          Get a unique path to this instance of the control binding inside it's 'outermost' container that is referred in the BindingContext.
 void release()
          Releases this ControlBinding.
 boolean resolvePath(Map postMap)
          Given a map of name/value pairs, use this binding's path to find an entry in this map.
 void setListener(UpdateListener listener)
          Adds a listener that should be notified when the associated attribute value changes.
 

Method Detail

release

void release()
Releases this ControlBinding. This method is called when the view component has finished using this ControlBinding.


setListener

void setListener(UpdateListener listener)
Adds a listener that should be notified when the associated attribute value changes.

Parameters:
listener - The listener object that needs be notified.

getPath

java.lang.String getPath()
Get a unique path to this instance of the control binding inside it's 'outermost' container that is referred in the BindingContext. This string allows the control binding to extract it's data or action out of the postMap provided in resolvePath(). Both these apis are useful in web style clients and may not have much role to play in interactive clients like Swing.


resolvePath

boolean resolvePath(Map postMap)
Given a map of name/value pairs, use this binding's path to find an entry in this map. If found, return true so that controller logic may use that information to update binding's data if changed or otherwise.


getName

java.lang.String getName()
Return name that identifies this binding uniquely in it's container.


containerInitialized

void containerInitialized(BindingContainer container)
Called when the initialization of the container is complete. Any initialization operations on a binding that require the container to be populated with all of it's bindings and iterators should be performed here.


getBindings

Map getBindings()
added for ADFNMC

Returns:
Collection of bindings that are contained within or associated with this binding.

getMetadataDefinition

XmlAnyDefinition getMetadataDefinition()
added for ADFNMC

Returns:
The metadata definition object for this binding object

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.