com.ibm.dse.desktop
Class NewGridLayout

java.lang.Object
  |
  +--com.ibm.dse.desktop.NewGridLayout

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

This class implements a new Layout that resize the components of the Desktop when a resize 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)
          This method add a component to the Layout
 java.util.Hashtable getComponentList()
          This method returns a Hashtable with the list of the components
 void layoutContainer(java.awt.Container parent)
          This method resizes all the components to the Desktop that has been resized.
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          This method returns the minimunLayout size of the Desktop return java.awt.Dimension
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          This method returns the preferred Layout Size returns java.awt.Dimension
 void removeLayoutComponent(java.awt.Component comp)
          This method removes a Layout Copmonent
 void setComponentList(java.util.Hashtable newComponentList)
          This method set the component List to another value
 void setSize(java.awt.Dimension size)
          This method set 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)
This method add a component to the Layout
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

getComponentList

public java.util.Hashtable getComponentList()
This method returns a Hashtable with the list of the components
Returns:
componentList Hashtable

layoutContainer

public void layoutContainer(java.awt.Container parent)
This method resizes all the components to the Desktop that has been resized. This resize is done respect to the original size of the Desktop Components, that is stored at the ComponentInfo class.
Specified by:
layoutContainer in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
This method returns the minimunLayout 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)
This method 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)
This method removes a Layout Copmonent
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

setComponentList

public void setComponentList(java.util.Hashtable newComponentList)
This method set the component List to another value
Parameters:
newComponentList - java.util.Hashtable

setSize

public void setSize(java.awt.Dimension size)
This method set the Dimension of the size
Parameters:
Size - java.awt.Dimension