public class ThemesManager extends Object
| Constructor and Description |
|---|
ThemesManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
getResourceContent(String themeName,
String resPath)
Gets the content of the given resource.
|
void |
init()
Component Initializer
|
void |
render(Control control,
WebView view,
OutputStream os,
EventResult eventResult,
StateRenderProvider stateProv)
Renders only the given control to the given output stream.
|
void |
render(WebView view,
OutputStream os,
StateRenderProvider stateProv)
Renders the full web view to the given OutputStream.
|
void |
render(WebView view,
Writer writer,
StateRenderProvider stateProv)
Renders the full web view to the given OutputStream.
|
void |
renderStatic(WebView view,
Writer writer)
Renders the full web view to the given OutputStream.
|
boolean |
serveResource(String themeName,
String resPath,
HttpBridletResponse resp)
Renders the expected resource to the client.
|
public void init()
public void render(WebView view, Writer writer, StateRenderProvider stateProv)
view - The view to be render.writer - The writer to render the view.stateProv - The provider for the current state of the view.public void renderStatic(WebView view, Writer writer)
view - The view to be render.writer - The writer to render the view.public void render(WebView view, OutputStream os, StateRenderProvider stateProv)
view - The view to be render.os - The output stream to render the view.stateProv - The provider for the current state of the view.public void render(Control control, WebView view, OutputStream os, EventResult eventResult, StateRenderProvider stateProv)
control - The controlview - The view to be render.os - The output stream to render the view.eventResult - The result of the event invocation.stateProv - The provider for the current state of the view.public boolean serveResource(String themeName, String resPath, HttpBridletResponse resp) throws IOException
themeName - The name of the theme for the resource.resPath - The path of the resource within the theme.resp - The bridlet response to render the resource.IOException - If any I/O exception occurs.public String getResourceContent(String themeName, String resPath)
themeName - The name of the theme for the resource.resPath - The path of the resource within the theme.Copyright © 2015–2018 Bridje Framework. All rights reserved.