{column:width=80px}{column}{column}{column}
Method Summary
addCheckBox(index)
Add the Checkbox at the selected index (starting at 0) or add it at the end (empty).
addRadioButton(index)
Add the Radiobutton at the selected index (starting at 0) or add it at the end (empty).
void
addRadioGroup()
Add a Radiogroup for the Radiobuttons.
void
addSeparator(index)
Add the separator at the selected index (starting at 0) or add it at the end (empty).
addSubMenu(index)
Add the submenu at the selected index (starting at 0) or add it at the end (empty).
getCheckBox(index)
Get the Checkbox at the selected index (starting at 0).
getItemCount()
Get the number of items in the popup.
getRadioButton(index)
Get the Radiobutton at the selected index (starting at 0).
getSubMenu(index)
Get the submenu at the selected index (starting at 0).
void
removeAllItems()
Remove all items from the popup.
void
removeItem(index 1, index 2-n)
Remove the item(s) at the selected index/indices.
void
show(element, x, y)
Show the popup below the element or add x an y values relative to the element.
{column:width=100%}{column}
Method Details
addCheckBox
(index)
Add the Checkbox at the selected index (starting at 0) or add it at the end (empty)...
Parameters
[index]
Also see
External links
Sample
// 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);
addItem
(index)
Add the item at the selected index (starting at 0) or add it at the end (empty)...
Parameters
[index]
Also see
External links
Sample
// 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);
addRadioButton
(index)
Add the Radiobutton at the selected index (starting at 0) or add it at the end (empty)...
Parameters
[index]
Also see
External links
Sample
// 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);
void
addRadioGroup
()
Add a Radiogroup for the Radiobuttons...
Parameters
Returns
void
Also see
External links
Sample
// 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);
void
addSeparator
(index)
Add the separator at the selected index (starting at 0) or add it at the end (empty)...
Parameters
[index]
Returns
void
Also see
External links
Sample
// 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);
addSubMenu
(index)
Add the submenu at the selected index (starting at 0) or add it at the end (empty)...
Parameters
[index]
Also see
External links
Sample
// 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);
getCheckBox
(index)
Get the Checkbox at the selected index (starting at 0)...
Parameters
index
Also see
External links
Sample
// 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);
getItem
(index)
Get the item at the selected index (starting at 0)...
Parameters
index
Also see
External links
Sample
// 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);
getItemCount
()
Get the number of items in the popup...
Parameters
Also see
External links
Sample
// 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);
getRadioButton
(index)
Get the Radiobutton at the selected index (starting at 0)...
Parameters
index
Also see
External links
Sample
// 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);
getSubMenu
(index)
Get the submenu at the selected index (starting at 0)...
Parameters
index
Also see
External links
Sample
// 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);
void
removeAllItems
()
Remove all items from the popup...
Parameters
Returns
void
Also see
External links
Sample
// 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);
void
removeItem
(index 1, index 2-n)
Remove the item(s) at the selected index/indices...
Parameters
index 1
[index 2-n]
Returns
void
Also see
External links
Sample
// 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);
void
show
(element, x, y)
Show the popup below the element or add x an y values relative to the element...
Parameters
element
[x]
[y]
Returns
void
Also see
External links
Sample
// 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);