|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||
java.lang.Objectjp.hishidama.swing.layout.GroupLayoutUtil
public class GroupLayoutUtil
GroupLayoutユーティリティー.
コンポーネントの二次元配列をGroupLayoutで配置する。
→使用例
※当クラスはインスタンスフィールドに個別の値を保持するので、MTセーフではない。
| 入れ子のクラスの概要 | |
|---|---|
static class |
GroupLayoutUtil.Gap
ギャップ指定コンポーネント. |
| フィールドの概要 | |
|---|---|
static Component |
SAME_L
配列の左側と同じコンポーネントを配置する |
static Component |
SAME_U
配列の上側と同じコンポーネントを配置する |
| コンストラクタの概要 | |
|---|---|
GroupLayoutUtil()
コンストラクター. |
|
| メソッドの概要 | |
|---|---|
Component |
getComponent(int x,
int y)
コンポーネント取得. |
Component[][] |
getComponents()
コンポーネント配列取得. |
GroupLayout |
getGroupLayout()
GroupLayout取得. |
int |
getXSize()
コンポーネント配列の横方向の個数を取得. |
int |
getYSize()
コンポーネント配列の縦方向の個数を取得. |
void |
setComponents(Component[][] components)
コンポーネント配列設定. |
void |
setGroupLayoutTo(Container container)
GroupLayout設定. |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final Component SAME_L
public static final Component SAME_U
| コンストラクタの詳細 |
|---|
public GroupLayoutUtil()
| メソッドの詳細 |
|---|
public void setComponents(Component[][] components)
components - コンポーネントの二次元配列public Component[][] getComponents()
public int getXSize()
public int getYSize()
public Component getComponent(int x,
int y)
x - Xy - Y
public void setGroupLayoutTo(Container container)
コンポーネントを配置したGroupLayoutを生成し、指定されたコンテナに登録する。
container - コンテナpublic GroupLayout getGroupLayout()
setGroupLayoutTo(Container)を呼んでからでないと、nullが返る。
setGroupLayoutTo(Container)
|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||