widget添加setters和getters