The JUNavigationBar control can be bound to:
The effect of these bindings determines the scope of the navigation bar actions. If you bind to a data collection, the JUNavigationBar lets you navigate on those controls that share the same panel and that are bound to the same data collection through its attributes. Whereas, you can control the navigation of controls in child panels, by adding the JUNavigationBar control to the containing panel and setting the panel binding.
To bind to a data collection:
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 data collection you want to bind to the navigation bar control.
From the Drop As list select NavigationBar.
From the top portion of the palette, drag the selected data collection into the desired position in the open form or panel. JDeveloper adds code to the class file to bind the JUNavigationBar to the collection:
jUNavigationBar1.setModel(JUNavigationBar.createViewBinding(panelBinding,
jUNavigationBar1, "MyDataCollection", null, "MyCollectionIterator"));
To bind to a JUPanel:
In the JClient project, open the Java Visual Editor on the layout panel that contains the panels you want to navigate on.
From the JClient control tab on the Component Palette, click the JUNavigationBar control.
Click the Design tab to add the JUNavigationBar control to the form.
In the Property Inspector for the image, select the model property and select JClient panel binding .
JDeveloper adds code to the class file to bind the JUNavigationBar to the panel binding passed into the current panel:
myNavBar.setModel(JUNavigationBar.createPanelBinding(panelBinding,
myNavBar));
About JClient-Specific Controls
Copyright © 1997, 2004, Oracle. All rights reserved.