Exemplo n.º 1
0
  @Override
  protected void onBeforeRenderWhenDisabled(final String disableReason) {
    super.onBeforeRenderWhenDisabled(disableReason);
    final EntityModel entityLinkModel = (EntityModel) entityLink.getModel();
    entityLinkModel.toViewMode();

    entityLink.syncVisibilityAndUsability();
  }
Exemplo n.º 2
0
 @Override
 protected void renderHead(IHeaderResponse response, Class<?> cls) {
   super.renderHead(response, IsisBlobOrClobPanelAbstract.class); // don't use the subclass
   // also include JQuery
   response.render(
       JavaScriptHeaderItem.forReference(
           Application.get().getJavaScriptLibrarySettings().getJQueryReference()));
 }
Exemplo n.º 3
0
 @Override
 protected void onBeforeRenderWhenViewMode() {
   super.onBeforeRenderWhenViewMode();
   entityLink.setEnabled(true);
   entityLink.syncVisibilityAndUsability();
 }