basicPW-class          package:widgetTools          R Documentation

_C_l_a_s_s "_b_a_s_i_c_P_W", _a _b_a_s_i_c _c_l_a_s_s _f_o_r _p_r_i_m_a_r_y _w_i_d_g_e_t_s

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

     This class defines the behavior shared by primary widget object
     used to build a GUI type interface

_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("basicPW", ...)'.
     Constructors have been defined to create objects of this class for
     specific widgets such as buttons, list boxes, ..

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


     '_w_N_a_m_e': Object of class '"character"' - a string for the name of
          the object

     '_w_T_y_p_e': Object of class '"character"' - a string defining the
          type of the primary widget. (e.g. button)

     '_w_V_a_l_u_e': Object of class '"ANY"' - the initial value to be
          associated with the object

     '_w_W_i_d_t_h': Object of class '"numeric"' - an integer for the width
          of the object to be rendered (if applicable)

     '_w_H_e_i_g_h_t': Object of class '"numeric"' - an integer for the height
          of the object to be rendered (if applicable)

     '_w_F_u_n_s': Object of class '"list"' - a list of R functions to be
          executed before the widget is activated

     '_w_P_r_e_F_u_n': Object of class '"function"' - a list of functions to
          be executed before the value of the widget to be updated

     '_w_P_o_s_t_F_u_n': Object of class '"function"' - a list of functions to
          be executed before the value of the widget to be retrieved

     '_w_N_o_t_i_f_y': Object of class '"list"' - a list of functions to be
          executed each time when the value of the widget changes

     '_w_E_n_v': Object of class '"environment"' - an R environment object
          within which the value of the object is stored

     '_w_V_i_e_w': Object of class '"widgetView"' - a object of the class
          widgetView to which the widget is rendered

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


     _w_E_n_v<- 'signature(object = "basicPW")': Set the value for wEnv
          slot

     _w_E_n_v 'signature(object = "basicPW")': Get the value for wEnv slot 

     _w_F_u_n_s<- 'signature(object = "basicPW")': Set the value for wFuns
          slot

     _w_F_u_n_s 'signature(object = "basicPW")': Get the value for wFuns
          slot

     _w_H_e_i_g_h_t<- 'signature(object = "basicPW")': Set the value for
          wHeight slot

     _w_H_e_i_g_h_t 'signature(object = "basicPW")': Get the value for wHeight
          slot

     _w_N_a_m_e<- 'signature(object = "basicPW")': Set the value for wName
          slot

     _w_N_a_m_e 'signature(object = "basicPW")': Get the value for wName
          slot

     _w_N_o_t_i_f_y<- 'signature(object = "basicPW")': Set the value for
          wNotify slot

     _w_N_o_t_i_f_y 'signature(object = "basicPW")': Get the value for wNotify
          slot

     _w_P_o_s_t_F_u_n<- 'signature(object = "basicPW")': Set the value for
          wPostFun slot 

     _w_P_o_s_t_F_u_n 'signature(object = "basicPW")': Get the value for
          wPostFun slot

     _w_P_r_e_F_u_n<- 'signature(object = "basicPW")': Set the value for
          wPreFun slot

     _w_P_r_e_F_u_n 'signature(object = "basicPW")': Get the value for wPreFun
          slot

     _w_T_y_p_e<- 'signature(object = "basicPW")': Set the value for wType
          slot

     _w_T_y_p_e 'signature(object = "basicPW")': Get the value for wType
          slot

     _w_V_a_l_u_e<- 'signature(object = "basicPW")': Set the value for wValue
          slot

     _w_V_a_l_u_e 'signature(object = "basicPW")': Get the value for wValue
          slot 

     _w_V_i_e_w<- 'signature(object = "basicPW")': Set the value for wView
          slot 

     _v_i_e_w 'signature(object = "basicPW")': Get the value for wView slot 

     _w_W_i_d_t_h<- 'signature(object = "basicPW")': Set the value for wWidth
          slot 

     _w_W_i_d_t_h 'signature(object = "basicPW")': Get the value for wWidth
          slot

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

     'widgetView-class','widget-class'

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

     # Create an R environment to store the values of primary widgets
     PWEnv <- new.env(hash = TRUE, parent = parent.frame(1))

     # Create a label
     label1 <- label(wName = "label1", wValue = "File Name: ", wEnv = PWEnv)

     # Create an entry box with "Feed me using brows" as the default value
     entry1 <- entryBox(wName = "entry1", wValue = "Feed me using browse",
                        wEnv = PWEnv)

