@Override public void setMessage(String message) { super.setMessage(message); // Hide table in case of message if (message != null && message.length() > 0) { table.setVisible(false); } messageLabel.setText(message); }
public AbstractFindDcPopupView(EventBus eventBus, boolean multiSelection) { super(eventBus); table = new EntityModelCellTable<ListModel>(multiSelection); initWidget(ViewUiBinder.uiBinder.createAndBindUi(this)); // Table Entity Columns table.addColumn( new AbstractEntityModelTextColumn<StoragePool>() { @Override public String getText(StoragePool storage) { return storage.getName(); } }, constants.nameDc()); table.addColumn( new AbstractEntityModelTextColumn<StoragePool>() { @Override protected String getText(StoragePool entity) { return entity.isLocal() ? constants.storageTypeLocal() : constants.storageTypeShared(); } }, constants.storgeTypeDc()); }
@Override public ListModel flush() { return table.asEditor().flush(); }
@Override public void edit(ListModel object) { table.asEditor().edit(object); }