This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.plaf.basic
class BasicOptionPaneUI.ButtonAreaLayout

java.lang.Object extended by javax.swing.plaf.basic.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 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.


Field Summary
protected boolean centersChildren
          If true, children are lumped together in parent.
protected int padding
          
protected boolean syncAllWidths
          
 
Constructor Summary
BasicOptionPaneUI.ButtonAreaLayout(boolean syncAllWidths, int padding)

          
 
Method Summary
 void

          
 boolean

          
 int

          
 boolean

          
 void

          
 Dimension

          
 Dimension

          
 void

          
 void
setCentersChildren(boolean newValue)

          
 void
setPadding(int newPadding)

          
 void
setSyncAllWidths(boolean newValue)

          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

centersChildren

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

padding

protected int padding

syncAllWidths

protected boolean syncAllWidths
Constructor Detail

BasicOptionPaneUI.ButtonAreaLayout

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

addLayoutComponent

public void addLayoutComponent(String string,
                               Component comp)
Parameters:
string
comp

getCentersChildren

public boolean getCentersChildren()

getPadding

public int getPadding()

getSyncAllWidths

public boolean getSyncAllWidths()

layoutContainer

public void layoutContainer(Container container)
Parameters:
container

minimumLayoutSize

public Dimension minimumLayoutSize(Container c)
Parameters:
c

preferredLayoutSize

public Dimension preferredLayoutSize(Container c)
Parameters:
c

removeLayoutComponent

public void removeLayoutComponent(Component c)
Parameters:
c

setCentersChildren

public void setCentersChildren(boolean newValue)
Parameters:
newValue

setPadding

public void setPadding(int newPadding)
Parameters:
newPadding

setSyncAllWidths

public void setSyncAllWidths(boolean newValue)
Parameters:
newValue


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.