bioCMWidget-class         package:gtkWidgets         R Documentation

_C_l_a_s_s "_b_i_o_C_M_W_i_d_g_e_t" _r_e_p_r_e_s_e_n_t_s _a _R_G_t_k _w_i_d_g_e_t_s _w_i_t_h _o_n_l_y _a _m_e_n_u
_c_o_n_t_a_i_n_i_n_g _m_e_n_u _b_a_r

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

     A bioCMWidget object contains a mane bar on the top that has menu
     item. Functions are also provided to allow users to add new menu
     items

_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("bioCMWidget",
     title, fileMenu)' or use a creater bioCMWidget(title, fileMenu).

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

     '_m_e_n_u_E_n_v': Object of class '"environment"' an environment object
          that serves as the storage for all the objects that will be
          ceated

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

     _a_d_d_M_e_n_u_I_t_e_m 'signature(object = "bioCMWidget")': a function to
          allow users to add new menu items to the widget

     _m_e_n_u_E_n_v 'signature(object = "bioCMWidget")': a function to allow
          users to access the environment where new objects will be
          stored

     _r_e_m_o_v_e_M_e_n_u_I_t_e_m 'signature(object = "bioCMWidget")': a function to
          allow users to remove menu items from the widget

     _s_h_o_w 'signature(object = "bioCMWidget")': a function that makes
          the mune widget visible

     _c_o_n_B_o_x_I_n_s_e_r_t 'signature(object = "bioCMWidget")': a function that
          inserts the argument passed (a gtkWidget) into the gtkBox
          associated with a bioCMWidget and displays the contents of
          the widget passed. Only one widget can be inserted and the
          existing one will be destroyed/replaced

     _c_o_n_B_o_x_C_l_e_a_r 'signature(object = "bioCMWidget")': a function that
          destroys the gtkWidget that is in the gtkBox associated with
          a bioCMWidget

_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:

     'menuItem-class'

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

        if(interactive()){
            mWidget <- bioCMWidget("BioC RGtk Widget")
            show(mWidget)
        } 

