private ValidationPopup() { setTitle(CommonConstants.INSTANCE.ValidationErrors()); setHideOthers(false); add(uiBinder.createAndBindUi(this)); add( new ModalFooterOKButton( new Command() { @Override public void execute() { hide(); } })); final ValidationMessageLevelColumn validationMessageLevelColumn = new ValidationMessageLevelColumn() { @Override public ValidationMessage.Level getValue(final ValidationMessage msg) { return msg.getLevel(); } }; table.addColumn(validationMessageLevelColumn); table.setColumnWidth(validationMessageLevelColumn, "32px"); table.addColumn( new TextColumn<ValidationMessage>() { @Override public String getValue(final ValidationMessage msg) { return msg.getText(); } }); }
private void initTable(Translations translations) { table.setVisibleRange(0, 10); table.addColumn(Columns.NAME, translations.nameLabel()); table.addColumn(Columns.VALUE, translations.valueLabel()); table.addColumn(Columns.ACTIONS, translations.actionsLabel()); table.setEmptyTableWidget(new Label(translations.noOtionsLabel())); registerActionsHandlers(); dataProvider.addDataDisplay(table); pager.setDisplay(table); }