List of usage examples for com.vaadin.ui Link getCaption
@Override
public String getCaption()
From source file:org.escidoc.browser.elabsmodul.views.helpers.LabsStudyTableHelper.java
License:Open Source License
private String addnewItemToPublicationsTable(final String newDocumentURL, boolean isMotNotResPublication) { Preconditions.checkNotNull(motPubContainer, "motPubContainer is null"); Preconditions.checkNotNull(resPubContainer, "motPubContainer is null"); Preconditions.checkNotNull(newDocumentURL, "document URL is null"); final Link link = createLinkByResourcePath(newDocumentURL); if (isMotNotResPublication) { Item newItem = motPubContainer.addItem(newDocumentURL); if (newItem != null) { newItem.getItemProperty(motPubProperty1).setValue(link); }//w w w .java 2 s . c om this.motPubTable.requestRepaint(); } else { Item newItem = resPubContainer.addItem(newDocumentURL); if (newItem != null) { newItem.getItemProperty(resPubProperty1).setValue(link); } this.resPubTable.requestRepaint(); } return link.getCaption(); }