5.21.6.2.1 Changing Layouts in Templates

 



 

Changing the Default Layout

 

To change the default Layout, follow these steps once the template is loaded into the Layout draw area, as described in the topic Invoking Templates,

Illustration

 

The following image shows the template "ATM_Virtual_Connection.xml" being displayed in the Layout draw area, with the default layout set to "GridBagLayout".

 

 

    Note: When you need to add new components to the panel or rearrange the existing components in a form, while applying any of the layouts to the desired template,

     

    • Select the desired form or the components in a form

    • Drag and drop the form or components outside the Layout draw area, wherein you can add new components or rearrange the existing components. This is illustrated in the topic "Sample on Removing/Adding Components", please refer the same for details.

Preview of the selected Layout

Setting Layout Properties

Resizing in Layout

 

Resizing is not allowed for all the layouts, i.e, only in some specific layouts, components are allowed to be resized. The following are the layouts in which the resizing is allowed :

Warning:

  • You should not add extra tab to the main tabbed pane.

  • You should not merge the form components, when the forms are in different stages.

  • The same merging rules apply for tree format.

  • In the same stage, if the form components are merged, then there should be no element between the two form tags.

<Stage label="First" >

<Form id="1" >

</Form>

<Form id="2" >

</Form>

</Stage>

 

In the above case, components present in Form "1" and Form "2" can be merged. But same is not possible, if there are any tags between Form "1" and Form"2".

  • You should not add any component outside the layout, when the forms are displayed in the tree format.

  • When layouts are set for templates, additional components should not be added using template filters. If added, those components are not considered in the layout being set.

 



Copyright © 1996-2004, AdventNet Inc. All Rights Reserved.