com.altair.hwm.beans.utils
Class HWMSingleColumnLayout

java.lang.Object
  extended by java.awt.FlowLayout
      extended by com.altair.hwm.beans.utils.HWMSingleColumnLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable

public class HWMSingleColumnLayout
extends java.awt.FlowLayout
implements java.io.Serializable

Title: HWMSingleColumnLayout

Description: This class will be created for each category of beans found. When the user selects a category in HWMBeanMgr, the appropriate HWMBeanCategoryPanel is displayed.

This will contain all the beans present under this category. It will go through each bean and create a button for it which the user can drag and drop into the page bean.

Company: Altair Engineering, Inc.

See Also:
Serialized Form

Field Summary
static int CENTER_JUSTIFIED
           
static int LEFT_JUSTIFIED
           
 
Fields inherited from class java.awt.FlowLayout
CENTER, LEADING, LEFT, RIGHT, TRAILING
 
Constructor Summary
HWMSingleColumnLayout()
          Default Constructor
HWMSingleColumnLayout(int nJustification, boolean bRetainSize)
          Constructor
 
Method Summary
 void layoutContainer(java.awt.Container containerTarget)
          Called for laying out the children in the target container
 java.awt.Dimension minimumLayoutSize(java.awt.Container containerTarget)
          Returns the minimum dimensions for the target container
 java.awt.Dimension preferredLayoutSize(java.awt.Container containerTarget)
          Returns the preferred size for the targetContainer.
 
Methods inherited from class java.awt.FlowLayout
addLayoutComponent, getAlignment, getHgap, getVgap, removeLayoutComponent, setAlignment, setHgap, setVgap, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CENTER_JUSTIFIED

public static final int CENTER_JUSTIFIED
See Also:
Constant Field Values

LEFT_JUSTIFIED

public static final int LEFT_JUSTIFIED
See Also:
Constant Field Values
Constructor Detail

HWMSingleColumnLayout

public HWMSingleColumnLayout()
Default Constructor


HWMSingleColumnLayout

public HWMSingleColumnLayout(int nJustification,
                             boolean bRetainSize)
Constructor

Parameters:
nJustification - The way the components should be justified
bRetainSize - If false, all the children are set to the max size of a component. Else, each component will retain its preferred size.
Method Detail

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container containerTarget)
Returns the preferred size for the targetContainer. It will always be more than all the heights of the children

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Overrides:
preferredLayoutSize in class java.awt.FlowLayout
Parameters:
containerTarget - The container on which the components should be placed
Returns:
Dimension The preferred dimension for the container

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container containerTarget)
Returns the minimum dimensions for the target container

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Overrides:
minimumLayoutSize in class java.awt.FlowLayout
Parameters:
containerTarget - The container on which the components should be placed
Returns:
Dimension The minimum dimension for the container

layoutContainer

public void layoutContainer(java.awt.Container containerTarget)
Called for laying out the children in the target container

Specified by:
layoutContainer in interface java.awt.LayoutManager
Overrides:
layoutContainer in class java.awt.FlowLayout
Parameters:
containerTarget - The container on which the components should be placed