menuItem-class {gtkWidgets}R Documentation

Class "menuItem" represents a group of objects that are used to story data associated with a menu item on a BioCMenu widget

Description

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 from the Class

Objects can be created by calls of the form new("menuItem", menuName, menuFunc, menuValue)) or a creater menuItem(menuname, menufunc, menuValue).

Slots

menuName:
Object of class "character" a character string for the name of the menu item as it is displayed on a BioCMenu widget
menuFunc:
Object of class "function" a function that is going to be executed when the associated menu item is clicked
menuValue:
Object of class "ANY" the results derived from the execution of menuValue

Methods

menuFunc<-
signature(object = "menuItem"): assignment function for menuFunc
menuFunc
signature(object = "menuItem"): function to access menuFunc
menuName<-
signature(object = "menuItem"): assignment function for menuName
menuName
signature(object = "menuItem"): function to access menuName
menuValue<-
signature(object = "menuItem"): assignment function for menuValue
menuValue
signature(object = "menuItem"): function to access menuValue

Author(s)

Jianhua Zhang

References

Programming with Data

See Also

bioCMWidget-class

Examples

    anItem <- menuItem(menuname = "item 1", menufunc = function()
print("Item 1"), menuvalue = "Item 1") 

[Package gtkWidgets version 0.6.6 Index]