WUI : API


org.westofj.wui
Class WHorizontalLayout

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

public final class WHorizontalLayout
extends Object
implements WLayoutManager

Arranges Widgetcomponents in a WContainerin a horizontal row.

Version:
$Revision: 1.9 $, $Date: 2004/03/22 00:34:01 $
Author:
bill

Constructor Summary
WHorizontalLayout()
          Constructs a horizontal 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 column)
          Returns the horizontal alignment of the column.
 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 column, WHorizontalAlignment alignment)
          Sets the horizontal alignment of the column to the specified alignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WHorizontalLayout

public WHorizontalLayout()
Constructs a horizontal 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 column)
Returns the horizontal alignment of the column.

Returns:
the horizontal alignment of the column.

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 column,
                                   WHorizontalAlignment alignment)
Sets the horizontal alignment of the column 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.