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) |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
void |
addLayoutComponent(String string, Component comp) |
レイアウト・マネージャがコンポーネントごとの文字列を使用する場合は、レイアウトにコンポーネント
compを追加し、それをnameによって指定された文字列に関連付けます。 |
boolean |
getCentersChildren() |
|
int |
getPadding() |
|
boolean |
getSyncAllWidths() |
|
void |
layoutContainer(Container container) |
指定されたコンテナを配置します。
|
Dimension |
minimumLayoutSize(Container c) |
指定されたコンテナに含まれているコンポーネントを基に、コンテナの最小サイズを計算します。
|
Dimension |
preferredLayoutSize(Container c) |
指定されたコンテナに含まれているコンポーネントを基に、コンテナの推奨サイズを計算します。
|
void |
removeLayoutComponent(Component c) |
指定されたコンポーネントをレイアウトから削除します。
|
void |
setCentersChildren(boolean newValue) |
|
void |
setPadding(int newPadding) |
|
void |
setSyncAllWidths(boolean newValue) |
protected boolean syncAllWidths
protected int padding
protected boolean centersChildren
public void setSyncAllWidths(boolean newValue)
public boolean getSyncAllWidths()
public void setPadding(int newPadding)
public int getPadding()
public void setCentersChildren(boolean newValue)
public boolean getCentersChildren()
public void addLayoutComponent(String string, Component comp)
LayoutManagercompを追加し、それをnameによって指定された文字列に関連付けます。addLayoutComponent、インタフェースLayoutManagerstring - コンポーネントに関連付けられる文字列comp - 追加されるコンポーネントpublic void layoutContainer(Container container)
LayoutManagerlayoutContainer、インタフェースLayoutManagercontainer - 配置されるコンテナpublic Dimension minimumLayoutSize(Container c)
LayoutManagerminimumLayoutSize、インタフェースLayoutManagerc - 配置されるコンポーネントLayoutManager.preferredLayoutSize(java.awt.Container)public Dimension preferredLayoutSize(Container c)
LayoutManagerpreferredLayoutSize、インタフェースLayoutManagerc - 配置されるコンテナLayoutManager.minimumLayoutSize(java.awt.Container)public void removeLayoutComponent(Component c)
LayoutManagerremoveLayoutComponent、インタフェースLayoutManagerc - 削除されるコンポーネント バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。