IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.desktop
Class NewGridLayout

java.lang.Object
  extended bycom.ibm.dse.desktop.NewGridLayout
All Implemented Interfaces:
java.awt.LayoutManager

public class NewGridLayout
extends java.lang.Object
implements java.awt.LayoutManager

This class implements a new Layout that resizes the components of the Desktop when a resize operation is done.


Constructor Summary
NewGridLayout()
          This constructor creates a NewGridLayout object.
NewGridLayout(java.awt.Container c)
          This constructor creates a NewGridLayout object.
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Adds a component to the Layout.
 java.util.Hashtable getComponentList()
          Returns a hash table with the list of the components.
 void layoutContainer(java.awt.Container parent)
          Resizes all the components of the Desktop that has been resized.
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          Returns the minimumLayout size of the Desktop.
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          Returns the preferred Layout Size.
 void removeLayoutComponent(java.awt.Component comp)
          Removes a Layout Component.
 void setComponentList(java.util.Hashtable newComponentList)
          Sets the component List to another value.
 void setSize(java.awt.Dimension size)
          Sets the Dimension of the size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewGridLayout

public NewGridLayout()
This constructor creates a NewGridLayout object.


NewGridLayout

public NewGridLayout(java.awt.Container c)
This constructor creates a NewGridLayout object.

Parameters:
c - com.sun.java.swing.Container
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Adds a component to the Layout.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager

getComponentList

public java.util.Hashtable getComponentList()
Returns a hash table with the list of the components.

Returns:
componentList Hashtable

layoutContainer

public void layoutContainer(java.awt.Container parent)
Resizes all the components of the Desktop that has been resized. This resize is done with respect to the original size of the Desktop Components (which is stored in the ComponentInfo class).

Specified by:
layoutContainer in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Returns the minimumLayout size of the Desktop. return java.awt.Dimension

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Returns the preferred Layout Size. returns java.awt.Dimension

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Removes a Layout Component.

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

setComponentList

public void setComponentList(java.util.Hashtable newComponentList)
Sets the component List to another value.

Parameters:
newComponentList - java.util.Hashtable

setSize

public void setSize(java.awt.Dimension size)
Sets the Dimension of the size.


IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005