menuItem-class          package:gtkWidgets          R Documentation

_C_l_a_s_s "_m_e_n_u_I_t_e_m" _r_e_p_r_e_s_e_n_t_s _a _g_r_o_u_p _o_f _o_b_j_e_c_t_s _t_h_a_t _a_r_e _u_s_e_d _t_o
_s_t_o_r_y _d_a_t_a _a_s_s_o_c_i_a_t_e_d _w_i_t_h _a _m_e_n_u _i_t_e_m _o_n _a _B_i_o_C_M_e_n_u _w_i_d_g_e_t

_D_e_s_c_r_i_p_t_i_o_n:

     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

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

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

_S_l_o_t_s:

     '_m_e_n_u_N_a_m_e': Object of class '"character"' a character string for
          the name of the menu item as it is displayed on a BioCMenu
          widget

     '_m_e_n_u_F_u_n_c': Object of class '"function"' a function that is going
          to be executed when the associated menu item is clicked

     '_m_e_n_u_V_a_l_u_e': Object of class '"ANY"' the results derived from the
          execution of 'menuValue'

_M_e_t_h_o_d_s:

     _m_e_n_u_F_u_n_c<- 'signature(object = "menuItem")': assignment function
          for 'menuFunc'

     _m_e_n_u_F_u_n_c 'signature(object = "menuItem")': function to access
          'menuFunc'

     _m_e_n_u_N_a_m_e<- 'signature(object = "menuItem")': assignment function
          for 'menuName'

     _m_e_n_u_N_a_m_e 'signature(object = "menuItem")': function to access
          'menuName'

     _m_e_n_u_V_a_l_u_e<- 'signature(object = "menuItem")': assignment function
          for 'menuValue'

     _m_e_n_u_V_a_l_u_e 'signature(object = "menuItem")': function to access
          'menuValue'

_A_u_t_h_o_r(_s):

     Jianhua Zhang

_R_e_f_e_r_e_n_c_e_s:

     Programming with Data

_S_e_e _A_l_s_o:

     'bioCMWidget-class'

_E_x_a_m_p_l_e_s:

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

