|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.westofj.wui.WPage
The top level of a widget hierarchy.
Constructor Summary | |
WPage()
Constructs a page. |
|
WPage(String title)
Constructs a page with the specified title. |
|
WPage(WDisplayable title)
Constructs a page with the specified title. |
Method Summary | |
WRenderContext |
getContext()
Returns the render context of the page. |
int |
getMargin()
Returns the margin scalar value; |
WLengthUnit |
getMarginUnit()
Returns the margin unit type. |
WRunner |
getRunner()
Returns the current runner context. |
WDisplayable |
getTitle()
Returns the title of the page. |
Widget |
getWidget()
Returns the root widget of the widget hierarchy. |
void |
render(WRunner runner,
PrintWriter out)
Renders the page to the display. |
void |
setContext(WRenderContext context)
Sets the render context of the page. |
void |
setMargin(int margin)
Sets the margin scalar value. |
void |
setMargin(int margin,
WLengthUnit marginUnit)
Sets the margin. |
void |
setMarginUnit(WLengthUnit marginUnit)
Sets the margin unit type. |
void |
setTitle(String title)
Sets the title of the page. |
void |
setTitle(WDisplayable title)
Sets the title of the page. |
void |
setWidget(Widget widget)
Sets the root widget of the widget hierarchy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WPage()
public WPage(String title)
title
- the title of the page.public WPage(WDisplayable title)
title
- the title of the page.Method Detail |
public WRenderContext getContext()
public void setContext(WRenderContext context)
context
- The context to set.public int getMargin()
public WLengthUnit getMarginUnit()
public final WRunner getRunner()
public WDisplayable getTitle()
public Widget getWidget()
public void render(WRunner runner, PrintWriter out) throws WRenderException
runner
- the current runner context.out
- the output print writer.
WRenderException
public void setMargin(int margin)
margin
- the margin scalar value.public void setMargin(int margin, WLengthUnit marginUnit)
margin
- the margin scalar value.marginUnit
- the margin unit type.public void setMarginUnit(WLengthUnit marginUnit)
public void setTitle(String title)
title
- the title of the page.public void setTitle(WDisplayable title)
title
- the title of the page.public void setWidget(Widget widget)
widget
- the root widget of the widget hierarchy.
|
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 |