Пример #1
0
 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);
 }