javax.swing.plaf.basic

Class BasicOptionPaneUI. ButtonAreaLayout

  • All Implemented Interfaces:
    LayoutManager
    Enclosing class:
    BasicOptionPaneUI

    public static class BasicOptionPaneUI.ButtonAreaLayout
    extends Object
    implements LayoutManager
    ButtonAreaLayout behaves in a similar manner to FlowLayout. It lays out all components from left to right. If syncAllWidths is true, the widths of each component will be set to the largest preferred size width. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicOptionPaneUI.
    • Field Detail

      • syncAllWidths

        protected boolean syncAllWidths
      • padding

        protected int padding
      • centersChildren

        protected boolean centersChildren
        If true, children are lumped together in parent.
    • Constructor Detail

      • BasicOptionPaneUI.ButtonAreaLayout

        public BasicOptionPaneUI.ButtonAreaLayout(boolean syncAllWidths,
                                          int padding)
    • Method Detail

      • setSyncAllWidths

        public void setSyncAllWidths(boolean newValue)
      • getSyncAllWidths

        public boolean getSyncAllWidths()
      • setPadding

        public void setPadding(int newPadding)
      • getPadding

        public int getPadding()
      • setCentersChildren

        public void setCentersChildren(boolean newValue)
      • getCentersChildren

        public boolean getCentersChildren()
      • addLayoutComponent

        public void addLayoutComponent(String string,
                              Component comp)
        Description copied from interface: LayoutManager
        If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
        Specified by:
        addLayoutComponent in interface LayoutManager
        Parameters:
        string - the string to be associated with the component
        comp - the component to be added
      • layoutContainer

        public void layoutContainer(Container container)
        Description copied from interface: LayoutManager
        Lays out the specified container.
        Specified by:
        layoutContainer in interface LayoutManager
        Parameters:
        container - the container to be laid out
      • removeLayoutComponent

        public void removeLayoutComponent(Component c)
        Description copied from interface: LayoutManager
        Removes the specified component from the layout.
        Specified by:
        removeLayoutComponent in interface LayoutManager
        Parameters:
        c - the component to be removed

Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/swing/plaf/basic/basicoptionpaneui.buttonarealayout.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut