Child pages
  • MenuItem

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: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[MenuItem]{td}{td}[#setIcon]\(icon)
Set the icon of the item.{td}{tr}{tbody}{tbody}{tr}{td}com.servoy.extensions.plugins.window.menu.AbstractMenuItem[MenuItem]{td}{td}[#setMethod]\(method)
Set the method for the item.{td}{tr}{tbody}{tbody}{tr}{td}com.servoy.extensions.plugins.window.menu.AbstractMenuItem[MenuItem]{td}{td}[#setMnemonic]\(key)
Set the mnemonic key of the item.{td}{tr}{tbody}{tbody}{tr}{td}com.servoy.extensions.plugins.window.menu.AbstractMenuItem[MenuItem]{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=8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA}{tr:id=name}{td}h6.ALIGN_CENTER{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_des|text=|trigger=button}{sub-section}{sub-section:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_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:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_ret|text=|trigger=button}{sub-section}{sub-section:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_see|text=|trigger=button}{sub-section}{sub-section:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_see|text=|trigger=button}{sub-section}{sub-section:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_sam|text=|trigger=button}{sub-section}{sub-section:8CC083A42CD6B398-CE28FE02-445F478E-8969968D-CFA51169E669F90A5A1F0CBA_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD}{tr:id=name}{td}h6.ALIGN_LEFT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_des|text=|trigger=button}{sub-section}{sub-section:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_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:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_ret|text=|trigger=button}{sub-section}{sub-section:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_see|text=|trigger=button}{sub-section}{sub-section:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_see|text=|trigger=button}{sub-section}{sub-section:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_sam|text=|trigger=button}{sub-section}{sub-section:F7F1AEFC557A2648-2EB717C3-44134B9C-B053BAF5-A208BB2B33DBEDE4AA389BBD_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158}{tr:id=name}{td}h6.ALIGN_RIGHT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_des|text=|trigger=button}{sub-section}{sub-section:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_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:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_ret|text=|trigger=button}{sub-section}{sub-section:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_see|text=|trigger=button}{sub-section}{sub-section:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_see|text=|trigger=button}{sub-section}{sub-section:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_sam|text=|trigger=button}{sub-section}{sub-section:C9D421AF9715307C-87853013-40E84D45-9214B633-2EB00C1B164F85A7AF549158_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=45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090}{tr:id=name}{td}h6.enabled{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_des|text=|trigger=button}{sub-section}{sub-section:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_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:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_ret|text=|trigger=button}{sub-section}{sub-section:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_see|text=|trigger=button}{sub-section}{sub-section:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_see|text=|trigger=button}{sub-section}{sub-section:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_sam|text=|trigger=button}{sub-section}{sub-section:45DB218E806365CA-F83F5240-402E40EB-BC61956A-5FD5F586858E317962542090_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773}{tr:id=name}{td}h6.methodArguments{td}{tr}{tr:id=des}{td}{sub-section:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_des|text=|trigger=button}{sub-section}{sub-section:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_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:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_ret|text=|trigger=button}{sub-section}{sub-section:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_ret|trigger=none|class=sIndent}Object[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_see|text=|trigger=button}{sub-section}{sub-section:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_see|text=|trigger=button}{sub-section}{sub-section:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_sam|text=|trigger=button}{sub-section}{sub-section:7312FE5207E79AC0-4BC078B6-44D14998-BEF783DD-C98574B4A8530816C37D7773_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=E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32}{tr:id=name}{td}h6.name{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_des|text=|trigger=button}{sub-section}{sub-section:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_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:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_ret|text=|trigger=button}{sub-section}{sub-section:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_see|text=|trigger=button}{sub-section}{sub-section:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_see|text=|trigger=button}{sub-section}{sub-section:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_sam|text=|trigger=button}{sub-section}{sub-section:E238C8C2842F3D74-8D855924-423E439B-81A7B5C7-3170B4B883C8F25276BD7F32_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331}{tr:id=name}{td}h6.selected{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_des|text=|trigger=button}{sub-section}{sub-section:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_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:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_ret|text=|trigger=button}{sub-section}{sub-section:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_see|text=|trigger=button}{sub-section}{sub-section:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_see|text=|trigger=button}{sub-section}{sub-section:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_sam|text=|trigger=button}{sub-section}{sub-section:0138E52823420141-716C81C5-463D4508-82DE9615-5AB2C77EE2170FEA2926B331_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507}{tr:id=name}{td}h6.text{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_des|text=|trigger=button}{sub-section}{sub-section:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_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:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_ret|text=|trigger=button}{sub-section}{sub-section:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_see|text=|trigger=button}{sub-section}{sub-section:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_see|text=|trigger=button}{sub-section}{sub-section:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_sam|text=|trigger=button}{sub-section}{sub-section:0AE895AC274F1A6E-B5F8A051-4DD24823-824DB6DA-7BB337D333C8961A340C3507_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=A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44}{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:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_des|text=|trigger=button}{sub-section}{sub-section:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_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:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_ret|text=|trigger=button}{sub-section}{sub-section:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_see|text=|trigger=button}{sub-section}{sub-section:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_see|text=|trigger=button}{sub-section}{sub-section:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_sam|text=|trigger=button}{sub-section}{sub-section:A8320F10CE762BEE-87187BE0-4AE04EDE-BAA0871D-FF58CDCBB7734CB4E8C8EA44_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=1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA}{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:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_des|text=|trigger=button}{sub-section}{sub-section:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_des|trigger=none|class=sIndent}Set the accelerator key of the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_prs|trigger=none}key
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_ret|text=|trigger=button}{sub-section}{sub-section:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_ret|trigger=none|class=sIndent}[MenuItem]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_see|text=|trigger=button}{sub-section}{sub-section:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_see|text=|trigger=button}{sub-section}{sub-section:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_sam|text=|trigger=button}{sub-section}{sub-section:1AF7FC8630501314-AD61DDDC-41854DA6-A1459661-69C47DAF199649237D92ACDA_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=152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06}{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[MenuItem]{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:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_des|text=|trigger=button}{sub-section}{sub-section:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_des|trigger=none|class=sIndent}Set the icon of the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_prs|trigger=none}icon
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_ret|text=|trigger=button}{sub-section}{sub-section:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_ret|trigger=none|class=sIndent}com.servoy.extensions.plugins.window.menu.AbstractMenuItem[MenuItem]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_see|text=|trigger=button}{sub-section}{sub-section:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_see|text=|trigger=button}{sub-section}{sub-section:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_sam|text=|trigger=button}{sub-section}{sub-section:152C72877079ECF6-1DD7BC6C-4478465B-BAF59DF8-6FCF5DFE7C927C79B0ACCD06_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=4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C}{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[MenuItem]{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:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_des|text=|trigger=button}{sub-section}{sub-section:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_des|trigger=none|class=sIndent}Set the method for the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_prs|trigger=none}method
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_ret|text=|trigger=button}{sub-section}{sub-section:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_ret|trigger=none|class=sIndent}com.servoy.extensions.plugins.window.menu.AbstractMenuItem[MenuItem]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_see|text=|trigger=button}{sub-section}{sub-section:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_see|text=|trigger=button}{sub-section}{sub-section:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_sam|text=|trigger=button}{sub-section}{sub-section:4D9C03AB42325099-87F8154B-4A5642C9-ADD09B9D-C1C63C55486C0311D504FA2C_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=94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D}{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[MenuItem]{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:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_des|text=|trigger=button}{sub-section}{sub-section:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_des|trigger=none|class=sIndent}Set the mnemonic key of the item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_prs|trigger=none}key
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_ret|text=|trigger=button}{sub-section}{sub-section:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_ret|trigger=none|class=sIndent}com.servoy.extensions.plugins.window.menu.AbstractMenuItem[MenuItem]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_see|text=|trigger=button}{sub-section}{sub-section:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_see|text=|trigger=button}{sub-section}{sub-section:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_sam|text=|trigger=button}{sub-section}{sub-section:94FD4DFD0B7D868F-4B893EBA-4D534F10-A3379E48-522DE072871A1AF5801EBE1D_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=913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85}{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[MenuItem]{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:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_des|text=|trigger=button}{sub-section}{sub-section:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_des|trigger=none|class=sIndent}Set the item visible.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_prs|trigger=none}visible
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_ret|text=|trigger=button}{sub-section}{sub-section:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_ret|trigger=none|class=sIndent}com.servoy.extensions.plugins.window.menu.AbstractMenuItem[MenuItem]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_see|text=|trigger=button}{sub-section}{sub-section:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_see|text=|trigger=button}{sub-section}{sub-section:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_sam|text=|trigger=button}{sub-section}{sub-section:913A119AAD4C6ADC-3B49D0F9-47144BBF-92D2919B-0B90E4569B42D2553370EA85_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}{table}