Search in sources :

Example 6 with PopoverTextCell

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);
}
Also used : Column(com.google.gwt.user.cellview.client.Column) PopoverTextCell(org.uberfire.ext.widgets.common.client.tables.PopoverTextCell) ReassignmentRow(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.ReassignmentRow)

Example 7 with PopoverTextCell

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);
}
Also used : Column(com.google.gwt.user.cellview.client.Column) PopoverTextCell(org.uberfire.ext.widgets.common.client.tables.PopoverTextCell) NotificationRow(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow)

Example 8 with PopoverTextCell

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);
}
Also used : Column(com.google.gwt.user.cellview.client.Column) PopoverTextCell(org.uberfire.ext.widgets.common.client.tables.PopoverTextCell) NotificationRow(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow)

Aggregations

Column (com.google.gwt.user.cellview.client.Column)8 PopoverTextCell (org.uberfire.ext.widgets.common.client.tables.PopoverTextCell)8 NotificationRow (org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.NotificationRow)6 ReassignmentRow (org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.ReassignmentRow)2