private MarkupContainer updateDownloadLink(String downloadId, MarkupContainer container) { final ResourceLink<?> resourceLink = createResourceLink(downloadId); if (resourceLink != null) { container.addOrReplace(resourceLink); } else { Components.permanentlyHide(container, downloadId); } return resourceLink; }
/** For subclasses */ protected void permanentlyHide(final ComponentType... componentIds) { Components.permanentlyHide(this, componentIds); }
/** For subclasses */ public void permanentlyHide(final String... ids) { Components.permanentlyHide(this, ids); }
/** For subclasses */ public void permanentlyHide(final MarkupContainer container, final String... ids) { Components.permanentlyHide(container, ids); }
/** For subclasses */ protected void permanentlyHide( final MarkupContainer container, final ComponentType... componentIds) { Components.permanentlyHide(container, componentIds); }