123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- +========================================================================+
- | Licensed Materials - Property of IBM
- |
- | IBM Cognos Products: BUX
- |
- | (C) Copyright IBM Corp. 2009, 2014
- |
- | US Government Users Restricted Rights - Use, duplication or
- | disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- |
- +========================================================================+
- -->
- <iw:iwidget id="buxBanner" xmlns:iw="http://www.ibm.com/xmlns/prod/iWidget" iScope="bux.iwidget.banner.Banner" supportedModes="view" mode="view">
- <iw:itemSet id="attributes" private="true">
- <iw:item id="copyright" value="(c) 2009, 2012 IBM Corp. All rights reserved"/>
- <iw:item id="version" value="1.0.0.0.0"/>
- <iw:item id="controllerNS" value="ICDNS0"/>
- <iw:item id="bannerSpec" readOnly="true"
- value="
- [{'class':'buxBannerBlueDotSection',items: [
- {type: 'DropDownButton', id:'blueDotDropDown', propertyId:'_oBlueDotDropDown', label: BUXMSG.BNR.IDS_BNR_ROOT_MENU_LABEL,showLabel: false,iconClass: 'buxBlueDot','class': 'buxBannerBigButton',items: [
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_NEW_BUTTON_LABEL, actionId:'new', relatedUIElement:'sidebar', iconClass:'buxBannerMenuNew', onClick: dojo.hitch(this, this.newDashboard)},
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_OPEN_BUTTON_LABEL, actionId:'open', iconClass:'buxBannerMenuOpen',onClick: dojo.hitch(this, this.showOpenDialog)},
- {type: 'MenuSeparator'},
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_SAVE_BUTTON_LABEL, actionId:'save', id: 'blueDotSaveMenuItem', iconClass:'buxBannerMenuSave', onClick: dojo.hitch(this, this.onSaveButton),propertyId:'_oBlueDotSaveMenuItem'},
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_SAVEAS_BUTTON_LABEL, actionId:'saveas', id: 'blueDotSaveAsMenuItem', iconClass:'buxBannerMenuSaveAs', onClick: dojo.hitch(this, this.onSaveAs),propertyId:'_oBlueDotSaveAsMenuItem',keyboard: {ctrl: true, shift: true, key: ['s','S'], action: dojo.hitch(this, this.onSaveAs), scope: 'global'}},
- {type: 'MenuSeparator'},
- {type: 'MenuItem', label: BUXMSG.BNR.IDS_BNR_PRINT_BUTTON_LABEL, actionId:'print', id: 'blueDotPrintMenuItem', iconClass:'buxBannerMenuPrint',onClick: dojo.hitch(this, this.onPrint) },
- {type: 'MenuSeparator'},
- {type: 'MenuItem',label:BUXMSG.SWD.IDS_SWD_SHARE_WORKSPACE_LABEL, actionId:'shareworkspace', onClick: dojo.hitch(this, this.shareWorkspace),propertyId:'_oBlueDotShareWorkspace'},
- {type: 'MenuSeparator'},
- {type: 'MenuItem', label:BUXMSG.BNR.IDS_BNR_ADD_TAB, actionId:'addTab', relatedUIElement: 'tabs', iconClass:'buxBannerMenuAddTab', onClick: dojo.hitch(this, this._manageTabs, 'add'), propertyId:'_oBlueDotAddTab'},
- {type: 'MenuItem', label:BUXMSG.BNR.IDS_BNR_RENAME_TAB, actionId:'renameTab', relatedUIElement: 'tabs', iconClass:'buxBannerMenuRenameTab', onClick: dojo.hitch(this, this._manageTabs, 'rename'), propertyId:'_oBlueDotRenameTab'},
- {type: 'MenuItem', label:BUXMSG.BNR.IDS_BNR_REMOVE_TAB, actionId:'removeTab', relatedUIElement: 'tabs', iconClass:'buxBannerMenuDeleteTab', onClick: dojo.hitch(this, this._manageTabs, 'remove'), propertyId:'_oBlueDotRemoveTab'},
- {type: 'MenuItem', label:BUXMSG.BNR.IDS_BNR_MANAGE_TAB, actionId:'manageTab', relatedUIElement: 'tabs', onClick: dojo.hitch(this, this._manageTabs, 'manage'), propertyId:'_oBlueDotManageTabs'},
- {type: 'MenuSeparator', relatedUIElement: 'tabs'},
- {type: 'MenuItem', label:BUXMSG.BNR.IDS_BNR_CUSTOMIZE_DASHBOARD_PROPERTIES, actionId:'changeproperties', onClick: dojo.hitch(this, this.showPropertiesDialog),propertyId:'_oDashboardPropertiesBlueDotMenuItem'},
- {type: 'MenuSeparator'},
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_USER_PREFERENCES_LABEL, actionId:'changepreferences', onClick: dojo.hitch(this, this.showUserPreferencesDialog)},
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_LOG_ON_LABEL, actionId:'logon', onClick: dojo.hitch(this, this._logOn), propertyId: '_oLogOnLabel'},
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_LOG_OFF_LABEL, actionId:'logoff', onClick: dojo.hitch(this, this._logOff), propertyId: '_oLogOffLabel'},
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_REFRESH_ALL_LABEL, actionId:'refresh', iconClass:'buxBannerMenuRefresh', onClick: dojo.hitch(this, this.refreshDashboard), keyboard: {key: dojo.keys.F5, action: dojo.hitch(this, this._saveThenRefreshPage), scope: 'global'}}
- ], suppressTitle: true, tooltip: {title: BUXMSG.BNR.IDS_BNR_ROOT_MENU_TOOLTIP_TITLE, text: BUXMSG.BNR.IDS_BNR_ROOT_MENU_TOOLTIP_TEXT}}
- ]},
- {'class':'buxBannerMainSectionLeft',items: [
- {type: 'Button', label: BUXMSG.BNR.IDS_BNR_NEW_BUTTON_LABEL,showLabel: false, actionId:'new', relatedUIElement:'sidebar', iconClass: 'buxBannerButtonNewImage',onClick: dojo.hitch(this, this.newDashboard), 'class': 'buxBannerButton', suppressTitle: true, tooltip: {title: BUXMSG.BNR.IDS_BNR_NEW_BUTTON_LABEL, text: BUXMSG.BNR.IDS_BNR_NEW_BUTTON_TOOLTIP_TEXT}, keyboard: {ctrl: true, key: ['n','N'], action: dojo.hitch(this, this.newDashboard), scope: 'global'}},
- {type: 'Button', label: BUXMSG.BNR.IDS_BNR_OPEN_BUTTON_LABEL,showLabel: false, actionId:'open', iconClass: 'buxBannerButtonOpenImage',onClick: dojo.hitch(this, this.showOpenDialog), 'class': 'buxBannerButton', suppressTitle: true, tooltip: {title: BUXMSG.BNR.IDS_BNR_OPEN_BUTTON_LABEL, text: BUXMSG.BNR.IDS_BNR_OPEN_BUTTON_TOOLTIP_TEXT}, keyboard: {ctrl: true, key: ['o','O'], action: dojo.hitch(this, this.showOpenDialog), scope: 'global'}},
- {type: 'Button', label: BUXMSG.BNR.IDS_BNR_SAVE_BUTTON_LABEL,optionsTitle: BUXMSG.BNR.IDS_BNR_SAVE_BUTTON_LABEL, actionId:'save', showLabel: false,iconClass: 'buxBannerButtonSaveImage', onClick: dojo.hitch(this, this.onSaveButton), 'class': 'buxBannerButton',propertyId:'_oSaveButton', suppressTitle: true,
- tooltip: {title: BUXMSG.BNR.IDS_BNR_SAVE_BUTTON_LABEL, text: BUXMSG.BNR.IDS_BNR_SAVE_BUTTON_TOOLTIP_TEXT},keyboard: {ctrl: true, key: ['s','S'], action: dojo.hitch(this, this._doSave), scope: 'global'}},
- {type: 'Separator'},
- {type: 'Button', label: BUXMSG.BNR.IDS_BNR_PRINT_BUTTON_LABEL, showLabel:false, actionId:'print', iconClass:'buxBannerButtonPrintImage',onClick: dojo.hitch(this, this.onPrint), 'class': 'buxBannerButton', suppressTitle: true, tooltip: {title: BUXMSG.BNR.IDS_BNR_PRINT_BUTTON_LABEL, text: BUXMSG.BNR.IDS_BNR_PRINT_BUTTON_TOOLTIP_TEXT} },
- {type: 'Separator'},
- {type: 'Button', label: BUXMSG.BNR.IDS_BNR_SHARE_WORKSPACE_LABEL, actionId:'shareworkspace', propertyId: '_oBlueDotShareWorkspace', showLabel: false,iconClass: 'buxBannerButtonMailtoURL',onClick: dojo.hitch(this, this.shareWorkspace), 'class': 'buxBannerButton', suppressTitle: true, tooltip: {title: BUXMSG.BNR.IDS_BNR_SHARE_WORKSPACE_LABEL, text: BUXMSG.BNR.IDS_BNR_SHARE_WORKSPACE_TEXT}},
- {type: 'DropDownButton', label: BUXMSG.BNR.IDS_BNR_COLLABORATE_BUTTON_LABEL, actionId:'collaborate', propertyId: '_oCollaborationButton', optionsTitle: BUXMSG.BNR.IDS_BNR_COLLABORATE_BUTTON_LABEL, showLabel: false,iconClass: 'buxBannerButtonCollaboration','class': 'buxBannerDropDownButton', visibleCheck: dojo.hitch(this, this.isCollaborationEnabled) ,items:[
- {type: 'MenuItem', label: BUXMSG.BNR.IDS_BNR_NEW_ACTIVITY_BUTTON_LABEL, actionId:'createactivity', iconClass: 'buxBannerButtonCollaborationNew', onClick: dojo.hitch(this, this.launchActivityDialog), propertyId:'_newCollaboration'},
- {type: 'MenuItem', label: BUXMSG.BNR.IDS_BNR_VIEW_ACTIVITIES_BUTTON_LABEL_DEFAULT, actionId:'viewactivities', iconClass: 'buxBannerButtonCollaborationView', onClick: dojo.hitch(this, this.toggleCollaborationPane), propertyId:'_viewCollaboration'}
- ],suppressTitle: true, tooltip: {title: BUXMSG.BNR.IDS_BNR_COLLABORATE_BUTTON_LABEL, text: BUXMSG.BNR.IDS_BNR_COLLABORATE_BUTTON_TOOLTIP_TEXT}},
- {type: 'Separator'},
- {type: 'Button', label: BUXMSG.BNR.IDS_BNR_REFRESH_ALL_LABEL, actionId:'refresh',showLabel: false,iconClass: 'buxBannerMenuRefreshBlue',onClick: dojo.hitch(this, this.refreshDashboard), 'class': 'buxBannerButton', suppressTitle: true, tooltip: {title: BUXMSG.BNR.IDS_BNR_ROOT_MENU_TOOLTIP_TITLE_REFRESHALL, text: BUXMSG.BNR.IDS_BNR_ROOT_MENU_TOOLTIP_TEXT_REFRESHALL}},
- {type: 'Separator'},
- {type: 'DropDownButton', label: BUXMSG.BNR.IDS_BNR_DASHBOARD_VIEW_BUTTON_LABEL, actionId:'changelayout', propertyId:'_oDashboardViewButton',optionsTitle: BUXMSG.BNR.IDS_BNR_DASHBOARD_VIEW_BUTTON_LABEL,showLabel: true,iconClass: 'buxBannerButtonDashboardViewImage', 'class': 'buxBannerDropDownButton', items: [
- {type: 'MenuItem', label: BUXMSG.BNR.IDS_BNR_FIT_TO_WINDOW, iconClass: 'buxBannerMenuFitToWindow', actionId:'fittowindow', onClick: dojo.hitch(this, 'fireEvent', 'com.ibm.bux.canvas.fitToWindow'),propertyId:'_ofitToWindowMenuItem'},
- {type: 'SubMenu', label: BUXMSG.BNR.IDS_BNR_RESIZE_ALL, iconClass: 'buxBannerMenuResizeAll', actionId:'resizeall', propertyId:'_oResizeAllSubMenuItem', items: [
- {type: 'MenuItem', label: BUXMSG.BNR.IDS_BNR_RESIZE_ALL_CURRENT_TAB, actionId:'resizeall', propertyId:'_oResizeAllCurrentTabMenuItem', onClick: dojo.hitch(this, 'fireEvent', 'com.ibm.bux.canvas.bestFit', {bGlobalAreaFit: false})},
- {type: 'MenuItem', label: BUXMSG.BNR.IDS_BNR_RESIZE_ALL_GLOBAL_AREA, actionId:'resizeall', relatedUIElement: 'globalarea', propertyId:'_oResizeAllGlobalAreaMenuItem', onClick: dojo.hitch(this, 'fireEvent', 'com.ibm.bux.canvas.bestFit', {bGlobalAreaFit: true})}
- ]},
- {type: 'MenuSeparator'},
- {type: 'MenuItem', label:BUXMSG.BNR.IDS_BNR_CUSTOMIZE_DASHBOARD_PROPERTIES, actionId:'changeproperties', onClick: dojo.hitch(this, this.showPropertiesDialog),propertyId:'_oDashboardPropertiesMenuItem'}
- ], suppressTitle: true, tooltip: {title: BUXMSG.BNR.IDS_BNR_DASHBOARD_VIEW_BUTTON_LABEL, text: BUXMSG.BNR.IDS_BNR_DASHBOARD_VIEW_BUTTON_TOOLTIP_TEXT}},
- {type: 'Separator'},
- {type: 'Button', label: BUXMSG.BNR.IDS_BNR_RETURN_LABEL, actionId:'return', showLabel:false, iconClass:'buxBannerButtonReturn',onClick: this.goBackUrl, 'class': 'buxBannerButton', suppressTitle: true, tooltip: {title: BUXMSG.BNR.IDS_BNR_RETURN_LABEL, text: BUXMSG.BNR.IDS_BNR_RETURN_TOOLTIP_TEXT},visibleCheck: function(){return icdConfig.backURL;}},
- {type: 'Separator'},
- {type: 'ComboButton', label: BUXMSG.BNR.IDS_BNR_HELP_BUTTON_LABEL, actionId:'help', optionsLabel: BUXMSG.BNR.IDS_BNR_HELP_BUTTON_LABEL,showLabel: false,iconClass: 'buxBannerButtonHelpImage',onClick: dojo.hitch(this, this.goHelp), 'class': 'buxBannerComboButton', items: [
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_HELP_BUTTON_LABEL, iconClass: 'buxBannerMenuHelp', onClick: dojo.hitch(this, this.goHelp)},
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_HELP_MENU_GUIDED_TOURS, onClick: dojo.hitch(this, this.goGuidedTours)},
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_HELP_MENU_IBM_WEB, onClick: dojo.hitch(this, this.goIBMOnTheWeb)},
- {type: 'MenuSeparator'},
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_HELP_MENU_START_PAGE, onClick: dojo.hitch(this, this.goStartPage)},
- {type: 'MenuSeparator'},
- {type: 'MenuItem',label:BUXMSG.BNR.IDS_BNR_HELP_MENU_ABOUT, onClick: dojo.hitch(this, this.showAboutBox)}
- ], suppressTitle: true, tooltip: {title: BUXMSG.BNR.IDS_BNR_HELP_BUTTON_LABEL, text: BUXMSG.BNR.IDS_BNR_HELP_BUTTON_TOOLTIP_TEXT}}
- ]},
- {'class':'buxBannerMainSectionRight',items: [
- {type: 'Button',label: BUXMSG.BNR.IDS_BNR_MARK_AS_FAVORITE_BUTTON_LABEL, actionId:'setfavorite', propertyId: '_oMarkASfavoriteButton', iconClass:'buxBannerMarkAsFavoriteButton', showLabel: false, onClick: dojo.hitch(this, this.callMarkAsFavorite), 'class': 'buxBannerButton', suppressTitle: true,
- tooltip: {title: BUXMSG.BNR.IDS_BNR_FAVORITE_TOGGLE_TOOLTIP_TITLE, text: BUXMSG.BNR.IDS_BNR_MARK_AS_FAVORITE_BUTTON_TOOLTIP_TEXT}},
- {type: 'Button',label: BUXMSG.BNR.IDS_BNR_REMOVE_FROM_FAVORITES_BUTTON_LABEL, actionId:'removefavorite', propertyId: '_oRemoveFromFavoritesButton', iconClass:'buxBannerRemoveFromFavoritesButton', showLabel: false, onClick: dojo.hitch(this, this.callRemoveFromFavorites), 'class': 'buxBannerButton', suppressTitle: true,
- tooltip: {title: BUXMSG.BNR.IDS_BNR_FAVORITE_TOGGLE_TOOLTIP_TITLE, text: BUXMSG.BNR.IDS_BNR_REMOVE_FROM_FAVORITES_BUTTON_TOOLTIP_TEXT}},
- {type: 'TextItem',label: '', showLabel: true, 'class': 'buxBannerEnvironmentTitle',propertyId:'_oEnvironmentTitle'}
- ]},
- {'class':'buxBannerMainToRightSection'},
- {'class':'buxBannerRightSection'}
- ]"/>
- <!-- banner spec for Do More -->
- <iw:item id="doMoreSpec" readOnly="true"
- value="
- [{'class':'buxBannerBlueDotSection',items: [
- {type: 'DropDownButton', label: BUXMSG.BNR.IDS_BNR_ROOT_MENU_LABEL, showLabel: false, iconClass: 'buxBlueDot', 'class': 'buxBannerBigButton', items: [
- {type: 'MenuItem', label: BUXMSG.BNR.IDS_BNR_CANCEL_BUTTON_LABEL, onClick: dojo.hitch(this, this.doMoreCancel)},
- {type: 'MenuItem', label: BUXMSG.BNR.IDS_BNR_DONE_BUTTON_LABEL, onClick: dojo.hitch(this, this.doMoreDone)}
- ], suppressTitle: true, tooltip: {title: BUXMSG.BNR.IDS_BNR_ROOT_MENU_TOOLTIP_TITLE, text: BUXMSG.BNR.IDS_BNR_ROOT_MENU_TOOLTIP_TEXT}}
- ]},
- {'class': 'buxBannerMainSectionLeft'},
- {'class': 'buxBannerMainSectionRight', items: [
- {type: 'TextItem', label: '', showLabel: true, 'class': 'buxBannerEnvironmentTitle', propertyId:'_oWidgetTitle'}
- ]},
- {'class': 'buxBannerMainToRightSection'},
- {'class': 'buxBannerRightSection', items: [
- {type: 'Button', label: BUXMSG.BNR.IDS_BNR_CANCEL_BUTTON_LABEL, onClick: dojo.hitch(this, this.doMoreCancel), 'class': 'buxBannerButton'},
- {type: 'Button', label: BUXMSG.BNR.IDS_BNR_DONE_BUTTON_LABEL, showLabel: true, onClick: dojo.hitch(this, this.doMoreDone), 'class': 'buxBannerRoundedButton', suppressTitle: true}
- ]}
- ]"/>
- </iw:itemSet>
- <iw:itemSet id="buxuserprofile" private="false">
- <iw:item id="version" value="1.0.0.0.0"/>
- <iw:item id="currentUserRole" readOnly="false" value="assemble"/>
- </iw:itemSet>
- <iw:resource uri="js/bux/iwidget/banner/Banner.js" skipLoad="bux.hasModule('bux/iwidget/banner/Banner')"/>
- <!--
- * Do not load CSS files directly here, use bux.uncompressed.css *
- <iw:resource uri="../../../themes/default/bux_banner.css" />
- <iw:resource uri="../../../themes/default/bux_menu.css" />
- <iw:resource uri="../../../themes/default/bux_tooltip.css" />
- <iw:resource uri="../../../themes/default/bux_about.css" />
- -->
- <!--This if fired when the banner is loaded. we use this event in our test page to find out the page is ready for testing-->
- <iw:event id="com.ibm.bux.banner.ready" eventDescName="com.ibm.bux.banner.readyDesc" published="true"/>
- <iw:eventDescription id="com.ibm.bux.banner.readyDesc" payloadType="string" description="Event fired when banner is loaded and ready" lang="en"/>
- <!-- Content Pane events -->
- <iw:event id="com.ibm.bux.contentpane.refresh" eventDescName="onRefreshContentPaneDesc" published="true"/>
- <iw:eventDescription id="onRefreshContentPaneDesc" payloadType="any" description="Refresh the Content Pane Event" lang="en"/>
- <iw:event id="com.ibm.bux.contentpane.toggle" eventDescName="com.ibm.bux.contentpane.toggleDesc" published="true"/>
- <iw:eventDescription id="com.ibm.bux.contentpane.toggleDesc" payloadType="string" description="Open the Content Pane Event" lang="en"/>
- <iw:event id="com.ibm.bux.contentpane.open" eventDescName="onOpenContentPaneDesc" published="true"/>
- <iw:eventDescription id="onOpenContentPaneDesc" payloadType="string" description="Open the Content Pane Event" lang="en"/>
- <iw:event id="com.ibm.bux.contentpane.close" eventDescName="onCloseContentPaneDesc" published="true"/>
- <iw:eventDescription id="onCloseContentPaneDesc" payloadType="string" description="Close the Content Pane Event" lang="en"/>
- <!-- Canvas events -->
- <!-- Refresh current dashboard -->
- <iw:event id="com.ibm.bux.canvas.refresh" eventDescName="com.ibm.bux.canvas.refreshDesc" published="true"/>
- <iw:eventDescription id="com.ibm.bux.canvas.refreshDesc" payloadType="any" description="Event for refreshing current dashboard."/>
- <!-- Resize widgets -->
- <iw:event id="com.ibm.bux.canvas.fitToWindow" eventDescName="com.ibm.bux.canvas.fitToWindowDesc" published="true"/>
- <iw:eventDescription id="com.ibm.bux.canvas.fitToWindowDesc" payloadType="any" description="Event for Fit to Window."/>
- <iw:event id="com.ibm.bux.canvas.bestFit" eventDescName="com.ibm.bux.canvas.bestFitDesc" published="true"/>
- <iw:eventDescription id="com.ibm.bux.canvas.bestFitDesc" payloadType="any" description="Event for Resize All to Window."/>
- <!-- Do More support -->
- <iw:event id="com.ibm.bux.canvas.doMore" eventDescName="com.ibm.bux.canvas.doMoreDesc" handled="true" onEvent="onCanvasDoMore"/>
- <iw:eventDescription id="com.ibm.bux.canvas.doMoreDesc" payloadType="any" description="Event for loading a banner spec."/>
- <iw:event id="com.ibm.bux.canvas.doMore.action" eventDescName="com.ibm.bux.canvas.doMoreDesc" published="true"/>
- <iw:eventDescription id="com.ibm.bux.canvas.doMore.actionDesc" payloadType="any" description="Event for a Do More action (load, save or cancel)."/>
- <iw:content mode="view">
- <![CDATA[
- <div id="_IWID_bannerdiv" style="overflow:hidden;"/>
- ]]>
- </iw:content>
- </iw:iwidget>
|