|
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.WInclude
Includes a resource external to the wui. If the specified URL starts
with "resource:" the resource is included from the classpath. Otherwise
the resource is included by utilizing a RequestDispatcher
to perform an include on the specified URL.
Constructor Summary | |
WInclude()
Constructs an include widget. |
|
WInclude(String url)
Constructs an include widget that includes the resource identified by the specified URL. |
Method Summary | |
static void |
addProtocolHandler(String protocol,
WIncludeProtocolHandler handler)
|
String |
getUrl()
Returns the URL of the resource to be included. |
void |
render(WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the widget to the display. |
void |
setUrl(String url)
Sets the URL that refers to the resource to be included. |
Methods inherited from class org.westofj.wui.Widget |
addChangeListener, getRunner, handleNoParams, handleParams, hasChangeListeners, removeChangeListener, stateChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WInclude()
public WInclude(String url)
url
- the URL that refers to the resource to be included.Method Detail |
public static void addProtocolHandler(String protocol, WIncludeProtocolHandler handler)
public void render(WRunner runner, WRenderContext context, PrintWriter out) throws WRenderException
Widget
render
in class Widget
runner
- the current runner context.out
- the output for the display.
WRenderException
public String getUrl()
public void setUrl(String url)
url
- The URL that refers to the resource to be included.
|
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 |