org.nakedobjects.viewer.lightweight.util
Class FlowLayout

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.util.FlowLayout
All Implemented Interfaces:
Layout

public class FlowLayout
extends java.lang.Object
implements Layout

The flow layout gets the targets required width, and layouts its components across the container, wrapping onto the next row when necessary.


Constructor Summary
FlowLayout(int maxWidth, int minHeight)
           
 
Method Summary
 void layout(LayoutTarget target)
           
 Size requiredSize(LayoutTarget target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowLayout

public FlowLayout(int maxWidth,
                  int minHeight)
Method Detail

layout

public void layout(LayoutTarget target)
Specified by:
layout in interface Layout

requiredSize

public Size requiredSize(LayoutTarget target)
Specified by:
requiredSize in interface Layout