|
WUI : API |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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.
IOExceptionpublic 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
WMapLayoutManagerWMapContainer.
render in interface WMapLayoutManagercontainer - the container to render.runner - the current runner context.out - the PrintWriterto which to render the
WMapContainerinstance.
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 | ||||||||||