Using the JClient Label For Control

The Label For control is a JULabel control that can be bound to an attribute of a business service collection through the JClient attribute binding. The binding accesses the previously defined control hint defined for a Business Components attribute. The JULabel control renders the label from the defined hint.

Alternatively, you can display the label from the attribute value.

To insert a databound label into a form or panel:

  1. Open the form or panel into which you want to insert the label.

  2. Click the UI tab to display the form in the Java Visual Editor.

  3. From the View menu choose Data Control Palette to open the palette.

  4. In the top portion of the palette, select the attribute you want to bind to the label.

  5. From the Drop As list select Label For.

  6. 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:

    myjULabel1.setText(panelBinding.findCtrlValueBinding("Ename").getLabel());

    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:

  1. Open the form or panel containing the label.

  2. Click the UI tab to display the form in the Java Visual Editor.

  3. ClickUI Model tab icon (UI Model) in the Structure window toolbar and expand the node to display the list of bindings for that form or panel.

  4. Right-click the binding you want to change and select Edit from the menu. The attribute binding editor is displayed.

  5. 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.