WUI : API


org.westofj.wui
Class WMenuBar

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WMenuBar

public class WMenuBar
extends Widget

Renders a menu as a horizontal bar.

Version:
$Revision: 1.5 $, $Date: 2004/05/03 00:49:24 $
Author:
bill

Constructor Summary
WMenuBar()
          Constructs a menu bar widget.
WMenuBar(WMenu menu)
          Constructs a menu bar widget to display the specified menu.
 
Method Summary
 WMenu getMenu()
          Returns the menu displayed by the menu bar widget.
protected  void handleParams(WRunner runner, String[] values)
           
 void render(WRunner runner, WRenderContext context, PrintWriter out)
          Renders the widget to the display.
 void setMenu(WMenu menu)
          Sets the menu displayed by the menu bar.
 
Methods inherited from class org.westofj.wui.Widget
addChangeListener, getRunner, handleNoParams, hasChangeListeners, removeChangeListener, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMenuBar

public WMenuBar()
Constructs a menu bar widget.


WMenuBar

public WMenuBar(WMenu menu)
Constructs a menu bar widget to display the specified menu.

Parameters:
menu - the menu to display.
Method Detail

getMenu

public WMenu getMenu()
Returns the menu displayed by the menu bar widget.

Returns:
WMenu the menu displayed by the menu bar widget.

render

public void render(WRunner runner,
                   WRenderContext context,
                   PrintWriter out)
            throws WRenderException
Description copied from class: Widget
Renders the widget to the display.

Specified by:
render in class Widget
Parameters:
runner - the current runner context.
out - the output for the display.
Throws:
WRenderException

setMenu

public void setMenu(WMenu menu)
Sets the menu displayed by the menu bar.

Parameters:
menu - the menu displayed by the menu bar.

handleParams

protected void handleParams(WRunner runner,
                            String[] values)
Overrides:
handleParams in class Widget

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