Package org.infoglue.cms.applications.common

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


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

      if(RemoteCacheUpdater.getSystemNotificationMessages().size() > 0)
      {
        buttons.add(new ToolbarButton("pushButton",
            getLocalizedString(locale, "tool.publishingtool.pushChanges.header"),
            getLocalizedString(locale, "tool.publishingtool.pushChanges.header"),
            "ViewPublications!pushSystemNotificationMessages.action",
            "css/images/v3/publishIcon.png",
            "publish",
View Full Code Here


  }

  private List<ToolbarButton> getMySettingsButton(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
    buttons.add(new ToolbarButton("mySettingsButton",
                    getLocalizedString(locale, "tool.managementtool.mysettings.header"),
                    getLocalizedString(locale, "tool.managementtool.mysettings.header"),
                    "javascript:openMySettings();",
                    "css/images/v3/mySettingsIcon.gif",
                    "left",
View Full Code Here

    String helpPageUrl = CmsPropertyHandler.getContextBasedHelpUrlBase(locale) + "/" + toolbarKey;
    if(sendToolbarKeyAsParameter != null && sendToolbarKeyAsParameter.equals("true"))
      helpPageUrl = CmsPropertyHandler.getContextBasedHelpUrlBase(locale) + "?toolbarKey=" + toolbarKey;
   
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
    buttons.add(new ToolbarButton("helpButton",
                    getLocalizedString(locale, "tool.common.helpButton.label"),
                    getLocalizedString(locale, "tool.common.helpButton.title"),
                    helpPageUrl,
                    "css/images/v3/helpIcon.gif",
                    "help"));
View Full Code Here

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

    buttons.add(new ToolbarButton("exitButton",
                    getLocalizedString(locale, "tool.common.closeWindowButton.label"),
                    getLocalizedString(locale, "tool.common.closeWindowButton.title"),
                    "if(parent && parent.document.location.href != document.location.href && parent.closeInlineDiv) parent.closeInlineDiv(); else if(parent && parent.document.location.href != document.location.href && parent.closeDialog) parent.closeDialog(); else { window.close();}",
                      "css/images/v3/closeWindowIcon.gif",
                      "right",
View Full Code Here

    return buttons;
  }

  private ToolbarButton getDialogCloseButton(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton)
  {
    return new ToolbarButton("exitButton",
                    getLocalizedString(locale, "tool.common.closeWindowButton.label"),
                    getLocalizedString(locale, "tool.common.closeWindowButton.title"),
                    "if(close) close(); if(parent && parent.document.location.href != document.location.href && parent.closeInlineDiv) parent.closeInlineDiv(); else if(parent && parent.document.location.href != document.location.href && parent.closeDialog) parent.closeDialog(); else { window.close();}",
                      "css/images/v3/closeWindowIcon.gif",
                      "right",
View Full Code Here

                      true);
  }

  private ToolbarButton getDialogCancelButton(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton)
  {
    return new ToolbarButton("cancelButton",
                    getLocalizedString(locale, "tool.common.cancelButton.label"),
                    getLocalizedString(locale, "tool.common.cancelButton.label"),
                    "if(parent && parent.document.location.href != document.location.href && parent.closeInlineDiv) parent.closeInlineDiv(); else if(parent && parent.document.location.href != document.location.href && parent.closeDialog) parent.closeDialog(); else { window.close();}",
                      "css/images/v3/cancel.gif",
                      "left",
View Full Code Here

                      true);
  }

  private ToolbarButton getDialogCancelButton(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton, String cancelJavascript)
  {
    return new ToolbarButton("cancelButton",
                    getLocalizedString(locale, "tool.common.cancelButton.label"),
                    getLocalizedString(locale, "tool.common.cancelButton.label"),
                    cancelJavascript,
                      "css/images/v3/cancel.gif",
                      "left",
View Full Code Here

                      true);
  }

  private ToolbarButton getCommonFooterReturnToReferrerOrHistoryBackButton(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton)
  {
    return new ToolbarButton("historyBackButton",
                    getLocalizedString(locale, "tool.contenttool.fileUpload.fileUploadFailedBackLabel"),
                    getLocalizedString(locale, "tool.contenttool.fileUpload.fileUploadFailedBackLabel"),
                    "if(typeof window.returnToReferrer == 'function') returnToReferrer(); else history.back();",
                      "",
                      "left",
View Full Code Here

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

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

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.contenttool.toolbarV3.createContentFolderLabel"),
          getLocalizedString(locale, "tool.contenttool.toolbarV3.createContentFolderTitle"),
          "createFolder();",
          "css/images/v3/create.png",
          "left",
          "create",
          true));
   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          cancelJavascript,
          "css/images/v3/cancelIcon.gif",
          "left",
View Full Code Here

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

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.common.nextButton.label"),
          getLocalizedString(locale, "tool.common.nextButton.label"),
          "next();",
          "css/images/v3/nextBackground.gif",
          "left",
          "next",
          true));
   
    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          getLocalizedString(locale, "tool.common.cancelButton.label"),
          closeJavascript,
          "css/images/v3/cancelIcon.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.