WUI : API


org.westofj.wui
Class WBorderLayout

java.lang.Object
  extended byorg.westofj.wui.WBorderLayout
All Implemented Interfaces:
WMapLayoutManager

public class WBorderLayout
extends Object
implements WMapLayoutManager

A map layout manager that renders map container around a border.

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

Field Summary
static String CENTER
           
static String EAST
           
static String NORTH
           
static String SOUTH
           
static String WEST
           
 
Constructor Summary
WBorderLayout()
          Constructs a border layout.
 
Method Summary
 Widget getCenter(WMapContainer container)
          Returns the center widget.
 WHorizontalAlignment getCenterHorizontalAlignment()
           
 WVerticalAlignment getCenterVerticalAlignment()
           
 Widget getEast(WMapContainer container)
          Returns the east widget.
 WHorizontalAlignment getEastHorizontalAlignment()
           
 WVerticalAlignment getEastVerticalAlignment()
           
 Widget getNorth(WMapContainer container)
          Returns the north widget.
 WHorizontalAlignment getNorthHorizontalAlignment()
           
 WVerticalAlignment getNorthVerticalAlignment()
           
 Widget getSouth(WMapContainer container)
          Returns the south widget.
 WHorizontalAlignment getSouthHorizontalAlignment()
           
 WVerticalAlignment getSouthVerticalAlignment()
           
 Widget getWest(WMapContainer container)
          Returns the west widget.
 WHorizontalAlignment getWestHorizontalAlignment()
           
 WVerticalAlignment getWestVerticalAlignment()
           
 void render(WMapContainer container, WRunner runner, WRenderContext context, PrintWriter out)
          Renders the WMapContainer.
 void setCenterHorizontalAlignment(WHorizontalAlignment horizontalAlignment)
           
 void setCenterVerticalAlignment(WVerticalAlignment verticalAlignment)
           
 void setEastHorizontalAlignment(WHorizontalAlignment horizontalAlignment)
           
 void setEastVerticalAlignment(WVerticalAlignment verticalAlignment)
           
 void setNorthHorizontalAlignment(WHorizontalAlignment horizontalAlignment)
           
 void setNorthVerticalAlignment(WVerticalAlignment verticalAlignment)
           
 void setSouthHorizontalAlignment(WHorizontalAlignment horizontalAlignment)
           
 void setSouthVerticalAlignment(WVerticalAlignment verticalAlignment)
           
 void setWestHorizontalAlignment(WHorizontalAlignment horizontalAlignment)
           
 void setWestVerticalAlignment(WVerticalAlignment verticalAlignment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CENTER

public static String CENTER

EAST

public static String EAST

NORTH

public static String NORTH

SOUTH

public static String SOUTH

WEST

public static String WEST
Constructor Detail

WBorderLayout

public WBorderLayout()
Constructs a border layout.

Method Detail

getCenter

public Widget getCenter(WMapContainer container)
Returns the center widget.

Parameters:
container - the container containing the widgets to render.
Returns:
the center widget.

getCenterHorizontalAlignment

public WHorizontalAlignment getCenterHorizontalAlignment()
Returns:
Returns the centerHorizontalAlignment.

getCenterVerticalAlignment

public WVerticalAlignment getCenterVerticalAlignment()
Returns:
Returns the centerVerticalAlignment.

getEast

public Widget getEast(WMapContainer container)
Returns the east widget.

Parameters:
container - the container containing the widgets to render.
Returns:
the east widget.

getEastHorizontalAlignment

public WHorizontalAlignment getEastHorizontalAlignment()
Returns:
Returns the eastHorizontalAlignment.

getEastVerticalAlignment

public WVerticalAlignment getEastVerticalAlignment()
Returns:
Returns the eastVerticalAlignment.

getNorth

public Widget getNorth(WMapContainer container)
Returns the north widget.

Parameters:
container - the container containing the widgets to render.
Returns:
the north widget.

getNorthHorizontalAlignment

public WHorizontalAlignment getNorthHorizontalAlignment()
Returns:
Returns the northHorizontalAlignment.

getNorthVerticalAlignment

public WVerticalAlignment getNorthVerticalAlignment()
Returns:
Returns the northVerticalAlignment.

getSouth

public Widget getSouth(WMapContainer container)
Returns the south widget.

Parameters:
container - the container containing the widgets to render.
Returns:
the south widget.

getSouthHorizontalAlignment

public WHorizontalAlignment getSouthHorizontalAlignment()
Returns:
Returns the southHorizontalAlignment.

getSouthVerticalAlignment

public WVerticalAlignment getSouthVerticalAlignment()
Returns:
Returns the southVerticalAlignment.

getWest

public Widget getWest(WMapContainer container)
Returns the west widget.

Parameters:
container - the container containing the widgets to render.
Returns:
the west widget.

getWestHorizontalAlignment

public WHorizontalAlignment getWestHorizontalAlignment()
Returns:
Returns the westHorizontalAlignment.

getWestVerticalAlignment

public WVerticalAlignment getWestVerticalAlignment()
Returns:
Returns the westVerticalAlignment.

render

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

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

setCenterHorizontalAlignment

public void setCenterHorizontalAlignment(WHorizontalAlignment horizontalAlignment)

setCenterVerticalAlignment

public void setCenterVerticalAlignment(WVerticalAlignment verticalAlignment)

setEastHorizontalAlignment

public void setEastHorizontalAlignment(WHorizontalAlignment horizontalAlignment)

setEastVerticalAlignment

public void setEastVerticalAlignment(WVerticalAlignment verticalAlignment)

setNorthHorizontalAlignment

public void setNorthHorizontalAlignment(WHorizontalAlignment horizontalAlignment)

setNorthVerticalAlignment

public void setNorthVerticalAlignment(WVerticalAlignment verticalAlignment)

setSouthHorizontalAlignment

public void setSouthHorizontalAlignment(WHorizontalAlignment horizontalAlignment)

setSouthVerticalAlignment

public void setSouthVerticalAlignment(WVerticalAlignment verticalAlignment)

setWestHorizontalAlignment

public void setWestHorizontalAlignment(WHorizontalAlignment horizontalAlignment)

setWestVerticalAlignment

public void setWestVerticalAlignment(WVerticalAlignment verticalAlignment)

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