'@todo: docstring'

def addData(self, element, row, col):

    try:
        widgetObj = self.widgetList[element]
    except:
        _debug(('Unable    to    find    element    %s    in    the    template' % element))
        return self.matrix.addCell(row, col, '', [])
    widgetObj.startPosn = (col, row)
    self.widgetsInList.append(widgetObj)
    if self.labelLeft:
        widgetObj.labelLeft = (self.labelLeft == 'True')
        self.labelLeft = None
    try:
        (endrow, endcol) = widgetObj.writeToMatrix(self.matrix, row, col, answerMatrix=self.answerMatrix, langDict=self.langDict)
    except Exception as msg:
        current.log.error(msg)
        return (row, col)
    if (self.boxOpen == False):
        self.matrix.boxRange(row, col, endrow, (endcol - 1))
    return (endrow, endcol)
