use of org.olat.core.util.ConsumableBoolean in project openolat by klemens.
the class MessageListController method scrollTo.
public void scrollTo(MessageRef ref) {
if (ref != null && (thread == null || !thread.getKey().equals(ref.getKey()))) {
mainVC.contextPut("goToMessage", new ConsumableBoolean(true));
mainVC.contextPut("goToMessageId", ref.getKey());
}
}
use of org.olat.core.util.ConsumableBoolean in project OpenOLAT by OpenOLAT.
the class UserCommentsController method scrollTo.
public void scrollTo(Long commentId) {
userCommentsVC.contextPut("goToComment", new ConsumableBoolean(true));
userCommentsVC.contextPut("goToCommentId", commentId);
}
use of org.olat.core.util.ConsumableBoolean in project OpenOLAT by OpenOLAT.
the class MultipleSelectionElementImpl method evalFormRequest.
@Override
public void evalFormRequest(UserRequest ureq) {
Form form = getRootForm();
if (isAjaxOnly()) {
String dispatchuri = form.getRequestParameter("dispatchuri");
if (dispatchuri != null && dispatchuri.equals(component.getFormDispatchId())) {
String key = form.getRequestParameter("achkbox");
String checked = form.getRequestParameter("checked");
if ("true".equals(checked)) {
selected.add(key);
} else if ("false".equals(checked)) {
selected.remove(key);
}
}
} else if (isEnabled()) {
// which one was selected?
// selection change?
// mark corresponding comps as dirty
String[] reqVals = form.getRequestParameterValues(getName());
if (reqVals == null) {
// selection box?
reqVals = form.getRequestParameterValues(getName() + "_SELBOX");
}
//
selected = new HashSet<>();
if (reqVals != null) {
for (int i = 0; i < reqVals.length; i++) {
selected.add(reqVals[i]);
}
}
}
String dispatchuri = form.getRequestParameter("dispatchuri");
if (dispatchuri != null && dispatchuri.equals(component.getFormDispatchId())) {
formRequestEval = new ConsumableBoolean(true);
}
}
use of org.olat.core.util.ConsumableBoolean in project OpenOLAT by OpenOLAT.
the class Mattext method renderOpenXML.
@Override
public void renderOpenXML(OpenXMLDocument document, RenderInstructions ri) {
ConsumableBoolean br = (ConsumableBoolean) ri.get(RenderInstructions.KEY_BREAK_DELAY);
boolean newParagraph = br == null || !br.isTrue();
document.appendHtmlText(content, newParagraph);
}
use of org.olat.core.util.ConsumableBoolean in project openolat by klemens.
the class UserCommentsController method scrollTo.
public void scrollTo(Long commentId) {
userCommentsVC.contextPut("goToComment", new ConsumableBoolean(true));
userCommentsVC.contextPut("goToCommentId", commentId);
}
Aggregations