org.PingOO.DLAI.lib.PWidget
Class ColumnLayout

java.lang.Object
  |
  +--org.PingOO.DLAI.lib.PWidget.ColumnLayout

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

Defines a layout used to put components in column.
Taken from the JDK demo Metalworks.

Since:
PingOO 2.0
Version:
1.4 08/26/98
Author:
Steve Wilson, Fabrice Bouyé (bouye@cur-archamps.fr)
See Also:
LayoutManager

Constructor Summary
ColumnLayout()
          Creates a new column layout instance.
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Adds the specified component with the specified name to the layout.
 void layoutContainer(java.awt.Container parent)
          Lays out the container in the specified panel.
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.
 void removeLayoutComponent(java.awt.Component comp)
          Removes the specified component from the layout.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ColumnLayout

public ColumnLayout()
Creates a new column layout instance.
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Adds the specified component with the specified name to the layout.
Does nothing !
Specified by:
addLayoutComponent in interface java.awt.LayoutManager
Parameters:
name - The component name.
comp - The component to be added.

layoutContainer

public void layoutContainer(java.awt.Container parent)
Lays out the container in the specified panel.
Specified by:
layoutContainer in interface java.awt.LayoutManager
Parameters:
parent - The component which needs to be laid out

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - The component to be laid out.

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - The component to be laid out

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout.
Does nothing !
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Parameters:
comp - The component to be removed.