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

E10653-05

oracle.binding
Interface AttributeBinding

All Superinterfaces:
ControlBinding
All Known Subinterfaces:
AttributeBinding
All Known Implementing Classes:
JUButtonBinding, JUButtonGroupBinding, JUComboBoxBinding, JUComboBoxCtrlBinding, JUComboBoxLovEditBinding, JUCtrlAttrsBinding, JUCtrlBoolBinding, JUCtrlListBinding, JUCtrlParameterBinding, JUDefaultControlBinding, JUFormattedTextFieldBinding, JULabelBinding, JUListSingleSelBinding, JULovButtonBinding, JUProgressBarAttrBinding, JUScrollBarAttrBinding, JUSliderAttrBinding, JUSpinnerBinding, JUTextFieldBinding

public interface AttributeBinding
extends ControlBinding

A ControlBinding that binds a single attribute value exposed via a datacontrol to a view component.
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()
          Returns the value that should be rendered on a view for the attribute associated with this binding.
 java.lang.String getLabel()
          Returns the display label or prompt for the attribute represented by this binding.
 boolean isUpdateable()
          Finds out whether the attribute is updateable or is for display only.
 void setInputValue(java.lang.Object inputVal)
          Updates the attribute value associated with this binding.
 
Methods inherited from interface oracle.binding.ControlBinding
getName, getPath, release, resolvePath, setListener
 

Method Detail

getInputValue

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

Returns:
The attribute value.

setInputValue

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

Parameters:
inputVal - The new attribute value.
See Also:
getErrors()

getLabel

java.lang.String getLabel()
Returns the display label or prompt for the attribute represented by this binding.

Returns:
The display label or prompt string.

isUpdateable

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

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

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(Object)

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

E10653-05

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