net.sf.mmapps.applications.developer
Class TableLayout

java.lang.Object
  extended bynet.sf.mmapps.applications.developer.TableLayout
All Implemented Interfaces:
java.awt.LayoutManager

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

table layout will act the same as GridLayout width two differances the size of the differen rows is variable

  ------------------------------------
  | label | content                  |
  ------------------------------------
  | label | the large content        |
  |       | component                |
  ------------------------------------
 
the size depends on the size of the components

Version:
$Id: TableLayout.java,v 1.2 2004/07/16 20:55:48 keesj Exp $
Author:
Kees Jongenburger

Constructor Summary
TableLayout(int width)
           
 
Method Summary
 void addLayoutComponent(java.lang.String data, java.awt.Component component)
           
 java.awt.Dimension getSize(java.awt.Container container)
           
 void layoutContainer(java.awt.Container container)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container container)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container container)
           
 void removeLayoutComponent(java.awt.Component component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableLayout

public TableLayout(int width)
Parameters:
width - width in "pieces"
Method Detail

layoutContainer

public void layoutContainer(java.awt.Container container)
Specified by:
layoutContainer in interface java.awt.LayoutManager

getSize

public java.awt.Dimension getSize(java.awt.Container container)

addLayoutComponent

public void addLayoutComponent(java.lang.String data,
                               java.awt.Component component)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component component)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container container)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container container)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager


Copyright © 2003-2004 SourceForge. All Rights Reserved.