public class ThemesManager extends Object
| Constructor and Description |
|---|
ThemesManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
serveResource(String themeName,
String resPath,
HttpBridletResponse resp)
Renders the expected resource to the client.
|
@PostConstruct public void init()
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.Copyright © 2015–2017 Bridje Framework. All rights reserved.