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

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 07/12/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/swing/plaf/basic/BasicOptionPaneUI.ButtonAreaLayout.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, BasicOptionPaneUI.ButtonAreaLayo

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut