com.metamatrix.toolbox.ui.widget.util
Class WidgetUtilities

java.lang.Object
  extended by com.metamatrix.toolbox.ui.widget.util.WidgetUtilities

public final class WidgetUtilities
extends java.lang.Object

Since:
2.0
Version:
3.0
Author:
John P. A. Verhaeg

Constructor Summary
WidgetUtilities()
           
 
Method Summary
static void equalizeSizeConstraints(java.awt.Component[] components)
          Sets the minimum, preferred, and maximum sizes of the specified list of Components to the maximum of their widths and heights for each JComponent in the list.
static void equalizeSizeConstraints(java.util.List components)
          Sets the minimum, preferred, and maximum sizes of the specified list of Components to the maximum of their widths and heights for each JComponent in the list.
static java.awt.Dimension getMaximumPreferredSize(java.awt.Component[] components)
          A convenience method that calls #getMaximumPreferredSize(components, reset) passing false as the reset parameter.
static java.awt.Dimension getMaximumPreferredSize(java.awt.Component[] components, boolean reset)
          Returns a Dimension representing the maximum preferred width and height of the Components within the specified list.
static java.awt.Dimension getMaximumPreferredSize(java.util.List components)
          A convenience method that calls #getMaximumPreferredSize(components, reset) passing false as the reset parameter.
static java.awt.Dimension getMaximumPreferredSize(java.util.List components, boolean reset)
          Returns a Dimension representing the maximum preferred width and height of the Components within the specified list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetUtilities

public WidgetUtilities()
Method Detail

equalizeSizeConstraints

public static void equalizeSizeConstraints(java.awt.Component[] components)
Sets the minimum, preferred, and maximum sizes of the specified list of Components to the maximum of their widths and heights for each JComponent in the list.

Parameters:
buttons - A list of Components
Since:
2.0

equalizeSizeConstraints

public static void equalizeSizeConstraints(java.util.List components)
Sets the minimum, preferred, and maximum sizes of the specified list of Components to the maximum of their widths and heights for each JComponent in the list.

Parameters:
buttons - A list of Components
Since:
2.0

getMaximumPreferredSize

public static java.awt.Dimension getMaximumPreferredSize(java.awt.Component[] components)
A convenience method that calls #getMaximumPreferredSize(components, reset) passing false as the reset parameter.

Since:
3.0

getMaximumPreferredSize

public static java.awt.Dimension getMaximumPreferredSize(java.awt.Component[] components,
                                                         boolean reset)
Returns a Dimension representing the maximum preferred width and height of the Components within the specified list.

Parameters:
components - The list of Components
reset - Indicates whether the preferred size of each JComponent should be unset if currently set
Returns:
A Dimension representing the maximum preferred width and height of the Components
Since:
3.0

getMaximumPreferredSize

public static java.awt.Dimension getMaximumPreferredSize(java.util.List components)
A convenience method that calls #getMaximumPreferredSize(components, reset) passing false as the reset parameter.

Since:
3.0

getMaximumPreferredSize

public static java.awt.Dimension getMaximumPreferredSize(java.util.List components,
                                                         boolean reset)
Returns a Dimension representing the maximum preferred width and height of the Components within the specified list.

Parameters:
components - The list of Components
reset - Indicates whether the preferred size of each JComponent should be unset if currently set
Returns:
A Dimension representing the maximum preferred width and height of the Components
Since:
3.0


Copyright © 2009. All Rights Reserved.