java.lang.Object
javax.swing.plaf.basic.BasicOptionPaneUI.ButtonAreaLayout
- すべての実装されたインタフェース:
LayoutManager
- 含まれているクラス:
- BasicOptionPaneUI
public static class BasicOptionPaneUI.ButtonAreaLayout extends Object implements LayoutManager
ButtonAreaLayout
は、FlowLayout
と同様に動作します。 すべてのコンポーネントを左から右へ配置します。 syncAllWidths
がtrueの場合、各コンポーネントの幅は推奨されるサイズ幅のもっとも大きなものに設定されます。 このクラスは、「protected」内部クラスとして扱うようにしてください。 BasicOptionPaneUI
のサブクラス内でのみインスタンス化してください。 -
フィールドのサマリー
フィールド 修飾子と型 フィールド 説明 protected boolean
centersChildren
trueの場合、子は親の中でまとめられます。protected int
padding
パディング値。protected boolean
syncAllWidths
この値は、子の幅を同期させるべきかどうかを表します。 -
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 ButtonAreaLayout(boolean syncAllWidths, int padding)
ButtonAreaLayout
の新しいインスタンスを構築します。 -
メソッドのサマリー
修飾子と型 メソッド 説明 boolean
getCentersChildren()
中央の子を使用するかどうかを返します。int
getPadding()
パディングを返します。boolean
getSyncAllWidths()
子の幅を同期させるべきかどうかを返します。void
setCentersChildren(boolean newValue)
中央の子を使用するかどうかを設定します。void
setPadding(int newPadding)
パディング値を設定します。void
setSyncAllWidths(boolean newValue)
子の幅を同期させるかどうかを設定します。クラス java.lang.Objectで宣言されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、toString、wait、wait、wait
インタフェース java.awt.LayoutManagerで宣言されたメソッド
addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
-
フィールド詳細
-
syncAllWidths
protected boolean syncAllWidthsこの値は、子の幅を同期させるべきかどうかを表します。 -
padding
protected int paddingパディング値。 -
centersChildren
protected boolean centersChildrentrueの場合、子は親の中でまとめられます。
-
-
コンストラクタの詳細
-
ButtonAreaLayout
public ButtonAreaLayout(boolean syncAllWidths, int padding)ButtonAreaLayout
の新しいインスタンスを構築します。- パラメータ:
syncAllWidths
- 子の幅を同期させる必要がある場合padding
- パディング値
-
-
メソッドの詳細
-
setSyncAllWidths
public void setSyncAllWidths(boolean newValue)子の幅を同期させるかどうかを設定します。- パラメータ:
newValue
- 子の幅を同期させる必要がある場合
-
getSyncAllWidths
public boolean getSyncAllWidths()子の幅を同期させるべきかどうかを返します。- 戻り値:
- 子の幅を同期させる必要がある場合
-
setPadding
public void setPadding(int newPadding)パディング値を設定します。- パラメータ:
newPadding
- 新しいパディング
-
getPadding
public int getPadding()パディングを返します。- 戻り値:
- パディング
-
setCentersChildren
public void setCentersChildren(boolean newValue)中央の子を使用するかどうかを設定します。- パラメータ:
newValue
- 新しい価値
-
getCentersChildren
public boolean getCentersChildren()中央の子を使用するかどうかを返します。- 戻り値:
- センターの子が使用されるべきかどうか
-