org.xulux.guilayer.swing.layouts
Class SwingFlowLayout

java.lang.Object
  extended by org.xulux.guilayer.swing.layouts.SwingLayoutAbstract
      extended by org.xulux.guilayer.swing.layouts.SwingFlowLayout
All Implemented Interfaces:
java.awt.LayoutManager, org.xulux.api.gui.IXuluxLayout

public class SwingFlowLayout
extends SwingLayoutAbstract
implements java.awt.LayoutManager

The flow layout. This is a wrapper around the swing flow layout

Version:
$Id: SwingFlowLayout.java,v 1.3 2005/02/18 09:10:32 mvdb Exp $
Author:
Martin van den Bemt

Field Summary
protected  java.awt.FlowLayout layout
           
 
Fields inherited from class org.xulux.guilayer.swing.layouts.SwingLayoutAbstract
parentWidget
 
Constructor Summary
SwingFlowLayout()
           
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 void addWidget(org.xulux.api.gui.IWidget widget)
          Not used
 void destroy()
           
 void layoutContainer(java.awt.Container target)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 void removeWidget(org.xulux.api.gui.IWidget widget)
          Not used
 void setParent(org.xulux.api.gui.IWidget widget)
          When setting the parent, we already create the layout
 void setWidgetsPreferredSize()
          Make sure the preferredsize is set
 
Methods inherited from class org.xulux.guilayer.swing.layouts.SwingLayoutAbstract
getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layout

protected java.awt.FlowLayout layout
Constructor Detail

SwingFlowLayout

public SwingFlowLayout()
Method Detail

addWidget

public void addWidget(org.xulux.api.gui.IWidget widget)
Not used

Specified by:
addWidget in interface org.xulux.api.gui.IXuluxLayout
See Also:
IXuluxLayout.addWidget(org.xulux.api.gui.IWidget)

removeWidget

public void removeWidget(org.xulux.api.gui.IWidget widget)
Not used

Specified by:
removeWidget in interface org.xulux.api.gui.IXuluxLayout
See Also:
IXuluxLayout.removeWidget(org.xulux.api.gui.IWidget)

destroy

public void destroy()
Specified by:
destroy in interface org.xulux.api.gui.IXuluxLayout
Specified by:
destroy in class SwingLayoutAbstract
See Also:
IXuluxLayout.destroy()

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager
See Also:
LayoutManager.addLayoutComponent(java.lang.String, java.awt.Component)

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
See Also:
LayoutManager.removeLayoutComponent(java.awt.Component)

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
See Also:
LayoutManager.preferredLayoutSize(java.awt.Container)

setWidgetsPreferredSize

public void setWidgetsPreferredSize()
Make sure the preferredsize is set


minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
See Also:
LayoutManager.minimumLayoutSize(java.awt.Container)

layoutContainer

public void layoutContainer(java.awt.Container target)
Specified by:
layoutContainer in interface java.awt.LayoutManager
See Also:
LayoutManager.layoutContainer(java.awt.Container)

setParent

public void setParent(org.xulux.api.gui.IWidget widget)
When setting the parent, we already create the layout

Specified by:
setParent in interface org.xulux.api.gui.IXuluxLayout
Overrides:
setParent in class SwingLayoutAbstract
See Also:
IXuluxLayout.setParent(org.xulux.api.gui.IWidget)


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.