Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
ここでは、レイアウト マネージャについて説明します。

...

 

Code Block
<window height="180" title="Window" width="350">
    <gridLayout columns="3"/>
    <button  text="Button"/>
    <link text="link"/>
    <comboBox/>
    <radioButton text="radioButton"/>
    <textField text="TextField"/>
    <button  text="Button"/>
    <listBox>
        <listItem text="listItem 1"/>
        <listItem text="listItem 2"/>
    </listBox>
    <button text="Button"/>
</window>

GridLayout は SWT グリッドレイアウトの後で形成されます - http://www.eclipse.org/articles/Understanding%20Layouts/Understanding%20Layouts.htm

レイアウトマネージャはどこで使用するのか?

それぞれのコンテナ状コンポーネント(panel, desktopPane, rootPane, window, dialog)は子コンポーネントをレイアウトするためにレイアウトマネージャが必要です。ただし、次の特別コンポーネントは除きます :

  • scrollPane
  • tabPane とその子コンポーネント tab
  • splitPane とその4つの子コンポーネント (top | bottom | letf | roght)

(未完成)