The JULabel control can be bound to an attribute of a business service collection through the JClient attribute binding. The attribute binding accesses the data stored in the database through a particular data collection. The JULabel control renders the attribute value as a label.
Alternatively, you can display the label from a control hint that has been defined for Business Components attributes.
To insert a databound label into a form or panel:
From the View menu choose Data Control Palette to open the palette.
In the top portion of the palette, select the attribute you want to bind to the label.
From the Drop As list select JULabel.
From the top portion of the palette, drag the selected attribute into the desired position in the open form or panel. JDeveloper adds code to the class file to bind the JULabel to the attribute:
myJuLabel.setModel((JULabelBinding)panelBinding.bindUIControl("MyAttribute",
myJuLabel));
Note: the text property will be overwritten when you run the JClient form.
To change the data binding of a label in a form or panel:
Open the data panel containing the label in the Java Visual Editor.
Click
(UI Model) in the Structure window toolbar and
expand the node to display the list of bindings for that form or
panel.
Right-click the binding you want to change and select Edit from the menu. The attribute binding editor is displayed.
For detailed help about any of these settings, press F1 or click Help within the dialog.
About JClient-Specific Controls
Copyright © 1997, 2004, Oracle. All rights reserved.