All Packages  This Package  Class Hierarchy  Class Search  Index

Inner Class matthew.awt.StrutLayout.SizeGroup
java.lang.Object
   |
   +----matthew.awt.StrutLayout.SizeGroup

  Summary

public final class  StrutLayout.SizeGroup
     extends java.lang.Object
{
          // Methods 2
     public void add(Component, int);
     public void remove(Component);
}

Represents a group of components who have their width and/or height tied to the size of the group. The size of the group is the width of the largest component and the height of the tallest component.

Example:

  ...
  StrutLayout.SizeGroup buttonGroup = strutLayout.createSizeGroup ();
  buttonGroup.add (editButton, StrutLayout.SIZE_WIDTH);
  buttonGroup.add (removeButton, StrutLayout.SIZE_WIDTH);
  ...
  

See Also: createSizeGroup, add, SIZE_NONE, SIZE_HEIGHT, SIZE_WIDTH, SIZE_BOTH


  Cross Reference

Returned By:
StrutLayout.createSizeGroup(), StrutLayout.getSizeGroup()





  Methods

· add

Summary  |  Top
   public void add(Component component, 
                   int sizeMode) 

Adds a component to this group using sizeMode to determine which dimensions are tied to the group. If the component is already part of a size group this has no effect.

Parameter Description
component The component to be added. The component must have been already added to the layout.
sizeMode Determines which dimensions of the component are tied to this group. Values may be SIZE_NONE, SIZE_WIDTH, SIZE_HEIGHT or SIZE_BOTH. Using SIZE_NONE allows the component to participate in setting the max width and height but ensures the component itself is never changed.

See Also: remove, SIZE_NONE, SIZE_HEIGHT, SIZE_WIDTH, SIZE_BOTH



· remove

Summary  |  Top
   public void remove(Component component) 

Removes a component from the group. If the component is not a member of this group this has no effect.

Parameter Description
component The component to remove.

See Also: add



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7