WUI : API


org.westofj.wui
Class WVerticalLayout

java.lang.Object
  extended byorg.westofj.wui.WVerticalLayout
All Implemented Interfaces:
WLayoutManager

public final class WVerticalLayout
extends Object
implements WLayoutManager

Arranges Widgetcomponents in a WContainerin a vertical column.

Version:
$Revision: 1.7 $, $Date: 2004/03/14 21:27:46 $
Author:
bill

Constructor Summary
WVerticalLayout()
          Constructs a vertical layout manager.
 
Method Summary
 WHorizontalAlignment getDefaultHorizontalAlignment()
          Returns the horizontal alignment of the layout.
 WVerticalAlignment getDefaultVerticalAlignment()
          Returns the vertical alignment of the layout.
 WHorizontalAlignment getHorizontalAlignment(int row)
          Returns the horizontal alignment of the row.
 void render(WContainer container, WRunner runner, WRenderContext context, PrintWriter out)
          Renders the WContainer.
 void setDefaultHorizontalAlignment(WHorizontalAlignment alignment)
          Sets the horizontal alignment of the layout to the specified alignment.
 void setDefaultVerticalAlignment(WVerticalAlignment alignment)
          Sets the vertical alignment of the layout to the specified alignment.
 void setHorizontalAlignment(int row, WHorizontalAlignment alignment)
          Sets the horizontal alignment of the row to the specified alignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WVerticalLayout

public WVerticalLayout()
Constructs a vertical layout manager.

Method Detail

getDefaultHorizontalAlignment

public WHorizontalAlignment getDefaultHorizontalAlignment()
Returns the horizontal alignment of the layout.

Returns:
the horizontal alignment of the layout.

getDefaultVerticalAlignment

public WVerticalAlignment getDefaultVerticalAlignment()
Returns the vertical alignment of the layout.

Returns:
the vertical alignment of the layout.

getHorizontalAlignment

public WHorizontalAlignment getHorizontalAlignment(int row)
Returns the horizontal alignment of the row.

Returns:
the horizontal alignment of the row.

render

public final void render(WContainer container,
                         WRunner runner,
                         WRenderContext context,
                         PrintWriter out)
                  throws WRenderException
Description copied from interface: WLayoutManager
Renders the WContainer.

Specified by:
render in interface WLayoutManager
Parameters:
container - the container to render.
runner - the current runner context.
out - the PrintWriterto which to render the WContainerinstance.
Throws:
WRenderException

setDefaultHorizontalAlignment

public void setDefaultHorizontalAlignment(WHorizontalAlignment alignment)
Sets the horizontal alignment of the layout to the specified alignment. A value of null will reset the value of the alignment to the default.

Parameters:
alignment - the horizontal alignment of the layout.

setDefaultVerticalAlignment

public void setDefaultVerticalAlignment(WVerticalAlignment alignment)
Sets the vertical alignment of the layout to the specified alignment. A value of null will reset the value of the alignment to the default.

Parameters:
alignment - the vertical alignment of the layout.

setHorizontalAlignment

public void setHorizontalAlignment(int row,
                                   WHorizontalAlignment alignment)
Sets the horizontal alignment of the row to the specified alignment. A value of null will reset the value of the alignment to the default.

Parameters:
alignment - the horizontal alignment of the layout.

Copyright (c) 2003 West of J - All rights reserved.