public void dataToField ( ComponentCache componentCache , int iRowIndex , int iColumnIndex ) { if ( componentCache . m_rgcompoments [ iColumnIndex ] != null ) { String string = null ; if ( componentCache . m_rgcompoments [ iColumnIndex ] instanceof JTextComponent ) string = ( ( JTextComponent ) componentCache . m_rgcompoments [ iColumnIndex ] ) . getText ( ) ; if ( componentCache . m_rgcompoments [ iColumnIndex ] instanceof JCheckBox ) if ( ( ( JCheckBox ) componentCache . m_rgcompoments [ iColumnIndex ] ) . isSelected ( ) ) string = "1" ; //xif (string != null) if (string.length() > 0) this . getModel ( ) . setValueAt ( string , iRowIndex , iColumnIndex ) ; } }
Change the table by setting this field to the value in the component at this location .