Package org.infoglue.cms.applications.common

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


                    true);
  }

  private ToolbarButton getReactivateButton(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    return new ToolbarButton("reactivate",
                    getLocalizedString(locale, "tool.common.revertButton.label"),
                    getLocalizedString(locale, "tool.common.revertButton.label"),
                    "reactivate();",
                    "css/images/v3/compareIcon.gif",
                    "left",
View Full Code Here


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

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.common.emptyTrashButton.label"),
          getLocalizedString(locale, "tool.common.emptyTrashButton.label"),
          "emptyTrash();",
          "",
          "left",
View Full Code Here

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

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.common.upgradeButton.label"),
          getLocalizedString(locale, "tool.common.upgradeButton.label"),
          "upgrade();",
          "",
          "left",
          "runTask",
          true));

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.common.nextButton.label"),
          getLocalizedString(locale, "tool.common.nextButton.label"),
          "next();",
          "css/images/v3/nextBackground.gif",
          "left",
View Full Code Here

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

    buttons.add(new ToolbarButton("",
                    getLocalizedString(locale, "tool.common.nextButton.label"),
                    getLocalizedString(locale, "tool.common.nextButton.label"),
                    "submitForm();",
                    "css/images/v3/nextBackground.gif",
                      "left",
                    "next",
                    true));

    buttons.add(new ToolbarButton("",
                      getLocalizedString(locale, "tool.common.cancelButton.label"),
                      getLocalizedString(locale, "tool.common.cancelButton.label"),
                      "if(parent && parent.closeInlineDiv) parent.closeInlineDiv(); else if(parent && parent.closeDialog) parent.closeDialog(); else window.close();",
                      "css/images/v3/cancelIcon.gif",
                      "left",
View Full Code Here

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

    buttons.add(new ToolbarButton("",
                    getLocalizedString(locale, "tool.managementtool.sendMessage.label"),
                    getLocalizedString(locale, "tool.managementtool.sendMessage.label"),
                    "submitForm();",
                    "css/images/v3/nextBackground.gif",
                      "left",
                    "commit",
                    true));

    buttons.add(new ToolbarButton("",
                      getLocalizedString(locale, "tool.common.cancelButton.label"),
                      getLocalizedString(locale, "tool.common.cancelButton.label"),
                      "if(parent && parent.closeInlineDiv) parent.closeInlineDiv(); else if(parent && parent.closeDialog) parent.closeDialog(); else window.close();",
                      "css/images/v3/cancelIcon.gif",
                      "left",
View Full Code Here

    if(primaryKeyAsInteger != null)
      siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(primaryKeyAsInteger);
     
    if(siteNodeVO != null && hasAccessTo(principal, "Common.PublishButton", true) && hasAccessTo(principal, "Repository.Read", "" + siteNodeVO.getRepositoryId()))
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.common.publishing.publishButtonLabel"),
            getLocalizedString(locale, "tool.common.publishing.publishButtonLabel"),
            "submitToPublish('true');",
            "css/images/v3/publishPageIcon.gif",
            "left",
            "publish",
            true));
    }
   
    if(siteNodeVO != null && hasAccessTo(principal, "Common.SubmitToPublishButton", true, false, false))
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.common.publishing.submitToPublishButtonLabel"),
            getLocalizedString(locale, "tool.common.publishing.submitToPublishButtonLabel"),
            "submitToPublish('false');",
            "css/images/v3/publishPageIcon.gif",
            "left",
            "submitToPublish",
            true));
    }
   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          "if(parent && parent.closeInlineDiv) parent.closeInlineDiv(); else if(parent && parent.closeDialog) parent.closeDialog(); else window.close();",
          "css/images/v3/cancelIcon.gif",
          "left",
View Full Code Here

      key2 = "tool.common.unpublishing.submitToUnpublishAllVersionsButtonLabel";
    }
   
    if(siteNodeVO != null && hasAccessTo(principal, "Common.PublishButton", true) && hasAccessTo(principal, "Repository.Read", "" + siteNodeVO.getRepositoryId()))
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, key1),
            getLocalizedString(locale, key1),
            "submitToPublish('true');",
            "css/images/v3/unpublishPageIcon.gif",
            "left",
            "publish",
            true));
    }
   
    if(siteNodeVO != null && hasAccessTo(principal, "Common.SubmitToPublishButton", true, false, false))
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, key2),
            getLocalizedString(locale, key2),
            "submitToPublish('false');",
            "css/images/v3/unpublishPageIcon.gif",
            "left",
            "submitToPublish",
            true));
    }
   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          "if(parent && parent.closeInlineDiv) parent.closeInlineDiv(); else if(parent && parent.closeDialog) parent.closeDialog(); else window.close();",
          "css/images/v3/cancelIcon.gif",
          "left",
View Full Code Here

    if(primaryKeyAsInteger != null)
      contentVO = ContentController.getContentController().getContentVOWithId(primaryKeyAsInteger);
     
    if(contentVO != null && hasAccessTo(principal, "Common.PublishButton", true) && hasAccessTo(principal, "Repository.Read", "" + contentVO.getRepositoryId()))
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.common.publishing.publishButtonLabel"),
            getLocalizedString(locale, "tool.common.publishing.publishButtonLabel"),
            "submitToPublish('true');",
            "css/images/v3/publishContentIcon.gif",
            "left",
            "publish",
            true));
    }
   
    if(contentVO != null && hasAccessTo(principal, "Common.SubmitToPublishButton", true, false, false))
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, "tool.common.publishing.submitToPublishButtonLabel"),
            getLocalizedString(locale, "tool.common.publishing.submitToPublishButtonLabel"),
            "submitToPublish('false');",
            "css/images/v3/publishContentIcon.gif",
            "left",
            "submitToPublish",
            true));
    }
   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          "if(parent && parent.closeInlineDiv) parent.closeInlineDiv(); else if(parent && parent.closeDialog) parent.closeDialog(); else window.close();",
          "css/images/v3/cancelIcon.gif",
          "left",
View Full Code Here

      key2 = "tool.common.unpublishing.submitToUnpublishButtonLabel";
    }
   
    if(contentVO != null && hasAccessTo(principal, "Common.PublishButton", true) && hasAccessTo(principal, "Repository.Read", "" + contentVO.getRepositoryId()))
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, key1),
            getLocalizedString(locale, key1),
            "submitToPublish('true');",
            "css/images/v3/publishPageIcon.gif",
            "left",
            "publish",
            true));
    }
   
    if(contentVO != null && hasAccessTo(principal, "Common.SubmitToPublishButton", true, false, false))
    {
      buttons.add(new ToolbarButton("",
            getLocalizedString(locale, key2),
            getLocalizedString(locale, key2),
            "submitToPublish('false');",
            "css/images/v3/publishPageIcon.gif",
            "left",
            "submitToPublish",
            true));
    }
   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          "if(parent && parent.closeInlineDiv) parent.closeInlineDiv(); else if(parent && parent.closeDialog) parent.closeDialog(); else window.close();",
          "css/images/v3/cancelIcon.gif",
          "left",
View Full Code Here


  private List<ToolbarButton> getGlobalSubscriptionsButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton)
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.common.createSubscription.header"),
          getLocalizedString(locale, "tool.common.createSubscription.header"),
          "showDiv('newSubscriptionForm')",
          "css/images/v3/createBackgroundPenPaper.gif",
          "left",
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.