setOpenDView             package:iSPlot             R Documentation

_S_e_t_s _t_h_e _c_o_n_t_r_o_l _w_i_n_d_o_w _t_o _o_p_e_n _d_a_t_a _v_i_e_w

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

     setOpenDView sets the control window so it shows a list of data 
     objects that are returned from data().  The user can then
     highlight  an item from the list and choose to load that data. 
     Currently,  only matrices and dataframes can be loaded so if the
     user chooses a  data object that is not of a matrix or dataframe,
     then a message box  will pop up to let the user know that the data
     could not be loaded.   loadIfDF checks if the data object is a
     matrix or dataframe and then  loads the object if it is a matrix
     or dataframe or it calls showNotDF,  which pops up the message box
     to let the user know that the data was  not loaded.  setOpenDView
     is called when the user chooses 'open data'  from the file menu.

_U_s_a_g_e:

     setOpenDView()
     loadIfDF()
     showNotDF(curDF)

_A_r_g_u_m_e_n_t_s:

   curDF: the current data name

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

     Elizabeth Whalen

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

     'updateControlWindow', 'loadDFData', 'setLoadView', 'getLoadedDF'

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

       if (interactive())
       {
         createControlWindow()
         # setOpenDView should be called by the user choosing 
         # 'open data' under the file menu
         setOpenDView()
       }

