Example #1
0
 /** set the status widget used to display the upload progress. */
 public void setStatusWidget(IUploadStatus stat) {
   if (stat == null) {
     return;
   }
   uploaderPanel.remove(statusWidget.asWidget());
   statusWidget = stat;
   if (!stat.asWidget().isAttached()) {
     uploaderPanel.add(statusWidget.asWidget());
   }
   statusWidget.asWidget().addStyleName(STYLE_STATUS);
   statusWidget.setVisible(false);
   statusWidget.addCancelHandler(cancelHandler);
   statusWidget.setStatusChangedHandler(statusChangedHandler);
 }
  public void columnFilterDeleted(ColumnFilterEditor editor) {
    addFilterButton.setVisible(true);
    addFilterPanel.setVisible(false);
    filterListPanel.remove(editor);

    Integer index = filter.getColumnFilterIdx(editor.getFilter());
    if (index != null) {
      filter.getColumnFilterList().remove(index.intValue());

      if (listener != null) {
        listener.filterChanged(filter);
      }
    }
  }