^1446189153665
@
sname
NormalLayouts
slabel
SWT常用布局
sisChapter
true
sdescriptors
xworker.ide.tools.autodemo.AutoDemo
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo
sname
AutoDemo
slabel
介绍主题
sisChapter
true
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@AutoDemo
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo/@ShowThingDescription
sname
ShowThingDescription
slabel
演示-显示主题
swaitTime
10000
Sdescription
#$@text#$@
<h3>SWT常用布局</h3>

<p>&nbsp;&nbsp;&nbsp; 布局是指如何排放控件，包括控件的大小等，常用的布局主要有以下几个。</p>

<ul>
	<li><strong>FillLayout</strong><br />
	填充布局。<br />
	&nbsp;</li>
	<li><strong>GridLayout</strong><br />
	表格布局。<br />
	<strong>&nbsp;</strong></li>
	<li><strong>RowLayout</strong><br />
	按行或列布局。</li>
</ul>

<p>&nbsp;</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@ShowThingDescription
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo/@ShowComposite
sname
ShowComposite
slabel
演示-展示示例
scompositePath
xworker.swt.help.base.ShellExample1/@composite
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@ShowComposite
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo/@SysResponse
sname
SysResponse
slabel
解说-解释主题
swaitTime
15000
Sdescription
#$@text#$@
<p>在讲解SWT常用布局时，我们仍然使用介绍SWT常用控件中时所使用示例，如右面所示。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1
sname
AutoDemo
slabel
FillLayout
sisChapter
true
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@AutoDemo
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@EditThing
sname
EditThing
slabel
演示-编辑FillLayout
sthingPath
xworker.swt.help.base.ShellExample1/@shellFillLayout
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@EditThing
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SysResponse
sname
SysResponse
slabel
解说-fillLayout
swaitTime
5000
Sdescription
#$@text#$@
<p>FillLayout是常用的一种布局，作用是把子控件填充到父控件的整个空间中。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SysResponse1
sname
SysResponse
slabel
解说-fillLayout
swaitTime
5000
Sdescription
#$@text#$@
<p>FillLayout常见的用法是把一个Composite填充到整个Shell中，如右面的示例。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2
sname
AutoDemo
slabel
GridLayout
sisChapter
true
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@AutoDemo
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@EditThing
sname
EditThing
slabel
演示-编辑GridLayout
sthingPath
xworker.swt.help.base.ShellExample1/@composite/@compositeGridLayout
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@EditThing
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse
sname
SysResponse
slabel
解说-GridLayout
swaitTime
5000
Sdescription
#$@text#$@
<p>GridLayout也是常用布局，如右面节点所示。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse1
sname
SysResponse
slabel
解说-GridLayout的作用
swaitTime
5000
Sdescription
#$@text#$@
<p>GridLayout相当于HTML中的表格Table，它分行和列。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse2
sname
SysResponse
slabel
解说-子控件的布局
swaitTime
5000
Sdescription
#$@text#$@
<p>而子控件就布局在行和列所形成的格子中。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@EditThing1
sname
EditThing
slabel
演示-编辑GridData
sthingPath
xworker.swt.help.base.ShellExample1/@composite/@urlText/@urlTextGridData
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@EditThing
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse3
sname
SysResponse
slabel
解说-gridData
swaitTime
5000
Sdescription
#$@text#$@
<p>布局中的子控件则通过GridData来设置自己的布局属性。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse4
sname
SysResponse
slabel
解说- width和height
swaitTime
5000
Sdescription
#$@text#$@
<p>比如通过设置width和height来设置长和宽。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse5
sname
SysResponse
slabel
解说-span
swaitTime
5000
Sdescription
#$@text#$@
<p>通过horizontalAlignment和verticalAlignment来设置自己所占的列和行数。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse6
sname
SysResponse
slabel
解说-style
swaitTime
5000
Sdescription
#$@text#$@
<p>想要实现自动的布局，大部分属性为默认即可，此时style属性的设置比较有用。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse7
sname
SysResponse
slabel
解说-style设置
swaitTime
5000
Sdescription
#$@text#$@
<p>当style=FILL_BOTH时控件占满自己所属的格式，FILL_HORIZONTAL和FILL_VERTICAL则是占满水平或垂直部分。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@EditThing2
sname
EditThing
slabel
演示-编辑TabFolder
sthingPath
xworker.swt.help.base.ShellExample1/@composite/@tabFolder/@tabFolderGridData
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@EditThing
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse8
sname
SysResponse
slabel
解说-TabFolderTGridData
swaitTime
5000
Sdescription
#$@text#$@
<p>比如示例中包含浏览器的标签页就使用了FILL_BOTH，并且水平占了3列。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3
sname
AutoDemo
slabel
RowLayout
sisChapter
true
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@AutoDemo
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3/@EditThing
sname
EditThing
slabel
演示-编辑RowLayout
sthingPath
xworker.swt.help.base.ShellExample1/@composite/@tabFolder/@codeTabItem/@sashForm/@codeComposite/@34440/@34442
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@EditThing
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3/@SysResponse
sname
SysResponse
slabel
解说-RowLayout
swaitTime
5000
Sdescription
#$@text#$@
<p>RowLayout也是比较常用的布局，它可以水平或垂直的依次排列子控件。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3/@SysResponse1
sname
SysResponse
slabel
解说-RowLayout的作用
swaitTime
5000
Sdescription
#$@text#$@
<p>如右面所示，RowLayout布局常用语按钮面板的布局。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3/@EditThing1
sname
EditThing
slabel
演示-编辑RowData
sthingPath
xworker.swt.help.base.ShellExample1/@composite/@tabFolder/@codeTabItem/@sashForm/@codeComposite/@34440/@34443/@34444
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@EditThing
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3/@SysResponse2
sname
SysResponse
slabel
解说-RowData
swaitTime
5000
Sdescription
#$@text#$@
<p>在RowLayout中子控件可以通过RowData来设置自己的大小。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo5
sname
AutoDemo
slabel
总结
sisChapter
true
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@AutoDemo
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo5/@ShowComposite
sname
ShowComposite
slabel
演示-显示示例
scompositePath
xworker.swt.help.base.ShellExample1/@composite
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@ShowComposite
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo5/@SysResponse
sname
SysResponse
slabel
解说-总结
swaitTime
5000
Sdescription
#$@text#$@
<p>以上就是常用布局的说明，现在右面运行的是这些常用布局示例，可以操作它。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
