When you create a databound component using the Data Control Palette,
JDeveloper adds metadata to the UIModel.xml
file defined
for your view-controller project. The metadata determines the default
display characteristics of each databound UI component and sets
properties for the binding object at runtime. You can work with the data
binding metadata through:
Additionally, each binding's implementing class defines methods that give you access to runtime information about the binding. You can work with runtime-specific properties through:
The following sections describe the runtime properties for each Oracle ADF binding type:
The
oracle.jbo.uicli.binding.DCControlBinding
class provides accessor
methods for these properties that are accessible by all value bindings:
The
oracle.jbo.uicli.binding.JUCtrlActionBinding
class provides
accessor methods for these properties of method-type action bindings
that you can work with:
And you can work with the generic properties
defined by the root class DCControlBinding
.
The
oracle.jbo.uicli.binding.JUCtrlAttrsBinding
class defines no
properties of its own.
However, you can work with these properties defined by the class hierarchy of the attribute binding:
And you can work with the generic properties
defined by the root class DCControlBinding
.
The
oracle.jbo.uicli.binding.JUCtrlBoolBinding
class has no properties
of its own.
However, you can work with these properties defined by the class hierarchy of the Boolean binding:
selected
- A boolean TRUE
if current entry
should be selected.
index
- The index value of the current entry.
prompt
- A concatenated string of all display attribute
values for the current entry.
displayValues
- The iterator of display attribute
values.
selectedIndex
- The index of the selected entry to
which the binding is associated.
label
- The label to display for the current attribute
tooltip
- The tooltip to display for the current
attribute
displayHint
- The display hint for the current attribute
displayHeight
- The height in lines for the current
attribute
displayWidth
- The width in characters for the current
attribute
controlType
- The control type hint for the current
attribute
format
- The format to be used for the current attribute
And you can work with the generic properties
defined by the root class DCControlBinding
.
The
oracle.jbo.uicli.binding.JUIteratorBinding
class abstracts out the
most commonly used methods for collection and currency management:
Note: If you want to change the range size setting
on a row set iterator through an iterator binding, you must use the
setRangeSize()
method call on the iterator binding object and not on
the view object.
The
oracle.jbo.uicli.binding.JUCtrlListBinding
class provides accessor
methods for these properties that you can work with:
selected
- A boolean TRUE
if current entry
should be selected.
Index
- The index value of the current entry.
Prompt
- A concatenated string of all display attribute
values for the current entry.
displayValues
- The iterator of display attribute
values.
selectedIndex
- The index of the selected entry to
which the binding is associated.
label
- The label to display for the current attribute.
tooltip
- The tooltip to display for the current
attribute.
displayHint
- The display hint for the current
attribute.
displayHeight
- The height in lines for the current
attribute.
displayWidth
- The width in characters for the current
attribute.
controlType
- The control type hint for the current
attribute.
format
- The format to be used for the current
attribute.
Additionally, you can work with these properties defined by the class hierarchy of the list binding:
And you can work with the generic properties
defined by the root class DCControlBinding
.
The
oracle.jbo.uicli.binding.JUCtrlRangeBinding
class provides accessor
methods for these properties that you can work with:
index
- The range index of the row this reference is
pointing to.
key
- The key of the row this reference is pointing
to.
keyStr
- The String format of the key of the row this
reference is pointing to.
currencyString
- The current indexed row as a String.
Returns "*" if the current entry belongs to the current row;
otherwise, returns " ". This property is useful in JSP
applications to display the current row.
attributeValues
- The array of applicable attribute
values from the row.
And you may also access an attribute value by name on a range set
like rangeSet.Dname
if Dname
is a bound
attribute in the range binding.
Additionally, you can work with these properties defined by the class hierarchy of the range binding:
And you can work with the generic properties
defined by the root class DCControlBinding
.
The
oracle.jbo.uicli.binding.JUCtrlScrollBinding
class defines no
properties of its own.
However, you can work with the generic
properties defined by the root class DCControlBinding
.
To read about data bindings:
To customize data bindings:
For information about the binding context in Oracle ADF:
Copyright © 1997, 2004, Oracle. All rights reserved.