use of org.olat.modules.forms.model.xml.HTMLRaw in project OpenOLAT by OpenOLAT.
the class HTMLRawHandler method createPageElement.
@Override
public PageElement createPageElement(Locale locale) {
Translator translator = Util.createPackageTranslator(HTMLRawEditorController.class, locale);
String content = translator.translate("raw.example");
HTMLRaw part = new HTMLRaw();
part.setId(UUID.randomUUID().toString());
part.setContent(content);
return part;
}
use of org.olat.modules.forms.model.xml.HTMLRaw in project OpenOLAT by OpenOLAT.
the class HTMLRawHandler method getContent.
@Override
public PageRunElement getContent(UserRequest ureq, WindowControl wControl, PageElement element, PageElementRenderingHints hints) {
String content = "";
if (element instanceof HTMLRaw) {
content = ((HTMLRaw) element).getContent();
}
Component cmp = TextFactory.createTextComponentFromString("htmlraw_" + CodeHelper.getRAMUniqueID(), content, null, false, null);
return new PageRunComponent(cmp);
}
use of org.olat.modules.forms.model.xml.HTMLRaw in project openolat by klemens.
the class HTMLRawHandler method createPageElement.
@Override
public PageElement createPageElement(Locale locale) {
Translator translator = Util.createPackageTranslator(HTMLRawEditorController.class, locale);
String content = translator.translate("raw.example");
HTMLRaw part = new HTMLRaw();
part.setId(UUID.randomUUID().toString());
part.setContent(content);
return part;
}
use of org.olat.modules.forms.model.xml.HTMLRaw in project openolat by klemens.
the class HTMLRawHandler method getContent.
@Override
public PageRunElement getContent(UserRequest ureq, WindowControl wControl, PageElement element, PageElementRenderingHints hints) {
String content = "";
if (element instanceof HTMLRaw) {
content = ((HTMLRaw) element).getContent();
}
Component cmp = TextFactory.createTextComponentFromString("htmlraw_" + CodeHelper.getRAMUniqueID(), content, null, false, null);
return new PageRunComponent(cmp);
}
Aggregations