use of com.revolsys.ui.html.view.TabElementContainer in project com.revolsys.open by revolsys.
the class HtmlUiBuilder method newDataTableHandler.
public Object newDataTableHandler(final HttpServletRequest request, final String pageName, final Map<String, Object> parameters, final Callable<Collection<? extends Object>> rowsCallable) {
parameters.put("serverSide", false);
if (isDataTableCallback(request)) {
try {
final Collection<? extends Object> rows = rowsCallable.call();
return newDataTableMap(request, rows, pageName);
} catch (final Exception e) {
throw new RuntimeException("Unable to get rows", e);
}
} else {
final TabElementContainer tabs = new TabElementContainer();
addTabDataTable(tabs, this, pageName, parameters);
return tabs;
}
}
use of com.revolsys.ui.html.view.TabElementContainer in project com.revolsys.open by revolsys.
the class RecordHtmlUiBuilder method newDataTableHandler.
public Object newDataTableHandler(final HttpServletRequest request, final String pageName, final Map<String, Object> parameters) {
if (isDataTableCallback(request)) {
return newDataTableMap(request, pageName, parameters);
} else {
final TabElementContainer tabs = new TabElementContainer();
addTabDataTable(tabs, this, pageName, parameters);
return tabs;
}
}
Aggregations