Customizing the Default Data Source Container
5. Set the following properties of the IlsDSJTable instance:
DataSourceContainer: Set this property to
this, which designates here the
MyFrame instance. Setting the window frame as the data source container is useful if the view is opened by dereferencing, because the frame will then be automatically displayed. The default data source container provided is no longer used.
ServerName: Set it to
network7, for example. This is the name of the Rogue Wave® Server object model (launched with
-ilsn option).
HostName: If the server is running on the same machine, keep the default value
localhost; otherwise, set it to the name or IP address of the server.
viewId: Set this property to
DomainView, that is, to the name of the view as defined in the
.ils file.
ObjectId: This property represents the name of the server object to which the view has subscribed as its origin. Set it to the name of the server object the view is going to represent, for example,
Domain_1 to see a view on the domain named
Domain_1 on your object server.
Label: Set this property to
table, or to the value you haven chosen in your
.ils file for the name of the origin.
The Jbuilder window should now look like this:
Figure 9.2 Setting the Properties of the IlsDSJTable Instance
You have finished designing your graphical user interface. Now, you want to to initialize the Java data source library, connect it to the object server, and open the view.
Version 5.7
Copyright © 2013, Rogue Wave Software, Inc. All Rights Reserved.