public DynaFormControl addControl ( final Object data , final String type , final int colspan , final int rowspan ) { final DynaFormControl dynaFormControl = new DynaFormControl ( data , type , colspan , rowspan , row , elements . size ( ) + 1 , dynaFormModel . getControls ( ) . size ( ) + 1 , extended ) ; elements . add ( dynaFormControl ) ; dynaFormModel . getControls ( ) . add ( dynaFormControl ) ; totalColspan = totalColspan + colspan ; return dynaFormControl ; }
Adds control with given data type colspan and rowspan .