Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\ 

{table:id=|class=servoy sReturnTypes}{tr:style=height: 30px;}{th}Return Types Details{th}{tr}{tr}{td}{span:class=sWordList}[CheckBox]{span}{span:class=sWordList}[JSMenuItemMenu]{span}{span:class=sWordList}[MenuMenuBar]{span}{span:class=sWordList}[MenuItem]{span}{span:class=sWordList}[Popup]{span}{span:class=sWordList}[RadioButton]{span}{span:class=sWordList}[ToolBar]{span}{td}{tr}{table}\\ 

{table:id=|class=servoy sSummery}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[Menu]{td}{td}[#addMenu]\(index)
Add the menu at the selected index (starting at 0) or add it at the end (empty).{tdSummery{th}{tr}{tbody}{tbody}{tr}{td}[ToolBar]{td}{td}[#addToolBar]\(name, \[displayname], \[row])
Add a toolbar by name and optional displayname and row.{td}{tr}{tbody}{tbody}{tr}{td}[Popup]{td}{td}[#createPopupMenu]\()
{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#createShortcut]\(shortcut, method, \[form_name])
Create a shortcut.{td}{tr}{tbody}{tbody}{tr}{td}[MenuMenuBar]{td}{td}[#getMenu#getMenuBar]\(index\[windowName])
Get the menumenubar atof the selected index (starting at 0).{tda window.{td}{tr}{tbody}{tbody}{tr}{td}[NumberToolBar]{td}{td}[#getMenuCount#getToolBar]\(name)
Get the number of (top level) menu'stoolbar from the toolbar panel by name.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[Number]{td}{td}[#getMenuIndexByText#getToolbarNames]\(menuName)
RetrieveGet all thetoolbar indexnames offrom the itemtoolbar by textpanel.{td}{tr}{tbody}{tbody}{tr}{td}[ToolBarBoolean]{td}{td}[#getToolBar#removeShortcut]\(shortcut, \[form_name])
GetRemove the toolbar from the toolbar panel by namea shortcut.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]void{td}{td}[#getToolbarNames#removeToolBar]\(name)
GetRemove allthe toolbar names from the toolbar panel.{td}{tr}{tbody}{tbody}{tr}{td}[Menu]void{td}{td}[#removeAllMenus#setFullScreen]\()
Remove all
menus from the menubar.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#removeMenu#setStatusBarVisible]\(index 1, index 2-n)
Remove the
menu(s) at the selected index/indices.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]void{td}{td}[#removeShortcut#setToolBarVisible]\(shortcut, form_name)
Remove a
shortcut.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#removeToolBar]\(name)
Remove the toolbar from the toolbar panel.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#resetMenuBar]\()
Reset the menubar to the default.{tdtable}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=addToolBar|class=node}{tbody}{trtr:id=name}{td}void{td}{td}[#setFullScreen]\()
h6.addToolBar{td}{tr}{tbody}{tbody}{tr:id=sig}{td}void{td}{td}[#setMenuVisible]\()
{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setStatusBarVisible]\()
{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setToolBarVisible]\()
{span:style=float: left; margin-right: 5px;}[ToolBar]{span}{span:id=iets|style=float: left; font-weight: bold;}addToolBar{span}{span:id=iets|style=float: left;}\(name, \[displayname], \[row]){span}{td}{tr}{tbody}{tbody}{trtr:id=des}{td}void{td}{td}[#validateMenuBar]\()
Use this when your add/remove/edit operation won't refresh.{sub-section:addToolBar_des|text=|trigger=button}{sub-section}{sub-section:addToolBar_des|trigger=none|class=sIndent}Add a toolbar by name and optional displayname and row.{sub-section}{td}{tr}{builder-show:permission=edit}{tbodytr:id=snc}{tabletd}*Since*\\ 

{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=90FDAB7D-71C9-4D81-92A7-907E1679B33F}{tr:id=name}{td}h6.addMenu{sub-section:addToolBar_snc|text=|trigger=button}{sub-section}{sub-section:addToolBar_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addToolBar_prs|text=|trigger=button}{sub-section}{sub-section:addToolBar_prs|trigger=none|class=sIndent}name
\[displayname]
\[row]
{sub-section}{td}{tr}{tr:id=sigret}{td}{span:style=float: left; margin-right: 5px;}[Menu]{span}{span:id=iets|style=float: left; font-weight: bold;}addMenu{span}{span:id=iets|style=float: left;}\(index){span*Returns*\\{sub-section:addToolBar_ret|text=|trigger=button}{sub-section}{sub-section:addToolBar_ret|trigger=none|class=sIndent}[ToolBar]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=dessee}{td}*Also see*\\{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_desaddToolBar_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_desaddToolBar_see|trigger=none|class=sIndent}Add the menu at the selected index (starting at 0) or add it at the end (empty).{sub-section}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prslink}{td}*ParametersExternal links*\\{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_prsaddToolBar_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_prsaddToolBar_link|trigger=none}\[index\]
{sub-section}{div}{td}{tr}{builder-show}{tr:id=retsam}{td}*ReturnsSample*\\{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_retaddToolBar_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_retaddToolBar_sam|trigger=none|class=sIndent}[Menu]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_see|text=|trigger=button}{sub-section}{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_see|text=|trigger=button}{sub-section}{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_link|class=sIndent|trigger=none}{sub-section{code:language=javascript}
// Note: method addToolBar only works in the smart client.

// Add a toolbar by name and optional displayname and row.
// add a toolbar with only a name
var toolbar = plugins.window.addToolBar("toolbar_0");

// add a toolbar with a name and internal name
// var toolbar = plugins.window.addToolBar("toolbar_1", "toolbar_1");

// add a toolbar with a name, internal name and the row you want the
// toolbar to show at. rownumber starts at 0 
// var toolbar = plugins.window.addToolBar("toolbar_2", "toolbar_2", 3);

// REMARK: normally you would add buttons, checkboxes etc in the same method
// this example will show no buttons for now!
// we will add them via the other methods on this form.
{code}{sub-section}{div}{td}{tr}{builder-show}{tr:id=samclass=lastDetailRow}{td}{td}*Sample*\\{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_sam|text=|trigger=button}{sub-section}{sub-section:90FDAB7D-71C9-4D81-92A7-907E1679B33F_sam|class=sIndent|trigger=none}{code:language=javascript}
// Note: method addMenu only works in the smart client.

// Add the menu at the selected index (starting at 0) or add it at the end (empty).
// add a menu at the given index
// when you don't define an index the menu will be added at the last
// positon of the menubar
var menu = plugins.window.addMenu();

// set the text of the menu at the chose position
menu.setText("add menu");

// set the mnemonic key
menu.setMnemonic("a");

// enable the menu
menu.setEnabled(true);

// REMARK: normally you would add menu items, checkboxes etc in the same method
// this example will show no menu items for now!

// IMPORTANT: Working with menu's on developer and client can differ
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B}{tr:id=name}{td}h6.addToolBar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[ToolBar]{span}{span:id=iets|style=float: left; font-weight: bold;}addToolBar{span}{span:id=iets|style=float: left;}\(name, displayname, row){span}{td}{tr}{tr:id=des}{td}{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_des}{tr}{tbody}{tbody:id=createPopupMenu|class=node}{tr:id=name}{td}h6.createPopupMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Popup]{span}{span:id=iets|style=float: left; font-weight: bold;}createPopupMenu{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:createPopupMenu_des|text=|trigger=button}{sub-section}{sub-section:createPopupMenu_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createPopupMenu_snc|text=|trigger=button}{sub-section}{sub-section:createPopupMenu_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:createPopupMenu_prs|text=|trigger=button}{sub-section}{sub-section:createPopupMenu_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:createPopupMenu_ret|text=|trigger=button}{sub-section}{sub-section:createPopupMenu_ret|trigger=none|class=sIndent}[Popup]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createPopupMenu_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPopupMenu_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createPopupMenu_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPopupMenu_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createPopupMenu_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_descreatePopupMenu_sam|trigger=none|class=sIndent}Add a toolbar by name and optional displayname and row.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_prs|trigger=none}name
\[displayname\]
\[row\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_ret|text=|trigger=button}{sub-section}{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_ret|trigger=none|class=sIndent}[ToolBar]{sub-section}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

var menuitem1 = popupmenu.addMenuItem('A',myMethod)
var menuitem2 = popupmenu.addRadioButton('B',myMethod)
var menuitem3 = popupmenu.addRadioButton('C',myMethod)
var menuitem4 = popupmenu.addSeparator()
var menuitem5 = popupmenu.addMenuItem('<html><b>Hello</b></html>',myMethod)
var menuitem6 = popupmenu.addMenuItem('G', globals.myGlobalMethod)

var submenu = popupmenu.addMenu('SubMenu')
var subitem1 = submenu.addCheckBox('i18n:bla_bla',myMethod)
var subitem2 = submenu.addCheckBox('he' , globals.myOtherGlobalMethod , 'media:///day_obj.gif')
var subitem3 = submenu.addCheckBox('more' , globals.myOtherGlobalMethod ,null, 'm') //last parameter is mnemonic-key

menuitem2.setSelected(true);
menuitem6.setEnabled(false)
subitem2.setSelected(true);

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{div}{td}{tr}{builder-showtr:permissionclass=editlastDetailRow}{tr:id=seetd}{td}*Also see*\\{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_see|text=|trigger=button}{sub-section}{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit{tr}{tbody}{tbody:id=createShortcut|class=node}{tr:id=name}{td}h6.createShortcut{td}{tr}{tr:id=linksig}{td}*External links*\\{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_see|text=|trigger=button}{sub-section}{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_link|class=sIndent|trigger=none}{sub-section{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}createShortcut{span}{span:id=iets|style=float: left;}\(shortcut, method, \[form_name]){span}{td}{tr}{builder-show}{tr:id=samdes}{td}*Sample*\\{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_samcreateShortcut_des|text=|trigger=button}{sub-section}{sub-section:AE6DCC33-6063-48CD-83E4-CB68F4DE0F0B_sam|class=sIndent|trigger=none}{code:language=javascript}
// Note: method addToolBar only works in the smart client.

// Add a toolbar by name and optional displayname and row.
// add a toolbar with only a name
var toolbar = plugins.window.addToolBar("toolbar_0");

// add a toolbar with a name and internal name
// var toolbar = plugins.window.addToolBar("toolbar_1", "toolbar_1");

// add a toolbar with a name, internal name and the row you want the
// toolbar to show at. rownumber starts at 0 
// var toolbar = plugins.window.addToolBar("toolbar_2", "toolbar_2", 3);

// REMARK: normally you would add buttons, checkboxes etc in the same method
// this example will show no buttons for now!
// we will add them via the other methods on this form.
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{tdcreateShortcut_des|trigger=none|class=sIndent}Create a shortcut.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createShortcut_snc|text=|trigger=button}{sub-section}{sub-section:createShortcut_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createShortcut_prs|text=|trigger=button}{sub-section}{sub-section:createShortcut_prs|trigger=none|class=sIndent}shortcut
method
\[form\_name]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createShortcut_ret|text=|trigger=button}{sub-section}{sub-section:createShortcut_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createShortcut_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createShortcut_see|trigger=none}{sub-section}{div}{td}{tr}{tbodybuilder-show}{tbodybuilder-show:id=D5A019BA-02DB-4F2D-A30C-FF6428DF8D6Fpermission=edit}{tr:id=namelink}{td}h6.createPopupMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Popup]{span}{span:id=iets|style=float: left; font-weight: bold;}createPopupMenu{span}{span:id=iets|style=float: left;}\(){span*External links*\\{sub-section:createShortcut_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createShortcut_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=dessam}{td}{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_des|text=|trigger=button}{sub-section}{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters**Sample*\\{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_prscreateShortcut_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_prscreateShortcut_sam|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_ret|text=|trigger=button}{sub-section}{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_ret|trigger=none|class=sIndent}[Popup]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_see|text=|trigger=button}{sub-section}{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_see|text=|trigger=button}{sub-section}{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_sam|text=|trigger=button}{sub-section}{sub-section:D5A019BA-02DB-4F2D-A30C-FF6428DF8D6F_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

var menuitem1 = popupmenu.addMenuItem('A',myMethod)
var menuitem2 = popupmenu.addRadioButton('B',myMethod)
var menuitem3 = popupmenu.addRadioButton('C',myMethod)
var menuitem4 = popupmenu.addSeparator()
var menuitem5 = popupmenu.addMenuItem('<html><b>Hello</b></html>',myMethod)
var menuitem6 = popupmenu.addMenuItem('G', globals.myGlobalMethod)

var submenu = popupmenu.addMenu('SubMenu')
var subitem1 = submenu.addCheckBox('i18n:bla_bla',myMethod)
var subitem2 = submenu.addCheckBox('he' , globals.myOtherGlobalMethod , 'media:///day_obj.gif')
var subitem3 = submenu.addCheckBox('more' , globals.myOtherGlobalMethod ,null, 'm') //last parameter is mnemonic-key

menuitem2.setSelected(true);
menuitem6.setEnabled(false)
subitem2.setSelected(true);

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{code:language=javascript}
// Create a shortcut.
// this plugin uses the java keystroke parser
// see http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/KeyStroke.html#getKeyStroke(java.lang.String)

// global shortcut (on all forms) on  'apple 1' on a mac client and 'control 1' on other client platforms
plugins.window.createShortcut('menu 1', 'globals.handleShortcut');
// global handler, only triggered when on form frm_orders
plugins.window.createShortcut('control shift I', globals.handleOrdersShortcut, 'frm_orders');
// form method called when shortcut is used
plugins.window.createShortcut('control LEFT', 'frm_products.handleShortcut', 'frm_products');
// same, but use method in stead of string
plugins.window.createShortcut('control RIGHT', forms.frm_contacts.handleMyShortcut, 'frm_contacts');

// remove global shortcut and form-level shortcut
plugins.window.createShortcut('menu 1');
plugins.window.removeShortcut('control RIGHT', 'frm_contacts');

// shortcut handlers are called with an jsevent argument
///**
//* Handle keyboard shortcut.
//*
//* @param {JSEvent} event the event that triggered the action
//*/
//function handleShortcut(event)
//{
//  application.output(event.getType()) // returns 'menu 1'
//  application.output(event.getFormName()) // returns 'frm_contacts'
//  application.output(event.getElementName()) // returns 'contact_name_field' or null when no element is selected
//}

// NOTE: shortcuts will not override existing operating system or browser shortcuts,
// choose your shortcuts careful to make sure they work in all clients.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8CD39777-1D25-49BD-B8A4-BD6DD7FB11FF=getMenuBar|class=node}{tr:id=name}{td}h6.createShortcutgetMenuBar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[BooleanMenuBar]{span}{span:id=iets|style=float: left; font-weight: bold;}createShortcutgetMenuBar{span}{span:id=iets|style=float: left;}\(shortcut, method, form_name\[windowName]){span}{td}{tr}{tr:id=des}{td}{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FFgetMenuBar_des|text=|trigger=button}{sub-section}{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FFgetMenuBar_des|trigger=none|class=sIndent}CreateGet the menubar of a shortcutwindow.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FF_prsgetMenuBar_snc|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FF_prsgetMenuBar_snc|trigger=none}shortcut
method
\[form_name\]
|class=sIndent} Replace with version info{sub-section}{divtd}{tdtr}{trbuilder-show}{tr:id=retprs}{td}*ReturnsParameters*\\{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FF_retgetMenuBar_prs|text=|trigger=button}{sub-section}{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FF_retgetMenuBar_prs|trigger=none|class=sIndent}\[BooleanwindowName]
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=seeret}{td}*Also seeReturns*\\{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FF_seegetMenuBar_ret|text=|trigger=button}{sub-section}{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FF_seegetMenuBar_ret|trigger=none|class=sIndent|trigger=none}}[MenuBar]{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksee}{td}*ExternalAlso linkssee*\\{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FFgetMenuBar_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FF_link|class=sIndentgetMenuBar_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=samlink}{td}*SampleExternal links*\\{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FF_samgetMenuBar_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8CD39777-1D25-49BD-B8A4-BD6DD7FB11FF_sam|class=sIndent|trigger=none}{code:language=javascript}
// Create a shortcut.
// this plugin uses the java keystroke parser
// see http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/KeyStroke.html#getKeyStroke(java.lang.String)

// global shortcut (on all forms) on  'apple 1' on a mac client and 'control 1' on other client platforms
plugins.window.createShortcut('menu 1', 'globals.handleShortcut');
// global handler, only triggered when on form frm_orders
plugins.window.createShortcut('control shift I', globals.handleOrdersShortcut, 'frm_orders');
// form method called when shortcut is used
plugins.window.createShortcut('control LEFT', 'frm_products.handleShortcut', 'frm_products');
// same, but use method in stead of string
plugins.window.createShortcut('control RIGHT', forms.frm_contacts.handleMyShortcut, 'frm_contacts');

// remove global shortcut and form-level shortcut
plugins.window.createShortcut('menu 1');
plugins.window.removeShortcut('control RIGHT', 'frm_contacts');

// shortcut handlers are called with an jsevent argument
///**
//* Handle keyboard shortcut.
//*
//* @param {JSEvent} event the event that triggered the action
//*/
//function handleShortcut(event)
//{
//  application.output(event.getType()) // returns 'menu 1'
//  application.output(event.getFormName()) // returns 'frm_contacts'
//  application.output(event.getElementName()) // returns 'contact_name_field' or null when no element is selected
//}

// NOTE: shortcuts will not override existing operating system or browser shortcuts,
// choose your shortcuts careful to make sure they work in all clients.
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=04F078EB-4029-45BA-B746-A42C0C02F2ED}{tr:id=name}{td}h6.getMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Menu]{span}{span:id=iets|style=float: left; font-weight: bold;}getMenu{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_des|text=|trigger=button}{sub-section}{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_des|trigger=none|class=sIndent}Get the menu at the selected index (starting at 0).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_prs|trigger=none}index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_ret|text=|trigger=button}{sub-section}{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_ret|trigger=none|class=sIndent}[Menu]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_see|text=|trigger=button}{sub-section}{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_see|text=|trigger=button}{sub-section}{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_sam|text=|trigger=button}{sub-section}{sub-section:04F078EB-4029-45BA-B746-A42C0C02F2ED_sam|class=sIndent|trigger=none}{code:language=javascript}
// Note: method getMenu only works in the smart client.

// Get the menu at the selected index (starting at 0).
// get the menu from at index 2
// indexes start at 0 (zero) so index 2 is in fact position 3
var menu = plugins.window.getMenu(2);

// set the text of the menu at the chose position
menu.setText("get menu");$

// set the mnemonic key
menu.setMnemonic("g");

// disable the menu
menu.setEnabled(false);

// REMARK: we actually changed an original menu! As a result resetting the
// menubar will NOT reset the above changes. We need to reset the menu 
// manually the following way:

// get the menu
// var menu = plugins.window.getMenu(2);

// reset the values to default
// notice we use an i18n message here the same way you would use it with
// standard Servoy methods and plugins
// menu.setText("i18n:servoy.menuitem.showAll");// menu.setEnabled(true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=75C40F94-7517-4AE5-8F30-B55752197FC4}{tr:id=name}{td}h6.getMenuCount{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getMenuCount{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_des|text=|trigger=button}{sub-section}{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_des|trigger=none|class=sIndent}Get the number of (top level) menu's.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_ret|text=|trigger=button}{sub-section}{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_see|text=|trigger=button}{sub-section}{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_see|text=|trigger=button}{sub-section}{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_sam|text=|trigger=button}{sub-section}{sub-section:75C40F94-7517-4AE5-8F30-B55752197FC4_sam|class=sIndent|trigger=none}{code:language=javascript}
// Note: method getMenuCount only works in the smart client.

// Get the number of (top level) menu's.
plugins.window.getMenuCount()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F5B88141-6426-450B-9262-CAB4C904539F}{tr:id=name}{td}h6.getMenuIndexByText{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getMenuIndexByText{span}{span:id=iets|style=float: left;}\(menuName){span}{td}{tr}{tr:id=des}{td}{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_des|text=|trigger=button}{sub-section}{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_des|trigger=none|class=sIndent}Retrieve the index of the item by text.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_prs|trigger=none}menuName
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_ret|text=|trigger=button}{sub-section}{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_see|text=|trigger=button}{sub-section}{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_see|text=|trigger=button}{sub-section}{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_sam|text=|trigger=button}{sub-section}{sub-section:F5B88141-6426-450B-9262-CAB4C904539F_sam|class=sIndent|trigger=none}{code:language=javascript}
// Retrieve the index of the item by text.
plugins.window.getMenuIndexByText()
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=224F66AA-8E4C-40DB-98C8-9DCA68BEB953}{tr:id=name}{td}h6.getToolBar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[ToolBar]{span}{span:id=iets|style=float: left; font-weight: bold;}getToolBar{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_des|text=|trigger=button}{sub-section}{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_des|trigger=none|class=sIndent}Get the toolbar from the toolbar panel by name.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_prs|trigger=none}name
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_ret|text=|trigger=button}{sub-section}{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_ret|trigger=none|class=sIndent}[ToolBar]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_see|text=|trigger=button}{sub-section}{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_see|text=|trigger=button}{sub-section}{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_sam|text=|trigger=button}{sub-section}{sub-section:224F66AA-8E4C-40DB-98C8-9DCA68BEB953_sam|class=sIndent|trigger=none}{code:language=javascript}
// Note: method getToolBar only works in the smart client.

// Get the toolbar from the toolbar panel by name.
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_0");

// add a button with a text and a method
toolbar.addButton("button", feedback_button);

// add an input array to the button for feedback in the selected method
toolbar.addButton("button", feedback_button, [1, "2", "three"]);

// add an icon to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif");

// add a tooltip to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.");

// show only an icon on the button and disable the button
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.", false);

// add a separator
toolbar.addSeparator();

// make the button non visible
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.",true, false);

// and validate the changes
// to make them know to the user interface)
toolbar.validate();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=812BC191-599C-4616-AE24-1CA2A31A74DF}{tr:id=name}{td}h6.getToolbarNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getToolbarNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_des|text=|trigger=button}{sub-section}{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_des|trigger=none|class=sIndent}Get all toolbar names from the toolbar panel.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_ret|text=|trigger=button}{sub-section}{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_see|text=|trigger=button}{sub-section}{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_see|text=|trigger=button}{sub-section}{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_sam|text=|trigger=button}{sub-section}{sub-section:812BC191-599C-4616-AE24-1CA2A31A74DF_sam|class=sIndent|trigger=none}{code:language=javascript}
// Note: method getToolbarNames only works in the smart client.

// Get all toolbar names from the toolbar panel.
// create an array of toolbar names
var names = plugins.window.getToolbarNames();

// create an empty message variable
var message = "";

// loop through the array
for (var i = 0 ; i < names.length ; i++) {
	//add the name(s) to the message
	message += names[i] + "\n";
}

// show the message
plugins.dialogs.showInfoDialog("toolbar names", message);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=BA79C893-F82F-46F6-9BAE-37E931B1E80A}{tr:id=name}{td}h6.removeAllMenus{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Menu]{span}{span:id=iets|style=float: left; font-weight: bold;}removeAllMenus{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_des|text=|trigger=button}{sub-section}{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_des|trigger=none|class=sIndent}Remove all menus from the menubar.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_ret|text=|trigger=button}{sub-section}{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_ret|trigger=none|class=sIndent}[Menu]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_see|text=|trigger=button}{sub-section}{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_see|text=|trigger=button}{sub-section}{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_sam|text=|trigger=button}{sub-section}{sub-section:BA79C893-F82F-46F6-9BAE-37E931B1E80A_sam|class=sIndent|trigger=none}{code:language=javascript}
// Note: method removeAllMenus only works in the smart client.

// Remove all menus from the menubar.
// Remove all menus from the menubar.
// Potentially dangerous because all accelerator (short) keys
// will be deleted also (including the quit item)
plugins.window.removeAllMenus();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F214159B-33AF-4C29-A1AD-F29143AF78B8}{tr:id=name}{td}h6.removeMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeMenu{span}{span:id=iets|style=float: left;}\(index 1, index 2-n){span}{td}{tr}{tr:id=des}{td}{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_des|text=|trigger=button}{sub-section}{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_des|trigger=none|class=sIndent}Remove the menu(s) at the selected index/indices.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_prs|trigger=none}index 1
\[index 2-n\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_ret|text=|trigger=button}{sub-section}{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_see|text=|trigger=button}{sub-section}{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_see|text=|trigger=button}{sub-section}{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_sam|text=|trigger=button}{sub-section}{sub-section:F214159B-33AF-4C29-A1AD-F29143AF78B8_sam|class=sIndent|trigger=none}{code:language=javascript}
// Note: method removeMenu only works in the smart client.

// Remove the menu(s) at the selected index/indices.
// To remove the last menu in the menubar we count the number of menu's in the menubar
// because the index starts at 0 we have to substract 1 from the counted menu's
// to actually remove the last menu from the menubar
plugins.window.removeMenu(plugins.window.getMenuCount() - 1);

// To remove the last 3 (three) menu's from the menubar we
// can do that by adding additional indexes to the method
// and delimit them with a comma.
var index = plugins.window.getMenuCount() - 1;

// remove the last item
plugins.window.removeMenu(index);

// remove 3 (three) items
// plugins.window.removeMenu(this.index, index-1, 2);

// For 'security' reasons it is best to ALWAYS remove the menu with the last index
// first to avoid index out of range issues and other issues
// EXAMPLE: when you first remove the menu at index 2 and then the menu at index 4
// you actually remove the menu at index 2 and index 5
// after removing the menu at index 2 all other menu's moved one index to the left
// so the menu at index 4 moved to index 3 and the menu at index 5 moved to index 4 etc.
{code}{sub-sectiongetMenuBar_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getMenuBar_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMenuBar_sam|trigger=none}{code:language=javascript}
// Get the menubar of a window.
// get the menubar of the main window
var mainMenubar = plugins.window.getMenuBar();

// get the menubar of a named window
application.showFormInWindow(forms.contacts,100,80,500,300,'my own window title',false,true,'mywindow');
var myWindowMenubar = plugins.window.getMenuBar('mywindow');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FCgetToolBar|class=node}{tr:id=name}{td}h6.removeShortcutgetToolBar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[BooleanToolBar]{span}{span:id=iets|style=float: left; font-weight: bold;}removeShortcutgetToolBar{span}{span:id=iets|style=float: left;}\(shortcut, form_name){span}{td}{tr}{tr:id=des}{td}{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FCgetToolBar_des|text=|trigger=button}{sub-section}{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FC_desgetToolBar_des|trigger=none|class=sIndent}Get the toolbar from the toolbar panel by name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getToolBar_snc|text=|trigger=button}{sub-section}{sub-section:getToolBar_snc|trigger=none|class=sIndent}Remove a shortcut. Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FCgetToolBar_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FCgetToolBar_prs|trigger=none}shortcut
\[form_name\]|class=sIndent}name
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FCgetToolBar_ret|text=|trigger=button}{sub-section}{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FCgetToolBar_ret|trigger=none|class=sIndent}[BooleanToolBar]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FCgetToolBar_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FCgetToolBar_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FC_see-section:getToolBar_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FCgetToolBar_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FCgetToolBar_sam|text=|trigger=button}{sub-section}{sub-section:0BAF2BDD-9C10-48A8-8BD5-F25D5FEB67FC_sam|div:class=sIndent|trigger=none}{code:language=javascript}
// Remove a shortcut.
// this plugin uses the java keystroke parser
// see http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/KeyStroke.html#getKeyStroke(java.lang.String)

// global shortcut (on all forms) on  'apple 1' on a mac client and 'control 1' on other client platforms
plugins.window.createShortcut('menu 1', 'globals.handleShortcut');
// global handler, only triggered when on form frm_orders
plugins.window.createShortcut('control shift I', globals.handleOrdersShortcut, 'frm_orders');
// form method called when shortcut is used
plugins.window.createShortcut('control LEFT', 'frm_products.handleShortcut', 'frm_products');
// same, but use method in stead of string
plugins.window.createShortcut('control RIGHT', forms.frm_contacts.handleMyShortcut, 'frm_contacts'}{sub-section:getToolBar_sam|trigger=none}{code:language=javascript}
// Note: method getToolBar only works in the smart client.

// Get the toolbar from the toolbar panel by name.
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_0");

// add a button with a text and a method
toolbar.addButton("button", feedback_button);

// add an input array to the button for feedback in the selected method
toolbar.addButton("button", feedback_button, [1, "2", "three"]);

// removeadd globalan shortcuticon andto form-levelthe shortcutbutton
pluginstoolbar.window.createShortcut('menu 1');
plugins.window.removeShortcut('control RIGHT', 'frm_contacts'addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif");

// shortcut handlers are called with an jsevent argument
///**
//* Handle keyboard shortcut.
//*
//* @param {JSEvent} event the event that triggered the action
//*/
//function handleShortcut(event)
//{
//  application.output(event.getType()) // returns 'menu 1'
//  application.output(event.getFormName()) // returns 'frm_contacts'
//  application.output(event.getElementName()) // returns 'contact_name_field' or null when no element is selected
//}

// NOTE: shortcuts will not override existing operating system or browser shortcuts,
// choose your shortcuts careful to make sure they work in all clients. add a tooltip to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.");

// show only an icon on the button and disable the button
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.", false);

// add a separator
toolbar.addSeparator();

// make the button non visible
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.",true, false);

// and validate the changes
// to make them know to the user interface)
toolbar.validate();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=926C017C-CF22-46E3-9AC5-4F73B5585567=getToolbarNames|class=node}{tr:id=name}{td}h6.removeToolBargetToolbarNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}removeToolBargetToolbarNames{span}{span:id=iets|style=float: left;}{span:id=iets|style=float: left;}\(name){span\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getToolbarNames_des|text=|trigger=button}{sub-section}{sub-section:getToolbarNames_des|trigger=none|class=sIndent}Get all toolbar names from the toolbar panel.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=dessnc}{td}*Since*\\{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567_desgetToolbarNames_snc|text=|trigger=button}{sub-section}{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567_desgetToolbarNames_snc|trigger=none|class=sIndent}Remove theReplace toolbarwith from the toolbar panel.version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567getToolbarNames_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567getToolbarNames_prs|trigger=none|class=sIndent}name
{sub-section}{divtd}{tdtr}{trbuilder-show}{tr:id=ret}{td}*Returns*\\{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567getToolbarNames_ret|text=|trigger=button}{sub-section}{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567getToolbarNames_ret|trigger=none|class=sIndent}void[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567getToolbarNames_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567getToolbarNames_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567_seegetToolbarNames_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567getToolbarNames_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567getToolbarNames_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:926C017C-CF22-46E3-9AC5-4F73B5585567getToolbarNames_sam|class=sIndent|trigger=none}{code:language=javascript}
// Note: method removeToolBargetToolbarNames only works in the smart client.

// RemoveGet theall toolbar names from the toolbar panel.
// removing a toolbar from the toolbar panel is done by name
// the plugin checks the existence of the toolbar
// when the toolbar does not exist it will not throw an error though.
plugins.window.removeToolBar("toolbar_0");
plugins.window.removeToolBar("toolbar_1");
plugins.window.removeToolBar("toolbar_2"create an array of toolbar names
var names = plugins.window.getToolbarNames();

// create an empty message variable
var message = "";

// loop through the array
for (var i = 0 ; i < names.length ; i++) {
	//add the name(s) to the message
	message += names[i] + "\n";
}

// show the message
plugins.dialogs.showInfoDialog("toolbar names", message);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D7E15631-2F74-4A60-8F8E-5833A5EF8CCAremoveShortcut|class=node}{tr:id=name}{td}h6.resetMenuBarremoveShortcut{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}resetMenuBarremoveShortcut{span}{span:id=iets|style=float: left;}\(\(shortcut, \[form_name]){span}{td}{tr}{tr:id=des}{td}{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCAremoveShortcut_des|text=|trigger=button}{sub-section}{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCAremoveShortcut_des|trigger=none|class=sIndent}ResetRemove the menubar to the defaulta shortcut.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCA_prsremoveShortcut_snc|text=|trigger=button}{sub-section}{div:sub-section:removeShortcut_snc|trigger=none|class=sIndent} Replace with version info{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCA}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeShortcut_prs|text=|trigger=button}{sub-section}{sub-section:removeShortcut_prs|trigger=none|class=sIndent}shortcut
\[form\_name]
{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCAremoveShortcut_ret|text=|trigger=button}{sub-section}{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCAremoveShortcut_ret|trigger=none|class=sIndent}void[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCAremoveShortcut_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCAremoveShortcut_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCA_seeremoveShortcut_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCAremoveShortcut_link|class=sIndent|trigger=none}{sub-sectionsection}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCAremoveShortcut_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D7E15631-2F74-4A60-8F8E-5833A5EF8CCAremoveShortcut_sam|class=sIndent|trigger=none}{code:language=javascript}
// Note: method resetMenuBar only works in the smart client.

// Reset the menubar to the default.
// When the menubar settings are solution specific it is advised to reset
// the bar to its default settings when closing the solution.}
// Another reason is that whenRemove a client/developer is started first the
shortcut.
// this plugin willuses save the currentjava settingskeystroke inparser
memory
// see REMARK: Don't manipulate standard Servoy menuitems but remove
// them and create new ones! Due to the way menuitems are managed by java it is not
// possible to reset a menuitem anymore.
plugins.window.resetMenuBar();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3ADDD3D6-8ABF-4FEE-B106-32FAC073552F}{tr:id=name}{td}h6.setFullScreen{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setFullScreen{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_des|text=|trigger=button}{sub-section}{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_ret|text=|trigger=button}{sub-section}{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_see|text=|trigger=button}{sub-section}{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_see|text=|trigger=button}{sub-section}{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_sam|text=|trigger=button}{sub-section}{sub-section:3ADDD3D6-8ABF-4FEE-B106-32FAC073552F_sam|class=sIndent|trigger=none}{code:language=javascript}
plugins.window.setFullScreen(true)
{code}{sub-sectionhttp://java.sun.com/j2se/1.5.0/docs/api/javax/swing/KeyStroke.html#getKeyStroke(java.lang.String)

// global shortcut (on all forms) on  'apple 1' on a mac client and 'control 1' on other client platforms
plugins.window.createShortcut('menu 1', 'globals.handleShortcut');
// global handler, only triggered when on form frm_orders
plugins.window.createShortcut('control shift I', globals.handleOrdersShortcut, 'frm_orders');
// form method called when shortcut is used
plugins.window.createShortcut('control LEFT', 'frm_products.handleShortcut', 'frm_products');
// same, but use method in stead of string
plugins.window.createShortcut('control RIGHT', forms.frm_contacts.handleMyShortcut, 'frm_contacts');

// remove global shortcut and form-level shortcut
plugins.window.createShortcut('menu 1');
plugins.window.removeShortcut('control RIGHT', 'frm_contacts');

// shortcut handlers are called with an jsevent argument
///**
//* Handle keyboard shortcut.
//*
//* @param {JSEvent} event the event that triggered the action
//*/
//function handleShortcut(event)
//{
//  application.output(event.getType()) // returns 'menu 1'
//  application.output(event.getFormName()) // returns 'frm_contacts'
//  application.output(event.getElementName()) // returns 'contact_name_field' or null when no element is selected
//}

// NOTE: shortcuts will not override existing operating system or browser shortcuts,
// choose your shortcuts careful to make sure they work in all clients.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4B5C86CE-82A5-4DED-9D63-20A45292316EremoveToolBar|class=node}{tr:id=name}{td}h6.setMenuVisibleremoveToolBar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setMenuVisibleremoveToolBar{span}{span:id=iets|style=float: left;}\(){span=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:removeToolBar_des|text=|trigger=button}{sub-section}{sub-section:removeToolBar_des|trigger=none|class=sIndent}Remove the toolbar from the toolbar panel.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=dessnc}{td}*Since*\\{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316E_desremoveToolBar_snc|text=|trigger=button}{sub-section}{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316E_desremoveToolBar_snc|trigger=none|class=sIndent} Replace with version descriptioninfo{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316EremoveToolBar_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316EremoveToolBar_prs|trigger=none|class=sIndent}name
{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316EremoveToolBar_ret|text=|trigger=button}{sub-section}{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316E-section:removeToolBar_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316EremoveToolBar_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316EremoveToolBar_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316E_seeremoveToolBar_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316EremoveToolBar_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316E_sam|text=|trigger=button}{sub-section}{sub-section:4B5C86CE-82A5-4DED-9D63-20A45292316E_sam|class=sIndent|trigger=none}{code:language=javascript}
plugins.window.setMenuVisible(false)-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeToolBar_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeToolBar_sam|trigger=none}{code:language=javascript}
// Note: method removeToolBar only works in the smart client.

// Remove the toolbar from the toolbar panel.
// removing a toolbar from the toolbar panel is done by name
// the plugin checks the existence of the toolbar
// when the toolbar does not exist it will not throw an error though.
plugins.window.removeToolBar("toolbar_0");
plugins.window.removeToolBar("toolbar_1");
plugins.window.removeToolBar("toolbar_2");
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3D092CF4-D553-47B9-BA7B-91A841326C12setFullScreen|class=node}{tr:id=name}{td}h6.setStatusBarVisiblesetFullScreen{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setStatusBarVisiblesetFullScreen{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12setFullScreen_des|text=|trigger=button}{sub-section}{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12_dessetFullScreen_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setFullScreen_snc|text=|trigger=button}{sub-section}{sub-section:setFullScreen_snc|trigger=none|class=sIndent} Replace with version descriptioninfo{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12setFullScreen_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12setFullScreen_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12setFullScreen_ret|text=|trigger=button}{sub-section}{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12setFullScreen_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12setFullScreen_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12setFullScreen_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12_seesetFullScreen_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12setFullScreen_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12setFullScreen_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3D092CF4-D553-47B9-BA7B-91A841326C12setFullScreen_sam|class=sIndent|trigger=none}{code:language=javascript}
plugins.window.setStatusBarVisiblesetFullScreen(true)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B5685DA1-619D-4B51-86C1-825CDBF5F0DCsetStatusBarVisible|class=node}{tr:id=name}{td}h6.setToolBarVisiblesetStatusBarVisible{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setToolBarVisible{span}{span:id=iets|style=float: left;}\(){span;}setStatusBarVisible{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:setStatusBarVisible_des|text=|trigger=button}{sub-section}{sub-section:setStatusBarVisible_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=dessnc}{td}*Since*\\{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DC_dessetStatusBarVisible_snc|text=|trigger=button}{sub-section}{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DC_dessetStatusBarVisible_snc|trigger=none|class=sIndent} Replace with version descriptioninfo{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DCsetStatusBarVisible_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DCsetStatusBarVisible_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DCsetStatusBarVisible_ret|text=|trigger=button}{sub-section}{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DC{sub-section:setStatusBarVisible_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DCsetStatusBarVisible_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DCsetStatusBarVisible_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DC_seesetStatusBarVisible_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DCsetStatusBarVisible_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DCsetStatusBarVisible_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B5685DA1-619D-4B51-86C1-825CDBF5F0DCsetStatusBarVisible_sam|class=sIndent|trigger=none}{code:language=javascript}
plugins.window.setToolBarVisiblesetStatusBarVisible(false)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible|class=node}{tr:id=name}{td}h6.validateMenuBarsetToolBarVisible{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}validateMenuBarsetToolBarVisible{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible_des|text=|trigger=button}{sub-section}{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible_des|trigger=none|class=sIndent}UseReplace this when your add/remove/edit operation won't refresh.with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setToolBarVisible_snc|text=|trigger=button}{sub-section}{sub-section:setToolBarVisible_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible_ret|text=|trigger=button}{sub-section}{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802A_see{sub-section:setToolBarVisible_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D7B1B2A8-5F85-42EB-9C64-9F590041802AsetToolBarVisible_sam|class=sIndent|trigger=none}{code:language=javascript}
// Note: method validateMenuBar only
works in the smart client.

// Use this when your add/remove/edit operation won't refresh.
plugins.window.validateMenuBarsetToolBarVisible(false);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}