Exemplo n.º 1
0
  /**
   * @see org.opencms.widgets.I_CmsWidget#getDialogIncludes(org.opencms.file.CmsObject,
   *     org.opencms.widgets.I_CmsWidgetDialog)
   */
  @Override
  public String getDialogIncludes(CmsObject cms, I_CmsWidgetDialog widgetDialog) {

    StringBuffer result = new StringBuffer(256);
    // import the JavaScript for the gallery widget
    result.append(
        getJSIncludeFile(
            CmsWorkplace.getSkinUri() + "components/widgets/" + getNameLower() + "gallery.js"));
    return result.toString();
  }
  /**
   * Returns the script tag for the "*.nocache.js".
   *
   * <p>
   *
   * @param moduleName the module name to get the script tag for
   * @return the <code>"&lt;script&gt;"</code> tag for the "*.nocache.js".
   *     <p>
   */
  public String createNoCacheScript(String moduleName) {

    return "<script type=\"text/javascript\" src=\""
        + CmsWorkplace.getResourceUri("ade/" + moduleName + "/" + moduleName + ".nocache.js")
        + "\"></script>";
  }