|
WUI : API |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.westofj.wui.Widget
org.westofj.wui.WMenuTree
Displays a menu as a static tree.
| Constructor Summary | |
WMenuTree()
Constructs a menu tree widget. |
|
WMenuTree(WMenu menu)
Constructs a menu tree widget to display the specified menu. |
|
| Method Summary | |
WMenu |
getMenu()
Returns the menu displayed by the menu tree widget. |
protected void |
handleParams(WRunner runner,
String[] values)
|
boolean |
isShowRoot()
Returns if the root of the menu tree is be displayed. |
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 tree. |
void |
setShowRoot(boolean showRoot)
Sets if the root of the menu tree is displayed. |
| 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 |
public WMenuTree()
public WMenuTree(WMenu menu)
menu - the menu to display.| Method Detail |
public WMenu getMenu()
public boolean isShowRoot()
public void render(WRunner runner,
WRenderContext context,
PrintWriter out)
throws WRenderException
Widget
render in class Widgetrunner - the current runner context.out - the output for the display.
WRenderExceptionpublic void setMenu(WMenu menu)
menu - the menu displayed by the menu tree.public void setShowRoot(boolean showRoot)
showRoot - true if the root of the menu tree is displayed, false otherwise.
protected void handleParams(WRunner runner,
String[] values)
handleParams in class Widget
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||