Using the JClient JUImage Control

The JUImage control can be bound to an attribute of a business service collection through the JClient attribute binding. The attribute binding accesses images stored in the database through a particular data collection. Datatypes that the JUImage control supports includes images stored as:

To insert a databound image control into a form or panel:

  1. In the JClient project, open the Java Visual Editor on the desired data panel or form.

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

  3. In the top portion of the palette, select the attribute you want to bind to the image control.

  4. From the Drop As list select JUImageControl.

  5. 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 JUImageControl to the attribute:

    myJUImageControl1.setDocument((Document)panelBinding.bindUIControl("MyAttribute", myJUImageControl1"));

You can also choose to provide a scrolling region for the image.

To add a scrolling region to your image:

Within a JClient form, users can delete and update the image file stored in the database, but they cannot edit the image itself.

To use the JUImage control:

The Image control consists of a panel with a display area and two buttons:

To change the data binding of an image control in a form or panel:

  1. In the Visual Editor, open the form or panel containing the image control.

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

  3. Right-click the binding you want to change and select Edit from the menu. The Image Binding Editor is displayed.

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