|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.westofj.wui.WHtmlLayout
An HTML layout manager renders the a container by replacing special tags in an HTML template with the HTML generated by the widgets.
Constructor Summary | |
WHtmlLayout(String html)
Constructs an HTML layout manager from String |
Method Summary | |
static WHtmlLayout |
newFromFile(File file)
Constructs an HTML layout manager from a file source. |
static WHtmlLayout |
newFromFile(String path)
Constructs an HTML layout manager from a file source. |
static WHtmlLayout |
newFromReader(Reader reader)
Constructs an HTML layout manager from a Reader source. |
static WHtmlLayout |
newFromResource(String resource)
Constructs an HTML layout manager from a resource on the classpath. |
static WHtmlLayout |
newFromString(String html)
Constructs an HTML layout manager from a String . |
void |
render(WMapContainer container,
WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the WMapContainer . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WHtmlLayout(String html)
String
html
- the String
from which to read the layout specification.Method Detail |
public static WHtmlLayout newFromFile(File file) throws IOException
file
- the file from which to read the layout specification.
IOException
public static WHtmlLayout newFromFile(String path) throws IOException
path
- the file from which to read the layout specification.
IOException
public static WHtmlLayout newFromReader(Reader reader) throws IOException
Reader
source.
reader
- the reader from which to read the layout specification.
IOException
public static WHtmlLayout newFromResource(String resource) throws IOException
resource
- the resource from which to read the layout specification.
IOException
public static WHtmlLayout newFromString(String html)
String
.
html
- the String
from which to read the layout specification.
public final void render(WMapContainer container, WRunner runner, WRenderContext context, PrintWriter out) throws WRenderException
WMapLayoutManager
WMapContainer
.
render
in interface WMapLayoutManager
container
- the container to render.runner
- the current runner context.out
- the PrintWriter
to which to render the
WMapContainer
instance.
WRenderException
|
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 |