use of org.olat.core.id.context.StateMapped in project openolat by klemens.
the class OrdersSearchForm method setStateEntry.
public boolean setStateEntry(StateEntry state) {
boolean changed = false;
if (state instanceof StateMapped) {
StateMapped map = (StateMapped) state;
String refNo = map.getDelegate().get("refNo");
if (StringHelper.containsNonWhitespace(refNo)) {
refNoEl.setValue(refNo);
changed = true;
}
String fromStr = map.getDelegate().get("from");
if (StringHelper.containsNonWhitespace(fromStr)) {
fromEl.setValue(fromStr);
changed = true;
}
String toStr = map.getDelegate().get("to");
if (StringHelper.containsNonWhitespace(toStr)) {
toEl.setValue(toStr);
changed = true;
}
}
return changed;
}
use of org.olat.core.id.context.StateMapped in project openolat by klemens.
the class UsermanagerUserSearchForm method getStateEntry.
protected StateMapped getStateEntry() {
StateMapped state = new StateMapped();
if (items != null) {
for (Map.Entry<String, FormItem> itemEntry : items.entrySet()) {
String key = itemEntry.getKey();
FormItem f = itemEntry.getValue();
if (f instanceof TextElement) {
state.getDelegate().put(key, ((TextElement) f).getValue());
}
}
}
if (auth.isMultiselect()) {
// auth.
}
if (roles.isMultiselect()) {
//
}
if (status.isOneSelected()) {
//
}
return state;
}
Aggregations