|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.components.Component
org.olat.core.gui.components.Container
org.olat.core.gui.components.velocity.VelocityContainer
public class VelocityContainer
Description:
| Field Summary | |
|---|---|
static java.lang.String |
COMMAND_ID
Comment for COMMAND_ID |
| Constructor Summary | |
|---|---|
VelocityContainer(java.lang.String componentName,
java.lang.Class baseClass,
java.lang.String pageName,
Translator trans,
Controller listeningController)
Constructor to create a VC container from a given base class and the page name |
|
VelocityContainer(java.lang.String componentName,
java.lang.String pagePath,
Translator trans,
Controller listeningController)
Constructor to create a VC container from a given file path |
|
| Method Summary | |
|---|---|
void |
contextPut(java.lang.String key,
java.lang.Object value)
Add a variable to the velocity context. |
void |
contextRemove(java.lang.String key)
Remove a variable from the velocity context |
org.apache.velocity.context.Context |
getContext()
|
java.lang.String |
getExtendedDebugInfo()
|
ComponentRenderer |
getHTMLRendererSingleton()
|
java.lang.String |
getPage()
|
void |
setPage(java.lang.String page)
Deprecated. Rather use panels to swap views |
void |
setTranslator(Translator newTranslator)
Sets the translator for this VC. |
| Methods inherited from class org.olat.core.gui.components.Container |
|---|
getComponent, getComponents, put, put, remove |
| Methods inherited from class org.olat.core.gui.components.Component |
|---|
addListener, debuginfoGetListeners, dispatchRequest, getAndClearLatestFiredEvent, getComponentName, getDispatchID, getLatestDispatchedController, getListenerInfo, getParent, getSpanAsDomReplaceable, getTimestamp, getTranslator, isDirty, isDirtyForUser, isDomReplaceable, isEnabled, isVisible, setDirty, setDomReplaceable, setEnabled, setSpanAsDomReplaceable, setVisible, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COMMAND_ID
COMMAND_ID
| Constructor Detail |
|---|
public VelocityContainer(java.lang.String componentName,
java.lang.String pagePath,
Translator trans,
Controller listeningController)
componentName - Name of component, displayed in debug modepagePath - Full path to velocity pagetrans - Translator to be usedlisteningController - the listenenController; may be null if the
caller has no need to register for events
public VelocityContainer(java.lang.String componentName,
java.lang.Class baseClass,
java.lang.String pageName,
Translator trans,
Controller listeningController)
componentName - Name of component, displayed in debug modebaseClass - pageName - page name that is available within this base class packagetrans - Translator to be usedlisteningController - the listenenController; may be null if the
caller has no need to register for events| Method Detail |
|---|
public org.apache.velocity.context.Context getContext()
public void contextPut(java.lang.String key,
java.lang.Object value)
key - value - public void contextRemove(java.lang.String key)
key - public java.lang.String getPage()
public void setPage(java.lang.String page)
page - The page to setpublic java.lang.String getExtendedDebugInfo()
getExtendedDebugInfo in class ContainerContainer.getExtendedDebugInfo()public ComponentRenderer getHTMLRendererSingleton()
getHTMLRendererSingleton in class Componentpublic void setTranslator(Translator newTranslator)
put(component) will set the current translator on the component if the component itself does not yet have a translator set. The translator of the components can't be modified afterwards.
This method overrides the protected setTranslator() method from the component interface and make it public to support workflows where the velocity container is created in the constructor (e.g. FormBasicController) but the translator might be modified later (using some special fallback translator or such)
translator - The translator to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||