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;
 }
示例#2
0
 /** For subclasses */
 protected void permanentlyHide(final ComponentType... componentIds) {
   Components.permanentlyHide(this, componentIds);
 }
示例#3
0
 /** 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);
 }