About this task
In the XUI file, you can take the widget in other XUI files as
references and put the widget in the current design panel. To refer to the
widgets in other files, you need to do the following steps:
- Create a new XUI file and configure the import file properties as shown
in the following screen capture.
- Click the addbutton to select an existing XUI file
as the widget library, and the relative path to the current file will be displayed
in the Files section.
- On the palette, click Reference, and drag the widget
to the design panel. The Reference Models dialog opens. In the Reference Models
dialog, the widgets which can be referred to in the import file are listed.
The following screen capture shows the Reference Models dialog:
- Select the widget model and drag it to the target Composite. Then the
current file can use the widget model as reference. In the following screen
capture, the table widget displays as reference.
Attention: - The widget that is defined in the import files should have the widget
ID, and the ID should be unique.
- The widget model that can be referred to by the current file should not
have any parent widget. For example, there are five widgets defined in the
following XUI file. Composite (id="hhh"), Table (id="tb1"), Text (id="txt1"),
and Button (id="btn1") can work as reference. But the Button which is defined
within the Composite can not be work as reference.