java.lang.Object
com.flexstor.common.awt.MultiColumnLayout
- All Implemented Interfaces:
- java.awt.LayoutManager
- public class MultiColumnLayout
- extends java.lang.Object
- implements java.awt.LayoutManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nGap
private int nGap
nColumns
private int nColumns
nCompWidth
private int[] nCompWidth
components
private java.util.Hashtable components
MultiColumnLayout
public MultiColumnLayout(int gap)
MultiColumnLayout
public MultiColumnLayout(int gap,
int[] widths)
setWidths
public void setWidths(int[] widths)
addLayoutComponent
public void addLayoutComponent(java.lang.String sName,
java.awt.Component comp)
- Description copied from interface:
java.awt.LayoutManager
- Adds the specified component to the layout group.
- Specified by:
addLayoutComponent in interface java.awt.LayoutManager
calculateRowHeight
private int calculateRowHeight(int nRow)
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
- Description copied from interface:
java.awt.LayoutManager
- Removes the specified component from the layout group.
- Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
- Description copied from interface:
java.awt.LayoutManager
- Calculates the preferred size for this container, taking into account
the components it contains.
- Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
- Description copied from interface:
java.awt.LayoutManager
- Calculates the minimum size for this container, taking into account
the components it contains.
- Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
layoutContainer
public void layoutContainer(java.awt.Container parent)
- Description copied from interface:
java.awt.LayoutManager
- Lays out the components in the given container.
- Specified by:
layoutContainer in interface java.awt.LayoutManager