Child pages
  • Popup

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}Method Summary{th}{tr}{tbody}{tr}{td}[CheckBox]{td}{td}[#addCheckBox]\(index|name, method, icon, mnemonic, enabled, align)
Add the Checkbox at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}[Menu]{td}{td}[#addMenu]\(index|name, menu, icon, mnemonic, enabled, align)
Add the submenu at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}[MenuItem]{td}{td}[#addItem#addMenuItem]\(index|name, method, icon, mnemonic, enabled, align)
Add the item at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}[RadioButton]{td}{td}[#addRadioButton]\(index|name, method, icon, mnemonic, enabled, align)
Add the Radiobutton at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addRadioGroup]\()
Add a Radiogroup for the Radiobuttons.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addSeparator]\(index)
Add the separator at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}[MenuCheckBox]{td}{td}[#addSubMenu#getCheckBox]\(index)
AddGet the submenuCheckbox at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}[CheckBox]com.servoy.extensions.plugins.window.menu.AbstractMenuItem{td}{td}[#getCheckBox#getItem]\(index)
Get the Checkboxitem at the selected index (starting at 0).{td}{tr}{tbody}{tbody}{tr}{td}[MenuItemNumber]{td}{td}[#getItem#getItemCount]\(index)
Get the itemnumber atof theitems selectedin index (starting at 0)the menu.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getItemCount#getItemIndexByText]\(name)
GetRetrieve the numberindex of itemsthe initem theby popuptext.{td}{tr}{tbody}{tbody}{tr}{td}[RadioButtonMenu]{td}{td}[#getRadioButton#getMenu]\(index)
Get the Radiobuttonsubmenu at the selected index (starting at 0).{td}{tr}{tbody}{tbody}{tr}{td}[MenuRadioButton]{td}{td}[#getSubMenu#getRadioButton]\(index)
Get the submenuRadiobutton at the selected index (starting at 0).{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#removeAllItems]\()
Remove all items from the popupmenu.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#removeItem]\(index 1, index 2-n)
Remove the item(s) at the selected index/indices.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#show]\(element, x, y)
Show the popup below the element or add x an y values relative to the element.{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=745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6}{tr:id=name}{td}h6.addCheckBox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[CheckBox]{span}{span:id=iets|style=float: left; font-weight: bold;}addCheckBox{span}{span:id=iets|style=float: left;}\(index|name, method, icon, mnemonic, enabled, align){span}{td}{tr}{tr:id=des}{td}{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_des|text=|trigger=button}{sub-section}{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_des|trigger=none|class=sIndent}Add the Checkbox at the selected index (starting at 0) or add it at the end (empty)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_prs|trigger=none}\[index|name\]
\[method\]
\[icon\]
\[mnemonic\]
\[enabled\]
\[align\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_ret|text=|trigger=button}{sub-section}{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_ret|trigger=none|class=sIndent}[CheckBox]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_see|text=|trigger=button}{sub-section}{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_see|text=|trigger=button}{sub-section}{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_sam|text=|trigger=button}{sub-section}{sub-section:745CCFEED3DB0118-29E2DA15-44AB43FF-8201925F-01F2DE76F1767DA9AF8069A6_sam|class=sIndent|trigger=none}{code:language=javascript}
//var createpopupmenu a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F777A6F7-9DBF-4F50-83DC-9148C89DF410}{tr:id=name}{td}h6.addItem= plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2B3C952E-61B2-4FEF-B5C4-8E9F24A13243}{tr:id=name}{td}h6.addMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Menu]{span}{span:id=iets|style=float: left; font-weight: bold;}addMenu{span}{span:id=iets|style=float: left;}\(index|name, menu, icon, mnemonic, enabled, align){span}{td}{tr}{tr:id=des}{td}{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_des|text=|trigger=button}{sub-section}{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_des|trigger=none|class=sIndent}Add the submenu at the selected index (starting at 0) or add it at the end (empty).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_prs|trigger=none}\[index|name\]
\[menu\]
\[icon\]
\[mnemonic\]
\[enabled\]
\[align\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_ret|text=|trigger=button}{sub-section}{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_ret|trigger=none|class=sIndent}[Menu]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_see|text=|trigger=button}{sub-section}{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_see|text=|trigger=button}{sub-section}{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_sam|text=|trigger=button}{sub-section}{sub-section:2B3C952E-61B2-4FEF-B5C4-8E9F24A13243_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=635F9F4B-10E5-4580-B903-8E5F7078C9ED}{tr:id=name}{td}h6.addMenuItem{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[MenuItem]{span}{span:id=iets|style=float: left; font-weight: bold;}addMenuItem{span}{span:id=iets|style=float: left;}\(index|name, method, icon, mnemonic, enabled, align){span}{td}{tr}{tr:id=des}{td}{sub-section:635F9F4B-10E5-4580-B903-8E5F7078C9ED_des|text=|trigger=button}{sub-section}{sub-section:635F9F4B-10E5-4580-B903-8E5F7078C9ED_des|trigger=none|class=sIndent}Add the item at the selected index (starting at 0) or add it at the end (empty).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:635F9F4B-10E5-4580-B903-8E5F7078C9ED_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:635F9F4B-10E5-4580-B903-8E5F7078C9ED_prs|trigger=none}\[index|name\]
\[method\]
\[icon\]
\[mnemonic\]
\[enabled\]
\[align\]
{sub-section}{div}{td}{tr}{tr:id=sigret}{td}{span:style=float: left; margin-right: 5px;}[MenuItem]{span}{span:id=iets|style=float: left; font-weight: bold;}addItem{span}{span:id=iets|style=float: left;}\(index){span*Returns*\\{sub-section:635F9F4B-10E5-4580-B903-8E5F7078C9ED_ret|text=|trigger=button}{sub-section}{sub-section:635F9F4B-10E5-4580-B903-8E5F7078C9ED_ret|trigger=none|class=sIndent}[MenuItem]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=dessee}{td}*Also see*\\{sub-section:F777A6F7635F9F4B-9DBF10E5-4F504580-83DCB903-9148C89DF4108E5F7078C9ED_dessee|text=|trigger=button}{sub-section}{sub-section:F777A6F7635F9F4B-9DBF10E5-4F504580-83DCB903-9148C89DF410_des8E5F7078C9ED_see|class=sIndent|trigger=none|class=sIndent}Add the item at the selected index (starting at 0) or add it at the end (empty)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F777A6F7635F9F4B-9DBF10E5-4F504580-83DCB903-9148C89DF4108E5F7078C9ED_prssee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F777A6F7635F9F4B-9DBF10E5-4F504580-83DCB903-9148C89DF410_prs8E5F7078C9ED_link|class=sIndent|trigger=none}\[index\]
{sub-section}{divtd}{tdtr}{trbuilder-show}{tr:id=retsam}{td}*ReturnsSample*\\{sub-section:F777A6F7635F9F4B-9DBF10E5-4F504580-83DCB903-9148C89DF4108E5F7078C9ED_retsam|text=|trigger=button}{sub-section}{sub-section:F777A6F7635F9F4B-9DBF10E5-4F504580-83DCB903-9148C89DF410_ret8E5F7078C9ED_sam|class=sIndent|trigger=none|class=sIndent}[MenuItem]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F777A6F7-9DBF-4F50-83DC-9148C89DF410_see|text=|trigger=button}{sub-section}{sub-section:F777A6F7-9DBF-4F50-83DC-9148C89DF410_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F777A6F7-9DBF-4F50-83DC-9148C89DF410_see|text=|trigger=button}{sub-section}{sub-section:F777A6F7-9DBF-4F50-83DC-9148C89DF410_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F777A6F7-9DBF-4F50-83DC-9148C89DF410_sam|text=|trigger=button}{sub-section}{sub-section:F777A6F7-9DBF-4F50-83DC-9148C89DF410_sam|class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E07C5D77-C7C1-403C-88EC-028FFC3AE82A}{tr:id=name}{td}h6.addRadioButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[RadioButton]{span}{span:id=iets|style=float: left; font-weight: bold;}addRadioButton{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:E07C5D77-C7C1-403C-88EC-028FFC3AE82A_des{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C4271B81-180F-411D-A9F7-37D3A0DDD1BC}{tr:id=name}{td}h6.addRadioButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[RadioButton]{span}{span:id=iets|style=float: left; font-weight: bold;}addRadioButton{span}{span:id=iets|style=float: left;}\(index|name, method, icon, mnemonic, enabled, align){span}{td}{tr}{tr:id=des}{td}{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_des|text=|trigger=button}{sub-section}{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_des|trigger=none|class=sIndent}Add the Radiobutton at the selected index (starting at 0) or add it at the end (empty).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_prs|trigger=none}\[index|name\]
\[method\]
\[icon\]
\[mnemonic\]
\[enabled\]
\[align\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_ret|text=|trigger=button}{sub-section}{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_ret|trigger=none|class=sIndent}[RadioButton]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_see|text=|trigger=button}{sub-section}{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_see|text=|trigger=button}{sub-section}{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_sam|text=|trigger=button}{sub-section}{sub-section:C4271B81-180F-411D-A9F7-37D3A0DDD1BC_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B299FA93-A80A-42F8-9A6F-4C3F64E5DBDB}{tr:id=name}{td}h6.addRadioGroup{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addRadioGroup{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:B299FA93-A80A-42F8-9A6F-4C3F64E5DBDB_des|text=|trigger=button}{sub-section}{sub-section:B299FA93-A80A-42F8-9A6F-4C3F64E5DBDB_des|trigger=none|class=sIndent}Add a Radiogroup for the Radiobuttons.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:B299FA93-A80A-42F8-9A6F-4C3F64E5DBDB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B299FA93-A80A-42F8-9A6F-4C3F64E5DBDB_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B299FA93-A80A-42F8-9A6F-4C3F64E5DBDB_ret|text=|trigger=button}{sub-section}{sub-section:B299FA93-A80A-42F8-9A6F-4C3F64E5DBDB_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B299FA93-A80A-42F8-9A6F-4C3F64E5DBDB_see|text=|trigger=button}{sub-section}{sub-section:B299FA93-A80A-42F8-9A6F-4C3F64E5DBDB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B299FA93-A80A-42F8-9A6F-4C3F64E5DBDB_see|text=|trigger=button}{sub-section}{sub-section:E07C5D77B299FA93-C7C1A80A-403C42F8-88EC9A6F-028FFC3AE82A_des4C3F64E5DBDB_link|class=sIndent|trigger=none|class=sIndent}Add the Radiobutton at the selected index (starting at 0) or add it at the end (empty)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E07C5D77-C7C1-403C-88EC-028FFC3AE82A_prs}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B299FA93-A80A-42F8-9A6F-4C3F64E5DBDB_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E07C5D77B299FA93-C7C1A80A-403C42F8-88EC9A6F-028FFC3AE82A_prs4C3F64E5DBDB_sam|class=sIndent|trigger=none}\[index\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E07C5D77-C7C1-403C-88EC-028FFC3AE82A_ret|text=|trigger=button}{sub-section}{sub-section:E07C5D77-C7C1-403C-88EC-028FFC3AE82A_ret|trigger=none|class=sIndent}[RadioButton]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E07C5D77-C7C1-403C-88EC-028FFC3AE82A_see|text=|trigger=button}{sub-section}{sub-section:E07C5D77-C7C1-403C-88EC-028FFC3AE82A_see|class=sIndent|trigger=none{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linktr:class=lastDetailRow}{td}{td}*External links*\\{sub-section:E07C5D77-C7C1-403C-88EC-028FFC3AE82A_see|text=|trigger=button}{sub-section}{sub-section:E07C5D77-C7C1-403C-88EC-028FFC3AE82A_link|class=sIndent|trigger=none}{sub-section}{tr}{tbody}{tbody:id=232DC41A-9A9C-4304-81D6-DECDCA274E74}{tr:id=name}{td}h6.addSeparator{td}{tr}{builder-show}{tr:id=samsig}{td}*Sample*\\{sub-section:E07C5D77-C7C1-403C-88EC-028FFC3AE82A_sam|text=|trigger=button}{sub-section}{sub-section:E07C5D77-C7C1-403C-88EC-028FFC3AE82A_sam|class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addSeparator{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_des|text=|trigger=button}{sub-section}{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_des|trigger=none|class=sIndent}Add the separator at the selected index (starting at 0) or add it at the end (empty).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_prs|trigger=none}\[index\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_ret|text=|trigger=button}{sub-section}{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_see|text=|trigger=button}{sub-section}{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_see|text=|trigger=button}{sub-section}{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_sam|text=|trigger=button}{sub-section}{sub-section:232DC41A-9A9C-4304-81D6-DECDCA274E74_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA}{tr:id=name}{td}h6.getCheckBox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[CheckBox]{span}{span:id=iets|style=float: left; font-weight: bold;}getCheckBox{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_des|text=|trigger=button}{sub-section}{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_des|trigger=none|class=sIndent}Get the Checkbox at the selected index (starting at 0).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_prs|trigger=none}index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_ret|text=|trigger=button}{sub-section}{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_ret|trigger=none|class=sIndent}[CheckBox]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_see|text=|trigger=button}{sub-section}{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_see|text=|trigger=button}{sub-section}{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:classid=lastDetailRowsam}{td}{td}{tr}{tbody}{tbody:id=9804A99B-9873-4DEA-AEC8-75643FF53C74}{tr:id=name}{td}h6.addRadioGroup{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addRadioGroup{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:9804A99B-9873-4DEA-AEC8-75643FF53C74_des|text=|trigger=button}{sub-section}{sub-section:9804A99B-9873-4DEA-AEC8-75643FF53C74_des|trigger=none|class=sIndent}Add a Radiogroup for the Radiobuttons...{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:9804A99B-9873-4DEA-AEC8-75643FF53C74_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9804A99B-9873-4DEA-AEC8-75643FF53C74_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9804A99B-9873-4DEA-AEC8-75643FF53C74_ret*Sample*\\{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_sam|text=|trigger=button}{sub-section}{sub-section:CF0741DB-0BF2-4961-9D88-DCCEE16CD0DA_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=56B0DC8B-9146-42C3-8289-98063C1B461F}{tr:id=name}{td}h6.getItem{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;}getItem{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:56B0DC8B-9146-42C3-8289-98063C1B461F_des|text=|trigger=button}{sub-section}{sub-section:9804A99B56B0DC8B-98739146-4DEA42C3-AEC88289-75643FF53C7498063C1B461F_retdes|trigger=none|class=sIndent}void{Get the item at the selected index (starting at 0).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=seeprs}{td}*Also seeParameters*\\{sub-section:9804A99B56B0DC8B-98739146-4DEA42C3-AEC88289-75643FF53C7498063C1B461F_seeprs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9804A99B56B0DC8B-98739146-4DEA42C3-AEC88289-75643FF53C7498063C1B461F_seeprs|class=sIndent|trigger=none}index
{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkret}{td}*External linksReturns*\\{sub-section:9804A99B56B0DC8B-98739146-4DEA42C3-AEC88289-75643FF53C7498063C1B461F_seeret|text=|trigger=button}{sub-section}{sub-section:9804A99B56B0DC8B-98739146-4DEA42C3-AEC88289-75643FF53C74_link98063C1B461F_ret|trigger=none|class=sIndent|trigger=none}}com.servoy.extensions.plugins.window.menu.AbstractMenuItem{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=samsee}{td}*SampleAlso see*\\{sub-section:9804A99B56B0DC8B-98739146-4DEA42C3-AEC88289-75643FF53C7498063C1B461F_samsee|text=|trigger=button}{sub-section}{sub-section:9804A99B56B0DC8B-98739146-4DEA42C3-AEC88289-75643FF53C7498063C1B461F_samsee|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{codebuilder-show:languagepermission=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code}{subedit}{tr:id=link}{td}*External links*\\{sub-section:56B0DC8B-9146-42C3-8289-98063C1B461F_see|text=|trigger=button}{sub-section}{sub-section:56B0DC8B-9146-42C3-8289-98063C1B461F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:56B0DC8B-9146-42C3-8289-98063C1B461F_sam|text=|trigger=button}{sub-section}{sub-section:56B0DC8B-9146-42C3-8289-98063C1B461F_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=32C4476F-F9AE-4CE3-BED7-A9A7D917A39A}{tr:id=name}{td}h6.getItemCount{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getItemCount{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_des|text=|trigger=button}{sub-section}{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_des|trigger=none|class=sIndent}Get the number of items in the menu.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_ret|text=|trigger=button}{sub-section}{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_see|text=|trigger=button}{sub-section}{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_see|text=|trigger=button}{sub-section}{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:classid=lastDetailRowsam}{td}{td}{tr}{tbody}{tbody:id=CEFC5559-A783-498F-A6B1-205C0857492A}{tr:id=name}{td}h6.addSeparator{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addSeparator{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:CEFC5559-A783-498F-A6B1-205C0857492A_des|text=|trigger=button}{sub-section}{sub-section:CEFC5559-A783-498F-A6B1-205C0857492A_des|trigger=none|class=sIndent}Add the separator at the selected index (starting at 0) or add it at the end (empty)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:CEFC5559-A783-498F-A6B1-205C0857492A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CEFC5559-A783-498F-A6B1-205C0857492A_prs|trigger=none}\[index\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:CEFC5559-A783-498F-A6B1-205C0857492A_ret|text=|trigger=button}{sub-section}{sub-section:CEFC5559-A783-498F-A6B1-205C0857492A_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CEFC5559-A783-498F-A6B1-205C0857492A_see|text=|trigger=button}{sub-section}{sub-section:CEFC5559-A783-498F-A6B1-205C0857492A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CEFC5559-A783-498F-A6B1-205C0857492A_see*Sample*\\{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_sam|text=|trigger=button}{sub-section}{sub-section:32C4476F-F9AE-4CE3-BED7-A9A7D917A39A_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=5A74207A-87D9-4238-9E5C-C4E0B8316F38}{tr:id=name}{td}h6.getItemIndexByText{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getItemIndexByText{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:5A74207A-87D9-4238-9E5C-C4E0B8316F38_des|text=|trigger=button}{sub-section}{sub-section:CEFC55595A74207A-A78387D9-498F4238-A6B19E5C-205C0857492A_linkC4E0B8316F38_des|trigger=none|class=sIndent|trigger=none}}Retrieve the index of the item by text.{sub-section}{td}{tr}{builder-show}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:CEFC55595A74207A-A78387D9-498F4238-A6B19E5C-205C0857492AC4E0B8316F38_samprs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CEFC55595A74207A-A78387D9-498F4238-A6B19E5C-205C0857492AC4E0B8316F38_samprs|class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9}{tr:id=name}{td}h6.addSubMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Menu]{span}{span:id=iets|style=float: left; font-weight: bold;}addSubMenu{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_des|text=|trigger=button}{sub-section}{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_des|trigger=none|class=sIndent}Add the submenu at the selected index (starting at 0) or add it at the end (empty)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_prs|trigger=none}\[index\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_ret|text=|trigger=button}{sub-section}{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_ret|trigger=none|class=sIndent}[Menu]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_see|text=|trigger=button}{sub-section}{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_see|text=|trigger=button}{sub-section}{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_sam|text=|trigger=button}{sub-section}{sub-section:375C7DCE-CEBA-42AB-8A70-D7EAEEEE39A9_sam|class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=19F6BD65-99EC-42D1-8049-C3A333046755}{tr:id=name}{td}h6.getCheckBox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[CheckBox]{span}{span:id=iets|style=float: left; font-weight: bold;}getCheckBox{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_des|text=|trigger=button}{sub-section}{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_des|trigger=none|class=sIndent}Get the Checkbox at the selected index (starting at 0)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_prs|trigger=none}index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_ret|text=|trigger=button}{sub-section}{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_ret|trigger=none|class=sIndent}[CheckBox]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_see|text=|trigger=button}{sub-section}{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_see|text=|trigger=button}{sub-section}{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_sam|text=|trigger=button}{sub-section}{sub-section:19F6BD65-99EC-42D1-8049-C3A333046755_sam|class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E325AB1D-C159-44C8-8112-BF4C454BDC16}{tr:id=name}{td}h6.getItem{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[MenuItem]{span}{span:id=iets|style=float: left; font-weight: bold;}getItem{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_des|text=|trigger=button}{sub-section}{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_des|trigger=none|class=sIndent}Get the item at the selected index (starting at 0)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_prs|trigger=none}index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_ret|text=|trigger=button}{sub-section}{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_ret|trigger=none|class=sIndent}[MenuItem]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_see|text=|trigger=button}{sub-section}{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_see|text=|trigger=button}{sub-section}{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_sam|text=|trigger=button}{sub-section}{sub-section:E325AB1D-C159-44C8-8112-BF4C454BDC16_sam|class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=13AC431B-7CD5-427C-8C4A-204685CB7E20}{tr:id=name}{td}h6.getItemCount{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getItemCount{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_des|text=|trigger=button}{sub-section}{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_des|trigger=none|class=sIndent}Get the number of items in the popup...{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_ret|text=|trigger=button}{sub-section}{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_see|text=|trigger=button}{sub-section}{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_see|text=|trigger=button}{sub-section}{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_sam|text=|trigger=button}{sub-section}{sub-section:13AC431B-7CD5-427C-8C4A-204685CB7E20_sam|class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845}{tr:id=name}{td}h6.getRadioButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[RadioButton]{span}{span:id=iets|style=float: left; font-weight: bold;}getRadioButton{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_des|text=|trigger=button}{sub-section}{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_des|trigger=none|class=sIndent}Get the Radiobutton at the selected index (starting at 0)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_prs|trigger=none}index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_ret|text=|trigger=button}{sub-section}{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_ret|trigger=none|class=sIndent}[RadioButton]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_see|text=|trigger=button}{sub-section}{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_see|text=|trigger=button}{sub-section}{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_sam|text=|trigger=button}{sub-section}{sub-section:18B636AB-2B1E-4BC0-BAE0-DFC9ED06A845_sam|class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=27BDFE2A-CACE-4996-8B44-D4202A0EE1BC}{tr:id=name}{td}h6.getSubMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Menu]{span}{span:id=iets|style=float: left; font-weight: bold;}getSubMenu{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_des|text=|trigger=button}{sub-section}{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_des|trigger=none|class=sIndent}Get the submenu at the selected index (starting at 0)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_prs|trigger=none}index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_ret|text=|trigger=button}{sub-section}{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_ret|trigger=none|class=sIndent}[Menu]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_see|text=|trigger=button}{sub-section}{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_see|text=|trigger=button}{sub-section}{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_sam|text=|trigger=button}{sub-section}{sub-section:27BDFE2A-CACE-4996-8B44-D4202A0EE1BC_sam|class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7}{tr:id=name}{td}h6.removeAllItems{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeAllItems{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_des|text=|trigger=button}{sub-section}{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_des|trigger=none|class=sIndent}Remove all items from the popup...{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_ret|text=|trigger=button}{sub-section}{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_see|text=|trigger=button}{sub-section}{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_see|text=|trigger=button}{sub-section}{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_sam|text=|trigger=button}{sub-section}{sub-section:67C1C2CC-EA7E-4251-BFAA-C9998FC0A4D7_sam|class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);name
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:5A74207A-87D9-4238-9E5C-C4E0B8316F38_ret|text=|trigger=button}{sub-section}{sub-section:5A74207A-87D9-4238-9E5C-C4E0B8316F38_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5A74207A-87D9-4238-9E5C-C4E0B8316F38_see|text=|trigger=button}{sub-section}{sub-section:5A74207A-87D9-4238-9E5C-C4E0B8316F38_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5A74207A-87D9-4238-9E5C-C4E0B8316F38_see|text=|trigger=button}{sub-section}{sub-section:5A74207A-87D9-4238-9E5C-C4E0B8316F38_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5A74207A-87D9-4238-9E5C-C4E0B8316F38_sam|text=|trigger=button}{sub-section}{sub-section:5A74207A-87D9-4238-9E5C-C4E0B8316F38_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1C2F3ABC-D775-4085-A98E-06DFA3F36BBA}{tr:id=name}{td}h6.getMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Menu]{span}{span:id=iets|style=float: left; font-weight: bold;}getMenu{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_des|text=|trigger=button}{sub-section}{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_des|trigger=none|class=sIndent}Get the submenu at the selected index (starting at 0).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_prs|trigger=none}index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_ret|text=|trigger=button}{sub-section}{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_ret|trigger=none|class=sIndent}[Menu]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_see|text=|trigger=button}{sub-section}{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_see|text=|trigger=button}{sub-section}{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_sam|text=|trigger=button}{sub-section}{sub-section:1C2F3ABC-D775-4085-A98E-06DFA3F36BBA_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD}{tr:id=name}{td}h6.removeItemgetRadioButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void[RadioButton]{span}{span:id=iets|style=float: left; font-weight: bold;}removeItemgetRadioButton{span}{span:id=iets|style=float: left;}\(index 1, index 2-n){span}{td}{tr}{tr:id=des}{td}{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_des|text=|trigger=button}{sub-section}{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_des|trigger=none|class=sIndent}RemoveGet the item(s)Radiobutton at the selected index/indices.. (starting at 0).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_prs|trigger=none}index
1
\[index 2-n\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_ret|text=|trigger=button}{sub-section}{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_ret|trigger=none|class=sIndent}void[RadioButton]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_see|text=|trigger=button}{sub-section}{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_see|text=|trigger=button}{sub-section}{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_sam|text=|trigger=button}{sub-section}{sub-section:612D67F6B6F03FA1-C18F2E6D-425B435D-97DE9678-B886C63EA38A3FDB64D1B7CD_sam|class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=764B69DE-A71E-4E11-AA0D-0346D8BE5BA6}{tr:id=name}{td}h6.show{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}show{span}{span:id=iets|style=float: left;}\(element, x, y){span}{td}{tr}{tr:id=des}{td}{sub-section:764B69DE-A71E-4E11-AA0D-0346D8BE5BA6_des|text=|trigger=button}{sub-section}{sub-section:764B69DE-A71E-4E11-AA0D-0346D8BE5BA6_des|trigger=none|class=sIndent}Show the popup below the element or add x an y values relative to the element...{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F}{tr:id=name}{td}h6.removeAllItems{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeAllItems{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_des|text=|trigger=button}{sub-section}{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_des|trigger=none|class=sIndent}Remove all items from the menu.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_ret|text=|trigger=button}{sub-section}{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_see|text=|trigger=button}{sub-section}{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_see|text=|trigger=button}{sub-section}{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_sam|text=|trigger=button}{sub-section}{sub-section:E16E40BB-CB1F-4CCE-BC1E-DBC28394A00F_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:764B69DE-A71E-4E11-AA0D-0346D8BE5BA6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:764B69DE-A71E-4E11-AA0D-0346D8BE5BA6_prs|trigger=none}element
\[x\]
\[y\]
{sub-section}{divclass=lastDetailRow}{td}{trtd}{tr:id=ret}{tdtbody}*Returns*\\{sub-section:764B69DE-A71E-4E11-AA0D-0346D8BE5BA6_ret|text=|trigger=button}{sub-section}{sub-section:764B69DE-A71E-4E11-AA0D-0346D8BE5BA6_ret|trigger=none|class=sIndent}void{sub-section}{tbody:id=DAB5CD9F-5FC4-44A9-90B0-01517573F449}{tr:id=name}{td}h6.removeItem{td}{tr}{builder-showtr:permission=editid=sig}{td}{trspan:id=see}{td}*Also see*\\{sub-section:764B69DE-A71E-4E11-AA0D-0346D8BE5BA6_see|text=|trigger=button}{sub-section}{sub-section:764B69DE-A71E-4E11-AA0D-0346D8BE5BA6_see|class=sIndent|trigger=none}{sub-sectionstyle=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeItem{span}{span:id=iets|style=float: left;}\(index 1, index 2-n){span}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkdes}{td}*External links*\\{sub-section:764B69DEDAB5CD9F-A71E5FC4-4E1144A9-AA0D90B0-0346D8BE5BA601517573F449_seedes|text=|trigger=button}{sub-section}{sub-section:764B69DEDAB5CD9F-A71E5FC4-4E1144A9-AA0D90B0-0346D8BE5BA6_link01517573F449_des|trigger=none|class=sIndent|trigger=none}}Remove the item(s) at the selected index/indices.{sub-section}{td}{tr}{builder-show}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:764B69DEDAB5CD9F-A71E5FC4-4E1144A9-AA0D90B0-0346D8BE5BA601517573F449_samprs|text=|trigger=button}{sub-section}{sub-section:764B69DE-A71E-4E11-AA0D-0346D8BE5BA6_sam|div:class=sIndent|trigger=none}{code:language=javascript}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);sub-section:DAB5CD9F-5FC4-44A9-90B0-01517573F449_prs|trigger=none}index 1
\[index 2-n\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:DAB5CD9F-5FC4-44A9-90B0-01517573F449_ret|text=|trigger=button}{sub-section}{sub-section:DAB5CD9F-5FC4-44A9-90B0-01517573F449_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DAB5CD9F-5FC4-44A9-90B0-01517573F449_see|text=|trigger=button}{sub-section}{sub-section:DAB5CD9F-5FC4-44A9-90B0-01517573F449_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DAB5CD9F-5FC4-44A9-90B0-01517573F449_see|text=|trigger=button}{sub-section}{sub-section:DAB5CD9F-5FC4-44A9-90B0-01517573F449_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DAB5CD9F-5FC4-44A9-90B0-01517573F449_sam|text=|trigger=button}{sub-section}{sub-section:DAB5CD9F-5FC4-44A9-90B0-01517573F449_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3F245D4B-730A-42F2-934C-AD79D4136466}{tr:id=name}{td}h6.show{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}show{span}{span:id=iets|style=float: left;}\(element, x, y){span}{td}{tr}{tr:id=des}{td}{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_des|text=|trigger=button}{sub-section}{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_des|trigger=none|class=sIndent}Show the popup below the element or add x an y values relative to the element{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_prs|trigger=none}\[element\]
\[x\]
\[y\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_ret|text=|trigger=button}{sub-section}{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_see|text=|trigger=button}{sub-section}{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_see|text=|trigger=button}{sub-section}{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_sam|text=|trigger=button}{sub-section}{sub-section:3F245D4B-730A-42F2-934C-AD79D4136466_sam|class=sIndent|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

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

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

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

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}