Each end-user has an XML file to keep his or her customized page layout information. For example, the User01PageLayout.xml file is the customized layout XML file for user01. In the document, UserPageLayout.xml is used as a representative.
When user01 creates a new tab, or edits a tab, and clicks the save button, the information will be saved in this XML file. It is the same as in the case of creating or editing column and widget.
Internet banking developers can also modify this XML if needed, but you must not miss the mandatory attributes. And if the optional attributes are not specified in this file, it will use the default attributes defined in the DefaultApp.xml file.
Here is an example of User01PageLayout.xml:
<?xml version="1.0" encoding="UTF-8"?> <PageFormatter> <PageFormatter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://btt.cn.ibm.com/61/Web20" xsi:schemaLocation="http://btt.cn.ibm.com/61/Web20 ../BTTWeb20/schema/UserLayout.xsd"> <Page id="page1"/> </PageFormatter>
Parameters specification for each tag are as follows:
Parameter | Description |
---|---|
Page | The Page element, mandatory |
Parameter | Description |
---|---|
id | The Page id, mandatory and unique |
Tab | the Tab element, optional |
Parameter | Description |
---|---|
id | the Tab id, mandatory and unique |
title | The title of the tab. It will be the default tab name of a newly created tab. If no title is needed, you can set the value as an empty string. Optional |
logo | The URL of the tab logo. If no logo is needed, you can set the value as an empty string. Optional |
closable | The attribute to determine whether the tab can be closed by end-users. 0 stands for no while 1 stands for yes. Optional |
editable | The attribute to determine whether the tab name and tab logo can be edited. 0 stands for no while 1 stands for yes. Optional |
maxColLength | The attribute to determine the maximal columns that its parent tab can have, positive Integers, optional |
Column | the Column element can be empty tab element, optional |
Parameter | Description |
---|---|
id | The Column id, mandatory and unique |
width | The width of the Column, mandatory |
closable | The attribute to determine whether the column can be closed by end-users. 0 stands for no while 1 stands for yes. Optional |
draggable | The attribute to determine whether the column can be dragged. 0 stands for no while 1 stands for yes. Optional |
maxWidth | The attribute to determine the maximal width of the column, optional |
minWidth | The attribute to determine the minimal width of the column, optional |
Row | The Row element stands for empty column element, optional |
Parameter | Description |
---|---|
id | The Row id, mandatory and unique |
title | The Row title, it will be the key of the widget name. You have to define the value in the resource file for I18N & G11N, for example Lang-en_US.js, to display the widget name. If no widget name is needed, you can set the value as an empty string. Mandatory |
draggable | The attribute to determine whether the widget window can be dragged by end-users. 0 stands for no while 1 stands for yes. Optional |