Package org.infoglue.cms.applications.common

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


  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
   
    SiteNodeTypeDefinitionVO siteNodeTypeDefinitionVO = SiteNodeTypeDefinitionController.getController().getSiteNodeTypeDefinitionVOWithId(new Integer(request.getParameter("siteNodeTypeDefinitionId")));

    buttons.add(new ToolbarButton("",
        getLocalizedString(locale, "tool.managementtool.deleteSiteNodeTypeDefinition.header"),
        getLocalizedString(locale, "tool.managementtool.deleteSiteNodeTypeDefinition.header"),
        "DeleteSiteNodeTypeDefinition.action?siteNodeTypeDefinitionId=" + siteNodeTypeDefinitionVO.getId() + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
        "css/images/v3/deleteBackgroundWasteBasket.gif",
        "left",
View Full Code Here


 
  private List<ToolbarButton> getServerNodesButtons(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.managementtool.createServerNode.header"),
          getLocalizedString(locale, "tool.managementtool.createServerNode.header"),
          "CreateServerNode!input.action",
          "css/images/v3/createBackgroundPenPaper.gif",
          "create",
          "workIframe"));
    /*
    buttons.add(new ToolbarButton("",
        getLocalizedString(locale, "tool.managementtool.deleteServerNodes.header"),
        getLocalizedString(locale, "tool.managementtool.deleteServerNodes.header"),
        "submitListForm('serverNode');",
        "css/images/v3/deleteBackgroundWasteBasket.gif",
        "left",
        "delete",
        true,
        false,
        "",
        "",
        "workIframe"));
    */
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.managementtool.editServerNodeProperties.header"),
          getLocalizedString(locale, "tool.managementtool.editServerNodeProperties.header"),
          "ViewServerNodeProperties.action?serverNodeId=-1",
          "css/images/v3/deleteBackgroundWasteBasket.gif",
          "delete",
View Full Code Here

  private List<ToolbarButton> getMessageCenterButtons(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.managementtool.createEmail.header"),
          getLocalizedString(locale, "tool.managementtool.createEmail.header"),
          "CreateEmail!inputChooseRecipientsV3.action",
          "css/images/v3/createBackgroundPenPaper.gif",
          "create"));
View Full Code Here

  private List<ToolbarButton> getThemesButtons(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.managementtool.uploadTheme.header"),
          getLocalizedString(locale, "tool.managementtool.uploadTheme.header"),
          "ViewThemes!input.action",
          "css/images/v3/createBackgroundPenPaper.gif",
          "create",
View Full Code Here

  private List<ToolbarButton> getLabelsButtons(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.managementtool.uploadTranslation.header"),
          getLocalizedString(locale, "tool.managementtool.uploadTranslation.header"),
          "ViewLabels!input.action",
          "css/images/v3/createBackgroundPenPaper.gif",
          "create",
View Full Code Here

 
  private List<ToolbarButton> getQuickDeployFooterButtons(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.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> getVCDeployFooterButtons(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.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

  {
    Integer repositoryId = new Integer(request.getParameter("repositoryId"));

      List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();

      buttons.add(new ToolbarButton("previewButton",
          getLocalizedString(locale, "tool.publishtool.preview.header"),
          getLocalizedString(locale, "tool.publishtool.preview.header"),
          "submitToPreview();",
          "css/images/v3/previewIcon.png",
          "left",
          "preview",
          true));

      buttons.add(new ToolbarButton("createEdition",
          getLocalizedString(locale, "tool.publishtool.createEdition.header"),
          getLocalizedString(locale, "tool.publishtool.createEdition.header"),
          "submitToCreate();",
          "css/images/v3/previewIcon.png",
          "left",
          "create",
          true));

      buttons.add(new ToolbarButton("unpublishEdition",
          getLocalizedString(locale, "tool.publishtool.unpublishEdition.header"),
          getLocalizedString(locale, "tool.publishtool.unpublishEdition.header"),
          "submitToUnpublish();",
          "css/images/v3/trashcan.png",
          "left",
          "trashcan",
          true));

      buttons.add(new ToolbarButton("denyPublishing",
          getLocalizedString(locale, "tool.publishtool.denyPublication.header"),
          getLocalizedString(locale, "tool.publishtool.denyPublication.header"),
          "submitToDeny();",
          "css/images/v3/denyPublicationIcon.png",
          "left",
          "denyPublication",
          true));

    try
    {
        RepositoryVO repositoryVO = RepositoryController.getController().getRepositoryVOWithId(repositoryId);

        String repositoryName = repositoryVO.getName();
      String dnsName = repositoryVO.getDnsName();

        String previewUrl = null;
       
        String keyword = "preview=";
        int startIndex = (dnsName == null) ? -1 : dnsName.indexOf(keyword);
        if(startIndex != -1)
        {
            int endIndex = dnsName.indexOf(",", startIndex);
          if(endIndex > -1)
                dnsName = dnsName.substring(startIndex, endIndex);
            else
                dnsName = dnsName.substring(startIndex);

          String[] dnsSplit = dnsName.split("=");
          if (dnsSplit != null && dnsSplit.length > 1)
          {
            previewUrl = dnsSplit[1] + CmsPropertyHandler.getComponentRendererUrl().replaceAll("Working", "Preview") + "ViewPage.action";
          }
          else
          {
            previewUrl = CmsPropertyHandler.getStagingDeliveryUrl();
          }
        }
        else
        {
            previewUrl = CmsPropertyHandler.getStagingDeliveryUrl();
        }

        buttons.add(new ToolbarButton("previewSite",
            getLocalizedString(locale, "tool.publishtool.previewEnvironment.header"),
            getLocalizedString(locale, "tool.publishtool.previewEnvironment.header"),
            "javascript:openPopup('" + previewUrl + "?repositoryName=" + repositoryName + "', 'StagingPreview', 'width=800,height=600,resizable=yes,toolbar=yes,scrollbars=yes,status=yes,location=yes,menubar=yes');",
            "css/images/v3/previewIcon.png",
            "left",
View Full Code Here

  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();

    String label = "tool.structuretool.removeSiteNodeAndReferences";

    buttons.add(new ToolbarButton("",
        getLocalizedString(locale, label),
        getLocalizedString(locale, label),
        "deleteAllReferences();",
        "",
        "left",
View Full Code Here

  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();

    String label = "tool.structuretool.removeSiteNodeAndReferences";

    buttons.add(new ToolbarButton("",
        getLocalizedString(locale, label),
        getLocalizedString(locale, label),
        "deleteAllReferences();",
        "",
        "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.