use of org.uberfire.ext.widgets.common.client.tables.PopoverTextCell in project kie-wb-common by kiegroup.
the class ReassignmentWidgetViewImpl method initUsers.
private void initUsers() {
PopoverTextCell toUsers = new PopoverTextCell();
Column<ReassignmentRow, String> toUsersColumn = new Column<ReassignmentRow, String>(toUsers) {
@Override
public String getValue(ReassignmentRow object) {
if (object.getUsers() != null) {
return object.getUsers().stream().collect(Collectors.joining(","));
} else {
return "";
}
}
};
toUsersColumn.setSortable(false);
table.addColumn(toUsersColumn, presenter.getToUsersLabel());
table.setColumnWidth(toUsersColumn, 250, Style.Unit.PX);
}
use of org.uberfire.ext.widgets.common.client.tables.PopoverTextCell in project kie-wb-common by kiegroup.
the class NotificationWidgetViewImpl method initGroups.
private void initGroups() {
PopoverTextCell toGroups = new PopoverTextCell();
Column<NotificationRow, String> toGroupsColumn = new Column<NotificationRow, String>(toGroups) {
@Override
public String getValue(NotificationRow object) {
if (object.getGroups() != null) {
return join(",", object.getGroups());
} else {
return "";
}
}
};
toGroupsColumn.setSortable(false);
table.addColumn(toGroupsColumn, presenter.getToGroupsLabel());
table.setColumnWidth(toGroupsColumn, 160, Style.Unit.PX);
}
use of org.uberfire.ext.widgets.common.client.tables.PopoverTextCell in project kie-wb-common by kiegroup.
the class NotificationWidgetViewImpl method initSubject.
private void initSubject() {
PopoverTextCell typeCell = new PopoverTextCell();
Column<NotificationRow, String> subjectColumn = new Column<NotificationRow, String>(typeCell) {
@Override
public String getValue(NotificationRow object) {
if (object.getSubject() != null) {
return object.getSubject();
}
return "";
}
};
subjectColumn.setSortable(false);
table.addColumn(subjectColumn, presenter.getSubjectLabel());
table.setColumnWidth(subjectColumn, 120, Style.Unit.PX);
}
Aggregations