{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}Constants Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#ALIGN_CENTER]
{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#ALIGN_LEFT]
{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#ALIGN_RIGHT]
{td}{tr}{tbody}{table}\\
{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}[MenuItem]{td}{td}[#setAccelerator]\(key)
Set the accelerator key of the item.{td}{tr}{tbody}{tbody}{tr}{td}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{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}Constants Details{th}{tr}{tbody:id=8CC083A4-CE28-445F-8969-CFA51169E669}{tr:id=name}{td}h6.ALIGN_CENTER{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:8CC083A4-CE28-445F-8969-CFA51169E669_des|text=|trigger=button}{sub-section}{sub-section:8CC083A4-CE28-445F-8969-CFA51169E669_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:8CC083A4-CE28-445F-8969-CFA51169E669_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8CC083A4-CE28-445F-8969-CFA51169E669_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8CC083A4-CE28-445F-8969-CFA51169E669_ret|text=|trigger=button}{sub-section}{sub-section:8CC083A4-CE28-445F-8969-CFA51169E669_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8CC083A4-CE28-445F-8969-CFA51169E669_see|text=|trigger=button}{sub-section}{sub-section:8CC083A4-CE28-445F-8969-CFA51169E669_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8CC083A4-CE28-445F-8969-CFA51169E669_see|text=|trigger=button}{sub-section}{sub-section:8CC083A4-CE28-445F-8969-CFA51169E669_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:8CC083A4-CE28-445F-8969-CFA51169E669_sam|text=|trigger=button}{sub-section}{sub-section:8CC083A4-CE28-445F-8969-CFA51169E669_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F7F1AEFC-2EB7-4413-B053-A208BB2B33DB}{tr:id=name}{td}h6.ALIGN_LEFT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_des|text=|trigger=button}{sub-section}{sub-section:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_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:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_ret|text=|trigger=button}{sub-section}{sub-section:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_see|text=|trigger=button}{sub-section}{sub-section:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_see|text=|trigger=button}{sub-section}{sub-section:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_sam|text=|trigger=button}{sub-section}{sub-section:F7F1AEFC-2EB7-4413-B053-A208BB2B33DB_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C9D421AF-8785-40E8-9214-2EB00C1B164F}{tr:id=name}{td}h6.ALIGN_RIGHT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:C9D421AF-8785-40E8-9214-2EB00C1B164F_des|text=|trigger=button}{sub-section}{sub-section:C9D421AF-8785-40E8-9214-2EB00C1B164F_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:C9D421AF-8785-40E8-9214-2EB00C1B164F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C9D421AF-8785-40E8-9214-2EB00C1B164F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C9D421AF-8785-40E8-9214-2EB00C1B164F_ret|text=|trigger=button}{sub-section}{sub-section:C9D421AF-8785-40E8-9214-2EB00C1B164F_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C9D421AF-8785-40E8-9214-2EB00C1B164F_see|text=|trigger=button}{sub-section}{sub-section:C9D421AF-8785-40E8-9214-2EB00C1B164F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C9D421AF-8785-40E8-9214-2EB00C1B164F_see|text=|trigger=button}{sub-section}{sub-section:C9D421AF-8785-40E8-9214-2EB00C1B164F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:C9D421AF-8785-40E8-9214-2EB00C1B164F_sam|text=|trigger=button}{sub-section}{sub-section:C9D421AF-8785-40E8-9214-2EB00C1B164F_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}Property Details{th}{tr}{tbody:id=45DB218E-F83F-402E-BC61-5FD5F586858E}{tr:id=name}{td}h6.enabled{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:45DB218E-F83F-402E-BC61-5FD5F586858E_des|text=|trigger=button}{sub-section}{sub-section:45DB218E-F83F-402E-BC61-5FD5F586858E_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:45DB218E-F83F-402E-BC61-5FD5F586858E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:45DB218E-F83F-402E-BC61-5FD5F586858E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:45DB218E-F83F-402E-BC61-5FD5F586858E_ret|text=|trigger=button}{sub-section}{sub-section:45DB218E-F83F-402E-BC61-5FD5F586858E_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:45DB218E-F83F-402E-BC61-5FD5F586858E_see|text=|trigger=button}{sub-section}{sub-section:45DB218E-F83F-402E-BC61-5FD5F586858E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:45DB218E-F83F-402E-BC61-5FD5F586858E_see|text=|trigger=button}{sub-section}{sub-section:45DB218E-F83F-402E-BC61-5FD5F586858E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:45DB218E-F83F-402E-BC61-5FD5F586858E_sam|text=|trigger=button}{sub-section}{sub-section:45DB218E-F83F-402E-BC61-5FD5F586858E_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7312FE52-4BC0-44D1-BEF7-C98574B4A853}{tr:id=name}{td}h6.methodArguments{td}{tr}{tr:id=des}{td}{sub-section:7312FE52-4BC0-44D1-BEF7-C98574B4A853_des|text=|trigger=button}{sub-section}{sub-section:7312FE52-4BC0-44D1-BEF7-C98574B4A853_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:7312FE52-4BC0-44D1-BEF7-C98574B4A853_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7312FE52-4BC0-44D1-BEF7-C98574B4A853_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7312FE52-4BC0-44D1-BEF7-C98574B4A853_ret|text=|trigger=button}{sub-section}{sub-section:7312FE52-4BC0-44D1-BEF7-C98574B4A853_ret|trigger=none|class=sIndent}Object[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7312FE52-4BC0-44D1-BEF7-C98574B4A853_see|text=|trigger=button}{sub-section}{sub-section:7312FE52-4BC0-44D1-BEF7-C98574B4A853_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7312FE52-4BC0-44D1-BEF7-C98574B4A853_see|text=|trigger=button}{sub-section}{sub-section:7312FE52-4BC0-44D1-BEF7-C98574B4A853_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7312FE52-4BC0-44D1-BEF7-C98574B4A853_sam|text=|trigger=button}{sub-section}{sub-section:7312FE52-4BC0-44D1-BEF7-C98574B4A853_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=E238C8C2-8D85-423E-81A7-3170B4B883C8}{tr:id=name}{td}h6.name{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:E238C8C2-8D85-423E-81A7-3170B4B883C8_des|text=|trigger=button}{sub-section}{sub-section:E238C8C2-8D85-423E-81A7-3170B4B883C8_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:E238C8C2-8D85-423E-81A7-3170B4B883C8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E238C8C2-8D85-423E-81A7-3170B4B883C8_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E238C8C2-8D85-423E-81A7-3170B4B883C8_ret|text=|trigger=button}{sub-section}{sub-section:E238C8C2-8D85-423E-81A7-3170B4B883C8_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E238C8C2-8D85-423E-81A7-3170B4B883C8_see|text=|trigger=button}{sub-section}{sub-section:E238C8C2-8D85-423E-81A7-3170B4B883C8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E238C8C2-8D85-423E-81A7-3170B4B883C8_see|text=|trigger=button}{sub-section}{sub-section:E238C8C2-8D85-423E-81A7-3170B4B883C8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:E238C8C2-8D85-423E-81A7-3170B4B883C8_sam|text=|trigger=button}{sub-section}{sub-section:E238C8C2-8D85-423E-81A7-3170B4B883C8_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0138E528-716C-463D-82DE-5AB2C77EE217}{tr:id=name}{td}h6.selected{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:0138E528-716C-463D-82DE-5AB2C77EE217_des|text=|trigger=button}{sub-section}{sub-section:0138E528-716C-463D-82DE-5AB2C77EE217_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:0138E528-716C-463D-82DE-5AB2C77EE217_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0138E528-716C-463D-82DE-5AB2C77EE217_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0138E528-716C-463D-82DE-5AB2C77EE217_ret|text=|trigger=button}{sub-section}{sub-section:0138E528-716C-463D-82DE-5AB2C77EE217_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0138E528-716C-463D-82DE-5AB2C77EE217_see|text=|trigger=button}{sub-section}{sub-section:0138E528-716C-463D-82DE-5AB2C77EE217_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0138E528-716C-463D-82DE-5AB2C77EE217_see|text=|trigger=button}{sub-section}{sub-section:0138E528-716C-463D-82DE-5AB2C77EE217_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:0138E528-716C-463D-82DE-5AB2C77EE217_sam|text=|trigger=button}{sub-section}{sub-section:0138E528-716C-463D-82DE-5AB2C77EE217_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0AE895AC-B5F8-4DD2-824D-7BB337D333C8}{tr:id=name}{td}h6.text{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_des|text=|trigger=button}{sub-section}{sub-section:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_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:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_ret|text=|trigger=button}{sub-section}{sub-section:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_see|text=|trigger=button}{sub-section}{sub-section:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_see|text=|trigger=button}{sub-section}{sub-section:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_sam|text=|trigger=button}{sub-section}{sub-section:0AE895AC-B5F8-4DD2-824D-7BB337D333C8_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=A8320F10-8718-4AE0-BAA0-FF58CDCBB773}{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:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_des|text=|trigger=button}{sub-section}{sub-section:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_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:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_ret|text=|trigger=button}{sub-section}{sub-section:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_see|text=|trigger=button}{sub-section}{sub-section:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_see|text=|trigger=button}{sub-section}{sub-section:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_sam|text=|trigger=button}{sub-section}{sub-section:A8320F10-8718-4AE0-BAA0-FF58CDCBB773_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=1AF7FC86-AD61-4185-A145-69C47DAF1996}{tr:id=name}{td}h6.setAccelerator{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[MenuItem]{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:1AF7FC86-AD61-4185-A145-69C47DAF1996_des|text=|trigger=button}{sub-section}{sub-section:1AF7FC86-AD61-4185-A145-69C47DAF1996_des|trigger=none|class=sIndent}Set the accelerator key of the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:1AF7FC86-AD61-4185-A145-69C47DAF1996_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1AF7FC86-AD61-4185-A145-69C47DAF1996_prs|trigger=none}key
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:1AF7FC86-AD61-4185-A145-69C47DAF1996_ret|text=|trigger=button}{sub-section}{sub-section:1AF7FC86-AD61-4185-A145-69C47DAF1996_ret|trigger=none|class=sIndent}[MenuItem]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1AF7FC86-AD61-4185-A145-69C47DAF1996_see|text=|trigger=button}{sub-section}{sub-section:1AF7FC86-AD61-4185-A145-69C47DAF1996_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1AF7FC86-AD61-4185-A145-69C47DAF1996_see|text=|trigger=button}{sub-section}{sub-section:1AF7FC86-AD61-4185-A145-69C47DAF1996_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1AF7FC86-AD61-4185-A145-69C47DAF1996_sam|text=|trigger=button}{sub-section}{sub-section:1AF7FC86-AD61-4185-A145-69C47DAF1996_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=152C7287-1DD7-4478-BAF5-6FCF5DFE7C92}{tr:id=name}{td}h6.setIcon{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;}setIcon{span}{span:id=iets|style=float: left;}\(icon){span}{td}{tr}{tr:id=des}{td}{sub-section:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_des|text=|trigger=button}{sub-section}{sub-section:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_des|trigger=none|class=sIndent}Set the icon of the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_prs|trigger=none}icon
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_ret|text=|trigger=button}{sub-section}{sub-section:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_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:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_see|text=|trigger=button}{sub-section}{sub-section:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_see|text=|trigger=button}{sub-section}{sub-section:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_sam|text=|trigger=button}{sub-section}{sub-section:152C7287-1DD7-4478-BAF5-6FCF5DFE7C92_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=4D9C03AB-87F8-4A56-ADD0-C1C63C55486C}{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:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_des|text=|trigger=button}{sub-section}{sub-section:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_des|trigger=none|class=sIndent}Set the method for the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_prs|trigger=none}method
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_ret|text=|trigger=button}{sub-section}{sub-section:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_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:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_see|text=|trigger=button}{sub-section}{sub-section:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_see|text=|trigger=button}{sub-section}{sub-section:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_sam|text=|trigger=button}{sub-section}{sub-section:4D9C03AB-87F8-4A56-ADD0-C1C63C55486C_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=94FD4DFD-4B89-4D53-A337-522DE072871A}{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:94FD4DFD-4B89-4D53-A337-522DE072871A_des|text=|trigger=button}{sub-section}{sub-section:94FD4DFD-4B89-4D53-A337-522DE072871A_des|trigger=none|class=sIndent}Set the mnemonic key of the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:94FD4DFD-4B89-4D53-A337-522DE072871A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:94FD4DFD-4B89-4D53-A337-522DE072871A_prs|trigger=none}key
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:94FD4DFD-4B89-4D53-A337-522DE072871A_ret|text=|trigger=button}{sub-section}{sub-section:94FD4DFD-4B89-4D53-A337-522DE072871A_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:94FD4DFD-4B89-4D53-A337-522DE072871A_see|text=|trigger=button}{sub-section}{sub-section:94FD4DFD-4B89-4D53-A337-522DE072871A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:94FD4DFD-4B89-4D53-A337-522DE072871A_see|text=|trigger=button}{sub-section}{sub-section:94FD4DFD-4B89-4D53-A337-522DE072871A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:94FD4DFD-4B89-4D53-A337-522DE072871A_sam|text=|trigger=button}{sub-section}{sub-section:94FD4DFD-4B89-4D53-A337-522DE072871A_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=913A119A-3B49-4714-92D2-0B90E4569B42}{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:913A119A-3B49-4714-92D2-0B90E4569B42_des|text=|trigger=button}{sub-section}{sub-section:913A119A-3B49-4714-92D2-0B90E4569B42_des|trigger=none|class=sIndent}Set the item visible.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:913A119A-3B49-4714-92D2-0B90E4569B42_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:913A119A-3B49-4714-92D2-0B90E4569B42_prs|trigger=none}visible
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:913A119A-3B49-4714-92D2-0B90E4569B42_ret|text=|trigger=button}{sub-section}{sub-section:913A119A-3B49-4714-92D2-0B90E4569B42_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:913A119A-3B49-4714-92D2-0B90E4569B42_see|text=|trigger=button}{sub-section}{sub-section:913A119A-3B49-4714-92D2-0B90E4569B42_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:913A119A-3B49-4714-92D2-0B90E4569B42_see|text=|trigger=button}{sub-section}{sub-section:913A119A-3B49-4714-92D2-0B90E4569B42_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:913A119A-3B49-4714-92D2-0B90E4569B42_sam|text=|trigger=button}{sub-section}{sub-section:913A119A-3B49-4714-92D2-0B90E4569B42_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;3Constants SummaryConstant for centering menu items/checkbox/radiobuttons at creation.Constant for left aligning menu items/checkbox/radiobuttons at creation.Constant for right aligning menu items/checkbox/radiobuttons at creation.servoy 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.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.constantservoy sDetail2100%height:30px2Constants DetailsALIGN_CENTERname
ALIGN_CENTER
dessIndent
Constant for centering menu items/checkbox/radiobuttons at creation.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowALIGN_LEFTname
ALIGN_LEFT
dessIndent
Constant for left aligning menu items/checkbox/radiobuttons at creation.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowALIGN_RIGHTname
ALIGN_RIGHT
dessIndent
Constant for right aligning menu items/checkbox/radiobuttons at creation.