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:
In the JClient project, open the Java Visual Editor on the desired data panel or form.
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 image control.
From the Drop As list select JUImageControl.
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:
In the Property Inspector, set the autoscrolls property to True.
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:
Clear button to delete the image.
To change the data binding of an image control in a form or panel:
In the Visual Editor, open the form or panel containing the image control.
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 Image 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.