public static class

BasicOptionPaneUI.ButtonAreaLayout

extends Object
implements LayoutManager
java.lang.Object
   ↳ javax.swing.plaf.basic.BasicOptionPaneUI.ButtonAreaLayout

Class Overview

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 inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicOptionPaneUI.

Summary

Fields
protected boolean centersChildren If true, children are lumped together in parent.
protected int padding
protected boolean syncAllWidths
Public Constructors
BasicOptionPaneUI.ButtonAreaLayout(boolean syncAllWidths, int padding)
Public Methods
void addLayoutComponent(String string, Component comp)
If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
boolean getCentersChildren()
int getPadding()
boolean getSyncAllWidths()
void layoutContainer(Container container)
Lays out the specified container.
Dimension minimumLayoutSize(Container c)
Calculates the minimum size dimensions for the specified container, given the components it contains.
Dimension preferredLayoutSize(Container c)
Calculates the preferred size dimensions for the specified container, given the components it contains.
void removeLayoutComponent(Component c)
Removes the specified component from the layout.
void setCentersChildren(boolean newValue)
void setPadding(int newPadding)
void setSyncAllWidths(boolean newValue)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.awt.LayoutManager

Fields

protected boolean centersChildren

If true, children are lumped together in parent.

protected int padding

protected boolean syncAllWidths

Public Constructors

public BasicOptionPaneUI.ButtonAreaLayout (boolean syncAllWidths, int padding)

Public Methods

public void addLayoutComponent (String string, Component comp)

If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.

Parameters
string the string to be associated with the component
comp the component to be added

public boolean getCentersChildren ()

public int getPadding ()

public boolean getSyncAllWidths ()

public void layoutContainer (Container container)

Lays out the specified container.

Parameters
container the container to be laid out

public Dimension minimumLayoutSize (Container c)

Calculates the minimum size dimensions for the specified container, given the components it contains.

Parameters
c the component to be laid out

public Dimension preferredLayoutSize (Container c)

Calculates the preferred size dimensions for the specified container, given the components it contains.

Parameters
c the container to be laid out

public void removeLayoutComponent (Component c)

Removes the specified component from the layout.

Parameters
c the component to be removed

public void setCentersChildren (boolean newValue)

public void setPadding (int newPadding)

public void setSyncAllWidths (boolean newValue)