モジュール java.desktop
パッケージ javax.swing.plaf.basic

クラスBasicOptionPaneUI.ButtonAreaLayout

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のサブクラス内でのみインスタンス化してください。
  • フィールド詳細

    • syncAllWidths

      protected boolean syncAllWidths
      この値は、子の幅を同期させるべきかどうかを表します。
    • padding

      protected int padding
      パディング値。
    • centersChildren

      protected boolean centersChildren
      trueの場合、子は親の中でまとめられます。
  • コンストラクタの詳細

    • 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()
      中央の子を使用するかどうかを返します。
      戻り値:
      センターの子が使用されるべきかどうか