code factorisation (table cell renderer & editor)