There are twelve basic types of widgets which are provided by the XUI Engine. They are Label, Button, Text, Password, Check Box, Radio Button, Combo, Composite, List, Group, Table, and Table Column.
How to extend a new widget? Current® XUI engine support SWT widget library. And it uses wrapper pattern to wrap SWT widgets, and add XUI specified functions to wrapped widgets, for instance: validation, error handling, global settings, and so on. If you buy the source code, refer to the code of the pre-build widget for advanced development; otherwise, you can refer to the BTT Java documentation about the interface description.
<map id="classTable"> <entry key="Composite" value="com.ibm.btt.rcp.xui.widgets.XUIComposite"/> …… </map>
<XUI> <Composite bounds="74, 61,590,366" id="error Composite"> …… </Composite> </XUI>
If you have developed your own specified widget, you can add it to XUI engine easily. For example, you have developed a new composite named “CustomerComposite”, and its class name is “com.customer.widgets.CustomerComposite”, you can follow these simple steps to use it in XUI files:
<map id="classTable"> <entry key="Composite" value="com.ibm.btt.rcp.xui.widgets.XUIComposite"/> <entry key=” CustomerComposite” value=” com.customer.widgets.CustomerComposite”/> …… </map>
<XUI> < CustomerComposite bounds="74, 61,590,366" id="Customer Composite"> …… </ CustomerComposite > </XUI>