Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


oracle.binding
Interface AttributesBinding

All Superinterfaces:
ControlBinding
All Known Subinterfaces:
AttributesBinding
All Known Implementing Classes:
JUCtrlAdaptValueBindingRef, JUCtrlValueBindingRef

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
 java.util.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.

 

Methods inherited from interface oracle.binding.ControlBinding
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

java.util.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)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


Copyright © 1997, 2011, Oracle. All rights reserved.