use of org.olat.modules.portfolio.ui.editor.PageRunComponent in project OpenOLAT by OpenOLAT.
the class TitleHandler method getContent.
@Override
public PageRunElement getContent(UserRequest ureq, WindowControl wControl, PageElement element, PageElementRenderingHints hints) {
String content = "";
if (element instanceof Title) {
content = ((Title) element).getContent();
}
Component cmp = TextFactory.createTextComponentFromString("title_" + idGenerator.incrementAndGet(), content, null, false, null);
return new PageRunComponent(cmp);
}
use of org.olat.modules.portfolio.ui.editor.PageRunComponent in project openolat by klemens.
the class TitlePageElementHandler method getContent.
@Override
public PageRunElement getContent(UserRequest ureq, WindowControl wControl, PageElement element, PageElementRenderingHints options) {
String content = "";
if (element instanceof TitlePart) {
content = ((TitlePart) element).getContent();
}
TextComponent cmp = TextFactory.createTextComponentFromString("title_" + idGenerator.incrementAndGet(), content, null, false, null);
return new PageRunComponent(cmp);
}
use of org.olat.modules.portfolio.ui.editor.PageRunComponent 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.portfolio.ui.editor.PageRunComponent in project OpenOLAT by OpenOLAT.
the class TitlePageElementHandler method getContent.
@Override
public PageRunElement getContent(UserRequest ureq, WindowControl wControl, PageElement element, PageElementRenderingHints options) {
String content = "";
if (element instanceof TitlePart) {
content = ((TitlePart) element).getContent();
}
TextComponent cmp = TextFactory.createTextComponentFromString("title_" + idGenerator.incrementAndGet(), content, null, false, null);
return new PageRunComponent(cmp);
}
use of org.olat.modules.portfolio.ui.editor.PageRunComponent in project OpenOLAT by OpenOLAT.
the class HTMLRawPageElementHandler method getContent.
@Override
public PageRunElement getContent(UserRequest ureq, WindowControl wControl, PageElement element, PageElementRenderingHints options) {
String content = "";
if (element instanceof HTMLPart) {
content = ((HTMLPart) element).getContent();
content = Formatter.formatLatexFormulas(content);
}
TextComponent cmp = TextFactory.createTextComponentFromString("htmlRawCmp" + CodeHelper.getRAMUniqueID(), content, null, false, null);
cmp.setElementCssClass("o_pf_html_raw");
return new PageRunComponent(cmp);
}
Aggregations