The subclasses of <layout> are shown in Table 7.2.
<layout> |
| |
| <row-layout> | |
<column-layout> | ||
<fixed-layout> | ||
<pinboard-layout> | ||
<stack-layout> | ||
<table-layout> | ||
<grid-layout> |
The layouts provided by DUIM fall roughly into two categories:
The classes of layout available are as follows:
<column-layout> <row-layout>This class lays out its children in a single row.
<stack-layout>This class lays out its children one on top of another, aligned at the top left corner by default. It is specifically for windows that contain a number of layouts, only one of which is visible at any one time, such as property sheets, tab controls, or wizards.
<table-layout>This class lays out its children in a table, according to a specified number of rows and columns.
<pinboard-layout> <fixed-layout> This class is like <pinboard-layout>, in that you must specify the position of each child. Unlike <pinboard-layout>, however, you must also specify the size of each child.
In addition to the basic types of layout described above, a subclass of <table-layout> is provided, as follows:
<grid-layout> This is a specialized version of <table-layout>, in which all the cells in the table are forced to be the same size.