|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.westofj.wui.WRunner
A WRunner manages the application for a single client. An instance of a runner is created the first time the user visits the application and stored in the users session.
Constructor Summary | |
WRunner()
Constructs a runner. |
Method Summary | |
void |
addStyleSheet(String styleSheet)
Adds a style sheet to the runners collection of style sheets. |
void |
clear()
Empties the page stack of the runner. |
protected void |
destroy()
Called when the runner is destroyed. |
void |
enqueue(WEvent event)
|
void |
enqueue2(WEvent event)
|
void |
exit()
Instructs the controller to destroy the runner when the runner finishes its current event processing and render cycle. |
String |
findId(Widget widget)
Returns the registered identifier for the specified widget. |
WApplication |
getApplication()
Returns the WApplication instance associated with the runner. |
String |
getContextPath()
Returns the context path of the runner. |
WPage |
getCurrentPage()
Returns the page at the top of the page stack. |
String |
getDefaultStyleSheet()
Returns the default style sheet of the runner. |
Locale |
getLocale()
Returns the locale associated with the runner. |
HttpServletRequest |
getRequest()
Returns the active request instance. |
String |
getResourcePath(String path)
Returns a normalized URL for the specified path . |
HttpServletResponse |
getResponse()
Returns the active response instance. |
static WRunner |
getRunner()
Returns the current runner context. |
String |
getServletPath()
Returns the servlet path of the runner. |
Collection |
getStyleSheets()
Returns an unmodifiable collection of style sheets associated with the runner. |
String |
getTransactionId()
Returns the transaction identifier. |
protected void |
init()
Called when the runner is created. |
WPage |
popPage()
Removes a page from the top of the page stack. |
void |
pushPage(WPage page)
Pushes a WPage instance onto the top of the runners page stack. |
String |
registerWidget(Widget widget)
|
void |
removeStyleSheet(String styleSheet)
Removes a style sheet from the runners collection of style sheets. |
void |
renderResourcePath(PrintWriter out,
String path)
Renders a normalized URL for the specified path . |
void |
setCurrentPage(WPage page)
Replaces the page at the top of the page stack with the specified page. |
void |
setDefaultStyleSheet(String defaultStyleSheet)
Sets the default style sheet of the runner. |
void |
setLocale(Locale locale)
Sets the locale associated with the runner. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WRunner()
Method Detail |
protected void init()
protected void destroy()
public final WApplication getApplication()
WApplication
instance associated with the runner. Each
runner is associated with one application instance.
public final void pushPage(WPage page)
WPage
instance onto the top of the runners page stack. The
runner will render the page on the top of the stack to the client.
page
- public final WPage popPage()
public final WPage getCurrentPage()
public final void setCurrentPage(WPage page)
page
- the page to be placed at the top of the page stack.public final Locale getLocale()
public final void setLocale(Locale locale)
locale
- the locale associated with the runner.public final String getDefaultStyleSheet()
public final void setDefaultStyleSheet(String defaultStyleSheet)
defaultStyleSheet
- the default style sheet of the runner.public final void addStyleSheet(String styleSheet)
styleSheet
- the style sheet to add to the runner.public final void removeStyleSheet(String styleSheet)
styleSheet
- the style sheet to remove.public final Collection getStyleSheets()
public final void renderResourcePath(PrintWriter out, String path)
out
- path
- public final String getResourcePath(String path)
path
- the URL to normalize.
public void exit()
public final void clear()
public final String getServletPath()
public final String getContextPath()
public final String registerWidget(Widget widget)
public final String findId(Widget widget)
widget
- the widget for which to return the identifier.
public final String getTransactionId()
public final HttpServletRequest getRequest()
public final HttpServletResponse getResponse()
public void enqueue(WEvent event)
public void enqueue2(WEvent event)
public static WRunner getRunner()
|
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 |