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

E17503-02

oracle.adfnmc.bindings
Interface AttributesBinding

All Superinterfaces:
ControlBinding

public interface AttributesBinding
extends ControlBinding

A ControlBinding that binds multiple attribute values exposed via a datacontrol to a view component, and manages access to the actual values.
This interface is implemented by the data binding framework, and is made available to the View components through the binding container.


Method Summary
 List getErrors()
          Returns a list of errors that were raised during the last setInputValue call.
 java.lang.Object getInputValue(int index)
          Returns the value that should be rendered on a view for the attribute associated with this binding at the specified position.
 java.lang.String[] getLabelSet()
          Returns the display label or prompt for the all the attributes represented by this binding.
 boolean isUpdateable(int index)
          Finds out whether the attribute is updateable or is for display only.
 void setInputValue(int index, java.lang.Object inputVal)
          Updates the attribute value associated with this binding at the given position.
 void setValueListener(AttributesBindingListener listener)
          -DRM added
 
Methods inherited from interface oracle.adfnmc.bindings.ControlBinding
containerInitialized, getBindings, getMetadataDefinition, getName, getPath, release, resolvePath, setListener
 

Method Detail

getInputValue

java.lang.Object getInputValue(int index)
Returns the value that should be rendered on a view for the attribute associated with this binding at the specified position.

Parameters:
index - index of the attribute to retrieve.
Returns:
The attribute value at the specified position, or null if the given index is out of range or no attribute can be found at the specified position.

setInputValue

void setInputValue(int index,
                   java.lang.Object inputVal)
Updates the attribute value associated with this binding at the given position. If there are exceptions while updating this attribute, these exceptions should be accessible via getErrors().

Parameters:
index - index of the attribute to be updated.
inputVal - The new attribute value.

isUpdateable

boolean isUpdateable(int index)
Finds out whether the attribute is updateable or is for display only.

Returns:
True if the attribute is updateable, false otherwise.

getLabelSet

java.lang.String[] getLabelSet()
Returns the display label or prompt for the all the attributes represented by this binding.

Returns:
An array of the display label or prompt strings, one per attribute represented by this AttributesBinding.

getErrors

List getErrors()
Returns a list of errors that were raised during the last setInputValue call.

Returns:
A list of Throwable that were raised during setInputValue(). It returns null if there is no error occurred.
See Also:
setInputValue(int, Object)

setValueListener

void setValueListener(AttributesBindingListener listener)
-DRM added

Parameters:
listener -

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.