Widget container

With Widget container, you can define a new service in the service repository, which is composed of several widget instance definitions. Then web user can use the composite service and completes several operations in a single little window.

BTT Web2.0 provides three kinds of widget container:

  1. Border container is a widget layout component, it provides a smart way for user to organize the sub widget, the layout typically like:
  2. Tab container displays one sub widget each time, it can load a set of sub widget in the turn of left to right parallelly. It's with a set of tab at the top of each sub container, user can click the tab of each sub-container to browse the content. Following is a BTT Web2.0 Tab Container example:
  3. Accordion container organizes the sub container vertically one by one in a collapsible style. In the same way with tab container, user can click the tab of each sub container to browse the content. Following is a BTT Web2.0 Accordion container example:
The following table summarizes parameters for widget container tag <Widget>.
Table 1. Widget container parameter table for widget container tag <Widget>
Parameter Value
name Widget name, mandatory
type Border, Tab, Accordion
region Top, Bottom, Left, Center, Right
xweight Sub widget height, support two modes: pix and %, such as: 100px, 30%
xheight Sub widget width, support two modes: pix and %, such as 100px, 30%
splitter A split handler to adjust the sub widget size. Default value is false.

Example

Following is a snippet of widget container example:

<Widget name="BTTContainer"type="Border">
		<children>
			<Widget name="simpleHTMLWgt" region="top" xheight="80%"splitter="true">
				<attribute name="url" value="http://www.google.com"/>
				<attribute name="height" value="100%"/>
			</Widget>
			<Widget name="event_transfertoWgt" region="center"></Widget>
			<Widget name="event_transferfromWgt" region="left" splitter="true"
xwidth="100px"></Widget>
    </children>
</Widget>