コード例 #1
0
 @Override
 public void setDatasource(DatasourceDto dto) {
   addBtn.setVisible(false);
   boolean isNull = "null".equals(dto.getType());
   importData.setDisabled(isNull);
   addTable.setDisabled(isNull);
   addUpdateTables.setDisabled(isNull);
 }
コード例 #2
0
 @Override
 public void afterRenderRows() {
   dataProvider.refresh();
   boolean enableItem = table.getRowCount() > 0;
   pager.setVisible(table.getRowCount() > Table.DEFAULT_PAGESIZE);
   downloadDictionary.setEnabled(enableItem);
   exportData.setDisabled(!enableItem);
   copyData.setDisabled(!enableItem);
   table.hideLoadingIndicator();
 }
コード例 #3
0
 private Widget getVocabularyLink(
     final TaxonomiesUiHandlers uiHandlers, final TaxonomyDto taxonomy, final String vocabulary) {
   NavLink link = new NavLink(vocabulary);
   //    link.setIcon(IconType.TAG);
   link.addStyleName("small-dual-indent");
   link.addClickHandler(
       new ClickHandler() {
         @Override
         public void onClick(ClickEvent clickEvent) {
           uiHandlers.onVocabularySelection(taxonomy.getName(), vocabulary);
         }
       });
   return link;
 }
コード例 #4
0
  private IsWidget makeItemNavLink(
      final ClientResourceType resourceType, final FolderItem folderItem) {
    String fileName = folderItem.getFileName();
    if (!(resourceType instanceof AnyResourceType)) {
      fileName = Utils.getBaseFileName(fileName);
    }
    fileName = fileName.replaceAll(" ", "\u00a0");
    final NavLink navLink = new NavLink(fileName);
    navLink.addClickHandler(
        new ClickHandler() {

          @Override
          public void onClick(ClickEvent event) {
            Window.alert("click en el boton del resurso");
            presenter.itemSelected(folderItem);
          }
        });
    return navLink;
  }
コード例 #5
0
 @Inject
 public TaxonomiesView(ViewUiBinder viewUiBinder, Translations translations) {
   this.translations = translations;
   initWidget(viewUiBinder.createAndBindUi(this));
   taxonomiesLink.setActive(true);
 }