モジュール java.desktop
パッケージ 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の新しいインスタンスを構築します。
    • フィールドの詳細

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

        public void addLayoutComponent​(String string,
                                       Component comp)
        インタフェースからコピーされた説明: LayoutManager
        レイアウト・マネージャがコンポーネントごとの文字列を使用する場合は、レイアウトにコンポーネントcompを追加し、それをnameによって指定された文字列に関連付けます。
        定義:
        addLayoutComponent、インタフェース: LayoutManager
        パラメータ:
        string - コンポーネントに関連付けられる文字列
        comp - 追加されるコンポーネント
      • layoutContainer

        public void layoutContainer​(Container container)
        インタフェースからコピーされた説明: LayoutManager
        指定されたコンテナを配置します。
        定義:
        layoutContainer、インタフェース: LayoutManager
        パラメータ:
        container - 配置されるコンテナ
      • removeLayoutComponent

        public void removeLayoutComponent​(Component c)
        インタフェースからコピーされた説明: LayoutManager
        指定されたコンポーネントをレイアウトから削除します。
        定義:
        removeLayoutComponent、インタフェース: LayoutManager
        パラメータ:
        c - 削除されるコンポーネント