コード例 #1
0
 @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);
 }
コード例 #2
0
  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());
  }
コード例 #3
0
 @Override
 public ListModel flush() {
   return table.asEditor().flush();
 }
コード例 #4
0
 @Override
 public void edit(ListModel object) {
   table.asEditor().edit(object);
 }