Package org.infoglue.cms.applications.common

Examples of org.infoglue.cms.applications.common.ToolbarButton


      else
      {
          workingUrl = CmsPropertyHandler.getPreviewDeliveryUrl();
      }
     
      ToolbarButton previewPage = new ToolbarButton("previewPage",
          getLocalizedString(locale, "tool.structuretool.toolbarV3.previewPageLabel"),
          getLocalizedString(locale, "tool.structuretool.toolbarV3.previewPageLabel"),
          "javascript:openPopup('" + workingUrl + "?siteNodeId=" + siteNodeId + (siteNodeVersionId != null ? "&siteNodeVersionId=" + siteNodeVersionId : "") + "', 'Import', 'resizable=yes,toolbar=yes,scrollbars=yes,status=yes,location=yes,menubar=yes');",
          "",
          "left",
View Full Code Here


      else
      {
          workingUrl = CmsPropertyHandler.getPreviewDeliveryUrl();
      }
     
      ToolbarButton previewPage = new ToolbarButton("previewPage",
          getLocalizedString(locale, "tool.structuretool.toolbarV3.previewPageLabel"),
          getLocalizedString(locale, "tool.structuretool.toolbarV3.previewPageLabel"),
          "previewPage('" + workingUrl + "?siteNodeId=" + siteNodeId + "');",
          "",
          "left",
View Full Code Here

      return previewPage;
  }
 
  public static ToolbarButton getPageDetailButtons(Integer repositoryId, Integer siteNodeId, Locale locale, InfoGluePrincipal principal)
  {
    return new ToolbarButton("pageDetail",
        getLocalizedString(locale, "tool.structuretool.toolbarV3.pageDetailLabel"),
        getLocalizedString(locale, "tool.structuretool.toolbarV3.pageDetailTitle"),
        "ViewSiteNode!V3.action?siteNodeId=" + siteNodeId + "&stay=true",
        "",
        "pageDetails");
View Full Code Here

    try
    {
      LanguageVO masterLanguageVO = LanguageController.getController().getMasterLanguage(repositoryId);
      Integer languageId = masterLanguageVO.getLanguageId();
 
      return new ToolbarButton("pageStructure",
            getLocalizedString(locale, "tool.structuretool.toolbarV3.pageStructureSimpleLabel"),
            getLocalizedString(locale, "tool.structuretool.toolbarV3.pageStructureSimpleLabel"),
            "" + CmsPropertyHandler.getComponentRendererUrl() + "ViewPage!renderDecoratedPage.action?siteNodeId=" + siteNodeId + "&languageId=" + masterLanguageVO.getId() + "&contentId=-1&showSimple=true" + "&cmsUserName=" + formatter.encodeURI(principal.getName()),
            "",
            "pageStructureSimple");
View Full Code Here

      }

      logger.info("isMetaInfoInWorkingState:" + isMetaInfoInWorkingState);
      if(isMetaInfoInWorkingState)
      {
        return new ToolbarButton("",
            getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverLabel"),
            getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverTitle"),
            "ViewSiteNode!V3.action?siteNodeId=" + siteNodeId + "&stay=true",
            "",
            "pageCover");
      }
      else
      {
        return new ToolbarButton("",
            getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverLabel"),
            getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverTitle"),
            "javascript:alert('Cannot edit this page. You must first set the meta info to working. Do this by entering node properties and changing the state to working.');",
            "",
            "pageCover");
      }
    }
    catch(Exception e)
    {
      return new ToolbarButton("",
          getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverLabel"),
          getLocalizedString(locale, "tool.structuretool.toolbarV3.pageCoverTitle"),
          "javascript:alert('Cannot edit this page. You must first set the meta info to working. Do this by entering node properties and changing the state to working.');",
          "",
          "pageCover");
View Full Code Here

  buttons.add(getExecuteTaskButton());
   */
 
  public static ToolbarButton getPublishButtons(Integer repositoryId, Integer siteNodeId, Locale locale)
  {
    return new ToolbarButton("publishPageStructure",
        getLocalizedString(locale, "tool.structuretool.toolbarV3.publishPagesLabel"),
        getLocalizedString(locale, "tool.structuretool.toolbarV3.publishPagesTitle"),
        "ViewListSiteNodeVersion!v3.action?siteNodeId=" + siteNodeId + "&repositoryId=" + repositoryId + "&recurseSiteNodes=true&returnAddress=ViewInlineOperationMessages.action&originalAddress=refreshParent",
        "",
        "publishPages");
View Full Code Here

        "publishPages");
  }

  public static ToolbarButton getPublishCurrentNodeButton(Integer repositoryId, Integer siteNodeId, Locale locale)
  {
    return new ToolbarButton("publishCurrentPage",
        getLocalizedString(locale, "tool.structuretool.toolbarV3.publishPageLabel"),
        getLocalizedString(locale, "tool.structuretool.toolbarV3.publishPageTitle"),
        "ViewListSiteNodeVersion!v3.action?siteNodeId=" + siteNodeId + "&repositoryId=" + repositoryId + "&recurseSiteNodes=false&returnAddress=ViewInlineOperationMessages.action&originalAddress=refreshParent",
        "",
        "publishPage");
View Full Code Here

    if(recursive)
      labelKey = "tool.common.unpublishing.unpublishPageButtonLabel";
    if(onlyLatestVersion)
      labelKey = "tool.contenttool.toolbarV3.unpublishContentsLabel";
   
    return new ToolbarButton("unpublishPage",
        getLocalizedString(locale, labelKey),
        getLocalizedString(locale, labelKey),
        getUnpublishButtonLink(siteNodeId, recursive, onlyLatestVersion),
        "",
        "unpublishPage");
View Full Code Here

   
    buttons.add(new ImageButton("Confirm.action?header=Delete%20siteNode&yesDestination=" + URLEncoder.encode(URLEncoder.encode("DeleteSiteNode.action?siteNodeId=" + this.siteNodeId + "&repositoryId=" + this.repositoryId + "&changeTypeId=4", "UTF-8"), "UTF-8") + "&noDestination=" + URLEncoder.encode(URLEncoder.encode("ViewSiteNode.action?title=SiteNode&siteNodeId=" + this.siteNodeId + "&repositoryId=" + this.repositoryId, "UTF-8"), "UTF-8") + "&message=" + URLEncoder.encode("Do you really want to delete the siteNode " + this.name + " and all its children", "UTF-8"), getLocalizedString(getSession().getLocale(), "images.structuretool.buttons.deleteSiteNode"), "Delete SiteNode"));

    if(hasPublishedVersion())
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(getSession().getLocale(), "tool.contenttool.toolbarV3.deleteContentLabel"),
            getLocalizedString(getSession().getLocale(), "tool.contenttool.toolbarV3.deleteContentLabel"),
            "javascript:alert('" + formatter.escapeForJavascripts(getLocalizedErrorMessage(getSession().getLocale(), "3300")) + "');",
            "",
            "delete"));
View Full Code Here

  private List<ToolbarButton> getAssetDialogForMultipleBindingsFooterButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();

    buttons.add(new ToolbarButton("useSelectedAsset",
          getLocalizedString(locale, "tool.contenttool.assetDialog.chooseAttachment"),
          getLocalizedString(locale, "tool.contenttool.assetDialog.chooseAttachment"),
          "useSelectedAsset();",
          "",
          "",
View Full Code Here

TOP

Related Classes of org.infoglue.cms.applications.common.ToolbarButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.