Feature #5033: add extend function for ccui classes