@Override public void setDatasource(DatasourceDto dto) { addBtn.setVisible(false); boolean isNull = "null".equals(dto.getType()); importData.setDisabled(isNull); addTable.setDisabled(isNull); addUpdateTables.setDisabled(isNull); }
@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(); }
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; }
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; }
@Inject public TaxonomiesView(ViewUiBinder viewUiBinder, Translations translations) { this.translations = translations; initWidget(viewUiBinder.createAndBindUi(this)); taxonomiesLink.setActive(true); }