menuItem-class {gtkWidgets} | R Documentation |
A BioCMenu widget contains menu items in a menu bar, whose children menu items can be invoked by a user. Each of the menu item is associated with a menuItem object that stores the name of the menu item, the function that will be invoked when the menu item is cliked, and the results of the execution of the function
Objects can be created by calls of the form new("menuItem",
menuName, menuFunc, menuValue))
or a creater menuItem(menuname,
menufunc, menuValue).
menuName
:"character"
a
character string for the name of the menu item as it is displayed
on a BioCMenu widgetmenuFunc
:"function"
a function
that is going to be executed when the associated menu item is clickedmenuValue
:"ANY"
the results
derived from the execution of menuValue
signature(object = "menuItem")
: assignment
function for menuFunc
signature(object = "menuItem")
: function to
access menuFunc
signature(object = "menuItem")
: assignment
function for menuName
signature(object = "menuItem")
: function to
access menuName
signature(object = "menuItem")
: assignment
function for menuValue
signature(object = "menuItem")
: function to
access menuValue
Jianhua Zhang
Programming with Data
anItem <- menuItem(menuname = "item 1", menufunc = function() print("Item 1"), menuvalue = "Item 1")