{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:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Boolean]{td}{td}[#enabled]
{td}{tr}{tbody}{tbody}{tr}{td}Object[]{td}{td}[#methodArguments]
Set the arguments that can be read by the defined method.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#name]
{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#selected]
{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#text]
{td}{tr}{tbody}{table}\\
{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}void{td}{td}[#doClick]\()
Script the selection (emulate a mouse click) of the item.{td}{tr}{tbody}{tbody}{tr}{td}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{td}{td}[#setAccelerator]\(key)
Set the accelerator key of the item.{td}{tr}{tbody}{tbody}{tr}{td}[CheckBox]{td}{td}[#setAlign]\()
{td}{tr}{tbody}{tbody}{tr}{td}[CheckBox]{td}{td}[#setIcon]\(icon)
Set the icon of the item.{td}{tr}{tbody}{tbody}{tr}{td}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{td}{td}[#setMethod]\(method)
Set the method for the item.{td}{tr}{tbody}{tbody}{tr}{td}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{td}{td}[#setMnemonic]\(key)
Set the mnemonic key of the item.{td}{tr}{tbody}{tbody}{tr}{td}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{td}{td}[#setVisible]\(visible)
Set the item visible.{td}{tr}{tbody}{table}\\
{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB}{tr:id=name}{td}h6.enabled{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_des|text=|trigger=button}{sub-section}{sub-section:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_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:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_ret|text=|trigger=button}{sub-section}{sub-section:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_see|text=|trigger=button}{sub-section}{sub-section:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_see|text=|trigger=button}{sub-section}{sub-section:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_sam|text=|trigger=button}{sub-section}{sub-section:061D06F3-BD27-4CFE-801A-2FB5AB8D0EEB_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CC771CFF-0E7E-4F58-88F9-E4A535BFD42F}{tr:id=name}{td}h6.methodArguments{td}{tr}{tr:id=des}{td}{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_des|text=|trigger=button}{sub-section}{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_des|trigger=none|class=sIndent}Set the arguments that can be read by the defined method.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_ret|text=|trigger=button}{sub-section}{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_ret|trigger=none|class=sIndent}Object[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_see|text=|trigger=button}{sub-section}{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_see|text=|trigger=button}{sub-section}{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_sam|text=|trigger=button}{sub-section}{sub-section:CC771CFF-0E7E-4F58-88F9-E4A535BFD42F_sam|class=sIndent|trigger=none}{code:language=javascript}
var menu = plugins.window.getMenu(2).getItem(0);
// Set the text of the item.
menu.setText("Servoy");
// Set the method for the item.
menu.setMethod(callback);
// Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method
menu.methodArguments = ["a","b"];
// Set the icon of the item.
menu.setIcon("media:///TipOfTheDay16.gif");
// Set the accelerator key of the item.
menu.setAccelerator("meta 4");
// Set the mnemonic key of the item.
menu.setMnemonic("e");
// Enable/disable the item.
menu.setEnabled(false);
// Set the item visible.
menu.setVisible(true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EFE89238-DDB4-4340-A21B-A0BB182EEF57}{tr:id=name}{td}h6.name{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:EFE89238-DDB4-4340-A21B-A0BB182EEF57_des|text=|trigger=button}{sub-section}{sub-section:EFE89238-DDB4-4340-A21B-A0BB182EEF57_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:EFE89238-DDB4-4340-A21B-A0BB182EEF57_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EFE89238-DDB4-4340-A21B-A0BB182EEF57_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:EFE89238-DDB4-4340-A21B-A0BB182EEF57_ret|text=|trigger=button}{sub-section}{sub-section:EFE89238-DDB4-4340-A21B-A0BB182EEF57_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EFE89238-DDB4-4340-A21B-A0BB182EEF57_see|text=|trigger=button}{sub-section}{sub-section:EFE89238-DDB4-4340-A21B-A0BB182EEF57_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EFE89238-DDB4-4340-A21B-A0BB182EEF57_see|text=|trigger=button}{sub-section}{sub-section:EFE89238-DDB4-4340-A21B-A0BB182EEF57_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:EFE89238-DDB4-4340-A21B-A0BB182EEF57_sam|text=|trigger=button}{sub-section}{sub-section:EFE89238-DDB4-4340-A21B-A0BB182EEF57_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8B853DD4-C167-4F5E-964C-6DD55CD47C1E}{tr:id=name}{td}h6.selected{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_des|text=|trigger=button}{sub-section}{sub-section:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_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:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_ret|text=|trigger=button}{sub-section}{sub-section:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_see|text=|trigger=button}{sub-section}{sub-section:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_see|text=|trigger=button}{sub-section}{sub-section:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_sam|text=|trigger=button}{sub-section}{sub-section:8B853DD4-C167-4F5E-964C-6DD55CD47C1E_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=10C5E6EB-E45D-4A42-957D-CA58ECF8C767}{tr:id=name}{td}h6.text{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_des|text=|trigger=button}{sub-section}{sub-section:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_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:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_ret|text=|trigger=button}{sub-section}{sub-section:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_see|text=|trigger=button}{sub-section}{sub-section:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_see|text=|trigger=button}{sub-section}{sub-section:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_sam|text=|trigger=button}{sub-section}{sub-section:10C5E6EB-E45D-4A42-957D-CA58ECF8C767_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\
{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=4E618209-6D81-4999-92B9-39A488B6EBDB}{tr:id=name}{td}h6.doClick{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}doClick{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_des|text=|trigger=button}{sub-section}{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_des|trigger=none|class=sIndent}Script the selection (emulate a mouse click) of the item.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_ret|text=|trigger=button}{sub-section}{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_see|text=|trigger=button}{sub-section}{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_see|text=|trigger=button}{sub-section}{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_sam|text=|trigger=button}{sub-section}{sub-section:4E618209-6D81-4999-92B9-39A488B6EBDB_sam|class=sIndent|trigger=none}{code:language=javascript}
// Script the selection (emulate a mouse click) of the item.
// Clicking a separator will throw an error!
plugins.window.getMenu(2).getItem(0).doClick();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F9193DAB-507E-4226-A2C9-580CE0E5E4F5}{tr:id=name}{td}h6.setAccelerator{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{span}{span:id=iets|style=float: left; font-weight: bold;}setAccelerator{span}{span:id=iets|style=float: left;}\(key){span}{td}{tr}{tr:id=des}{td}{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_des|text=|trigger=button}{sub-section}{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_des|trigger=none|class=sIndent}Set the accelerator key of the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_prs|trigger=none}key
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_ret|text=|trigger=button}{sub-section}{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_ret|trigger=none|class=sIndent}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_see|text=|trigger=button}{sub-section}{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_see|text=|trigger=button}{sub-section}{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_sam|text=|trigger=button}{sub-section}{sub-section:F9193DAB-507E-4226-A2C9-580CE0E5E4F5_sam|class=sIndent|trigger=none}{code:language=javascript}
var menu = plugins.window.getMenu(2).getItem(0);
// Set the text of the item.
menu.setText("Servoy");
// Set the method for the item.
menu.setMethod(callback);
// Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method
menu.methodArguments = ["a","b"];
// Set the icon of the item.
menu.setIcon("media:///TipOfTheDay16.gif");
// Set the accelerator key of the item.
menu.setAccelerator("meta 4");
// Set the mnemonic key of the item.
menu.setMnemonic("e");
// Enable/disable the item.
menu.setEnabled(false);
// Set the item visible.
menu.setVisible(true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DBA56E98-A404-4ADF-B4F9-D91921BD17D3}{tr:id=name}{td}h6.setAlign{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[CheckBox]{span}{span:id=iets|style=float: left; font-weight: bold;}setAlign{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_des|text=|trigger=button}{sub-section}{sub-section:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_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:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_ret|text=|trigger=button}{sub-section}{sub-section:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_ret|trigger=none|class=sIndent}[CheckBox]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_see|text=|trigger=button}{sub-section}{sub-section:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_see|text=|trigger=button}{sub-section}{sub-section:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_sam|text=|trigger=button}{sub-section}{sub-section:DBA56E98-A404-4ADF-B4F9-D91921BD17D3_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7}{tr:id=name}{td}h6.setIcon{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[CheckBox]{span}{span:id=iets|style=float: left; font-weight: bold;}setIcon{span}{span:id=iets|style=float: left;}\(icon){span}{td}{tr}{tr:id=des}{td}{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_des|text=|trigger=button}{sub-section}{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_des|trigger=none|class=sIndent}Set the icon of the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_prs|trigger=none}icon
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_ret|text=|trigger=button}{sub-section}{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_ret|trigger=none|class=sIndent}[CheckBox]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_see|text=|trigger=button}{sub-section}{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_see|text=|trigger=button}{sub-section}{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_sam|text=|trigger=button}{sub-section}{sub-section:C86B5645-DF88-4EAE-AD1C-F0C37A6E55E7_sam|class=sIndent|trigger=none}{code:language=javascript}
var menu = plugins.window.getMenu(2).getItem(0);
// Set the text of the item.
menu.setText("Servoy");
// Set the method for the item.
menu.setMethod(callback);
// Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method
menu.methodArguments = ["a","b"];
// Set the icon of the item.
menu.setIcon("media:///TipOfTheDay16.gif");
// Set the accelerator key of the item.
menu.setAccelerator("meta 4");
// Set the mnemonic key of the item.
menu.setMnemonic("e");
// Enable/disable the item.
menu.setEnabled(false);
// Set the item visible.
menu.setVisible(true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC}{tr:id=name}{td}h6.setMethod{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{span}{span:id=iets|style=float: left; font-weight: bold;}setMethod{span}{span:id=iets|style=float: left;}\(method){span}{td}{tr}{tr:id=des}{td}{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_des|text=|trigger=button}{sub-section}{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_des|trigger=none|class=sIndent}Set the method for the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_prs|trigger=none}method
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_ret|text=|trigger=button}{sub-section}{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_ret|trigger=none|class=sIndent}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_see|text=|trigger=button}{sub-section}{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_see|text=|trigger=button}{sub-section}{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_sam|text=|trigger=button}{sub-section}{sub-section:979ABEF6-D5AC-4EC2-A63A-7EC68CE0CCBC_sam|class=sIndent|trigger=none}{code:language=javascript}
var menu = plugins.window.getMenu(2).getItem(0);
// Set the text of the item.
menu.setText("Servoy");
// Set the method for the item.
menu.setMethod(callback);
// Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method
menu.methodArguments = ["a","b"];
// Set the icon of the item.
menu.setIcon("media:///TipOfTheDay16.gif");
// Set the accelerator key of the item.
menu.setAccelerator("meta 4");
// Set the mnemonic key of the item.
menu.setMnemonic("e");
// Enable/disable the item.
menu.setEnabled(false);
// Set the item visible.
menu.setVisible(true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C4350CF9-9BE7-4AED-818E-59FF4F9EA11E}{tr:id=name}{td}h6.setMnemonic{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{span}{span:id=iets|style=float: left; font-weight: bold;}setMnemonic{span}{span:id=iets|style=float: left;}\(key){span}{td}{tr}{tr:id=des}{td}{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_des|text=|trigger=button}{sub-section}{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_des|trigger=none|class=sIndent}Set the mnemonic key of the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_prs|trigger=none}key
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_ret|text=|trigger=button}{sub-section}{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_ret|trigger=none|class=sIndent}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_see|text=|trigger=button}{sub-section}{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_see|text=|trigger=button}{sub-section}{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_sam|text=|trigger=button}{sub-section}{sub-section:C4350CF9-9BE7-4AED-818E-59FF4F9EA11E_sam|class=sIndent|trigger=none}{code:language=javascript}
var menu = plugins.window.getMenu(2).getItem(0);
// Set the text of the item.
menu.setText("Servoy");
// Set the method for the item.
menu.setMethod(callback);
// Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method
menu.methodArguments = ["a","b"];
// Set the icon of the item.
menu.setIcon("media:///TipOfTheDay16.gif");
// Set the accelerator key of the item.
menu.setAccelerator("meta 4");
// Set the mnemonic key of the item.
menu.setMnemonic("e");
// Enable/disable the item.
menu.setEnabled(false);
// Set the item visible.
menu.setVisible(true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B3C15EC0-C4E1-4413-A570-95302653B17A}{tr:id=name}{td}h6.setVisible{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{span}{span:id=iets|style=float: left; font-weight: bold;}setVisible{span}{span:id=iets|style=float: left;}\(visible){span}{td}{tr}{tr:id=des}{td}{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_des|text=|trigger=button}{sub-section}{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_des|trigger=none|class=sIndent}Set the item visible.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_prs|trigger=none}visible
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_ret|text=|trigger=button}{sub-section}{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_ret|trigger=none|class=sIndent}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_see|text=|trigger=button}{sub-section}{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_see|text=|trigger=button}{sub-section}{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_sam|text=|trigger=button}{sub-section}{sub-section:B3C15EC0-C4E1-4413-A570-95302653B17A_sam|class=sIndent|trigger=none}{code:language=javascript}
var menu = plugins.window.getMenu(2).getItem(0);
// Set the text of the item.
menu.setText("Servoy");
// Set the method for the item.
menu.setMethod(callback);
// Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method
menu.methodArguments = ["a","b"];
// Set the icon of the item.
menu.setIcon("media:///TipOfTheDay16.gif");
// Set the accelerator key of the item.
menu.setAccelerator("meta 4");
//
Cache
index
true
refresh
100d
showRefresh
true
id
doc
title
Refresh page
showDate
true
retry
Enable
servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientservoy sSummary12%30%58%height: 30px;3Property SummaryEnable/disable the menu item/checkbox/radiobutton.Set arguments that are sent to the callback method.The name of the menu item/checkbox/radiobutton.Select/unselect the checkbox/radiobutton.Get/set the text of the menu item/checkbox/radiobutton.servoy sSummary12%30%58%height: 30px;3Methods SummaryvoidScript the selection (emulate a mouse click) of the item.Gets the specified client property for the menu item/checkbox/radiobutton based on a key.voidSets the value for the specified client property key of the menu item/checkbox/radiobutton.Set the accelerator key of the menu item/checkbox/radiobutton.Sets the alignment of the checkbox.voidSet the background color of the menu item/checkbox/radiobutton.voidSet the foreground color of the menu item/checkbox/radiobutton.Set the icon of the menu item/checkbox/radiobutton.Set the method for the menu item/checkbox/radiobutton.Set the method for the menu item/checkbox/radiobutton.Set the mnemonic key of the menu item/checkbox/radiobutton.Set the item visible.propertyservoy sDetail2100%height:30px2Property Detailsenabledname
enabled
dessIndent
Enable/disable the menu item/checkbox/radiobutton.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowmethodArgumentsname
methodArguments
dessIndent
Set arguments that are sent to the callback method.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRownamename
name
dessIndent
The name of the menu item/checkbox/radiobutton. The name is used only internally, it is not
visible in the user interface.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowselectedname
selected
dessIndent
Select/unselect the checkbox/radiobutton.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtextname
text
dessIndent
Get/set the text of the menu item/checkbox/radiobutton.; This can be also html if enclosed between html tags