|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.render.Renderer
public class Renderer
| Method Summary | |
|---|---|
Component |
findComponent(java.lang.String componentName)
searches the rootcomponent of this renderer and all children recursively for a component by its name |
static java.lang.String |
getComponentPrefix(Component comp)
returns e.g. |
GlobalSettings |
getGlobalSettings()
|
static Renderer |
getInstance(Container renderContainer,
Translator translator,
URLBuilder ubu,
RenderResult renderResult,
GlobalSettings globalSettings)
|
Translator |
getTranslator()
|
java.lang.String |
getUriPrefix()
|
URLBuilder |
getUrlBuilder()
|
StringOutput |
render(Component source)
used by window.java for top rendering or subtree rendering |
StringOutput |
render(Component source,
java.lang.String[] args)
used by velocityrenderdecorator and method render(component) above |
void |
render(StringOutput sb,
Component source,
java.lang.String[] args)
used by the renderer, and also by the panel and tabbedpane renderer to delegate rendering |
void |
renderBodyOnLoadJSFunctionCall(StringOutput sb,
Component source)
to be called by VelocityRenderDecorator only |
void |
renderBodyOnLoadJSFunctionCall(StringOutput sb,
Component source,
RenderingState rstate)
renders the HTMLHeader-Part which this component comp needs. |
void |
renderCommandURI(StringOutput target,
java.lang.String command)
please do not use anymore! |
void |
renderHeaderIncludes(StringOutput sb,
Component source)
|
void |
renderHeaderIncludes(StringOutput sb,
Component source,
RenderingState rstate)
|
static void |
renderNormalURI(StringOutput target,
java.lang.String URI)
Note: use only rarely - e.g. |
static void |
renderStaticURI(StringOutput target,
java.lang.String URI)
Note: use only rarely - all non-generic js libs and css classes should be included using JsAndCssComponent, and all images should be referenced with the css background-image capability. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Renderer getInstance(Container renderContainer,
Translator translator,
URLBuilder ubu,
RenderResult renderResult,
GlobalSettings globalSettings)
renderContainer - is used as a starting node for searching a componenttranslator - the translator to be used to translateubu - renderResult - globalSettings -
public static void renderNormalURI(StringOutput target,
java.lang.String URI)
For static references (e.g. images which cannot be delivered using css): use renderStaticURI
target - URI - e.g. myspecialdispatcher/somestuff
public static void renderStaticURI(StringOutput target,
java.lang.String URI)
target - URI - e.g. img/specialimagenotpossiblewithcss.jpg
public void renderCommandURI(StringOutput target,
java.lang.String command)
target - command -
public void renderBodyOnLoadJSFunctionCall(StringOutput sb,
Component source,
RenderingState rstate)
sb - source - org.olat.core.gui.render.ui.ComponentRenderer
public void renderBodyOnLoadJSFunctionCall(StringOutput sb,
Component source)
sb - source -
public void renderHeaderIncludes(StringOutput sb,
Component source,
RenderingState rstate)
sb - source -
public void renderHeaderIncludes(StringOutput sb,
Component source)
public Component findComponent(java.lang.String componentName)
componentName -
public StringOutput render(Component source)
source -
public StringOutput render(Component source,
java.lang.String[] args)
source - args -
public void render(StringOutput sb,
Component source,
java.lang.String[] args)
sb - source - args - public static java.lang.String getComponentPrefix(Component comp)
comp - the component to get the idpublic URLBuilder getUrlBuilder()
public Translator getTranslator()
public GlobalSettings getGlobalSettings()
public java.lang.String getUriPrefix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||