use of org.olat.modules.portfolio.ui.shared.SharedPageRow in project OpenOLAT by OpenOLAT.
the class SharedPageStatusCellRenderer method render.
@Override
public void render(Renderer renderer, StringOutput target, Object cellValue, int row, FlexiTableComponent source, URLBuilder ubu, Translator trans) {
if (cellValue instanceof SharedPageRow) {
SharedPageRow pageRow = (SharedPageRow) cellValue;
PageStatus status = pageRow.getStatus();
PageUserStatus userStatus = pageRow.getUserStatus();
render(target, status, userStatus);
} else if (cellValue instanceof PortfolioElementRow) {
PortfolioElementRow elementRow = (PortfolioElementRow) cellValue;
if (elementRow.getPage() != null) {
PageStatus status = elementRow.getPageStatus();
PageUserStatus userStatus = elementRow.getUserInfosStatus();
render(target, status, userStatus);
}
}
}
use of org.olat.modules.portfolio.ui.shared.SharedPageRow in project OpenOLAT by OpenOLAT.
the class PageTitleCellRenderer method render.
@Override
public void render(Renderer renderer, StringOutput target, Object cellValue, int row, FlexiTableComponent source, URLBuilder ubu, Translator translator) {
FlexiTableElementImpl tEl = source.getFlexiTableElement();
Object rowValue = tEl.getTableDataModel().getObject(row);
if (rowValue instanceof SharedPageRow) {
SharedPageRow page = (SharedPageRow) rowValue;
target.append(StringHelper.escapeHtml(page.getPageTitle()));
}
}
use of org.olat.modules.portfolio.ui.shared.SharedPageRow in project openolat by klemens.
the class SharedPageStatusCellRenderer method render.
@Override
public void render(Renderer renderer, StringOutput target, Object cellValue, int row, FlexiTableComponent source, URLBuilder ubu, Translator trans) {
if (cellValue instanceof SharedPageRow) {
SharedPageRow pageRow = (SharedPageRow) cellValue;
PageStatus status = pageRow.getStatus();
PageUserStatus userStatus = pageRow.getUserStatus();
render(target, status, userStatus);
} else if (cellValue instanceof PortfolioElementRow) {
PortfolioElementRow elementRow = (PortfolioElementRow) cellValue;
if (elementRow.getPage() != null) {
PageStatus status = elementRow.getPageStatus();
PageUserStatus userStatus = elementRow.getUserInfosStatus();
render(target, status, userStatus);
}
}
}
use of org.olat.modules.portfolio.ui.shared.SharedPageRow in project openolat by klemens.
the class PageTitleCellRenderer method render.
@Override
public void render(Renderer renderer, StringOutput target, Object cellValue, int row, FlexiTableComponent source, URLBuilder ubu, Translator translator) {
FlexiTableElementImpl tEl = source.getFlexiTableElement();
Object rowValue = tEl.getTableDataModel().getObject(row);
if (rowValue instanceof SharedPageRow) {
SharedPageRow page = (SharedPageRow) rowValue;
target.append(StringHelper.escapeHtml(page.getPageTitle()));
}
}
Aggregations