validDetails              package:grid              R Documentation

_C_u_s_t_o_m_i_s_i_n_g _g_r_i_d _g_r_o_b _V_a_l_i_d_a_t_i_o_n

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

     This generic hook function is called whenever a grid grob is
     created or edited via 'grob', 'gTree', 'grid.edit' or 'editGrob'.
     This provides an opportunity for customising the validation of a
     new class derived from grob (or gTree).

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

     validDetails(x)

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

       x: A grid grob. 

_D_e_t_a_i_l_s:

     This function is called by 'grob', 'gTree', 'grid.edit' and
     'editGrob'. A method should be written for classes derived from
     grob or gTree to validate the values of slots specific to the new
     class. (e.g., see 'grid:::validDetails.axis').

     Note that the standard slots for grobs and gTrees are
     automatically validated (e.g., 'vp', 'gp' slots for grobs and, in
     addition, 'children', and 'childrenvp' slots for gTrees) so only
     slots specific to a new class need to be addressed.

_V_a_l_u_e:

     The function MUST return the validated grob.

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

     Paul Murrell

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

     'grid.edit'

