Some question in custom properties

When I use property panel extensions, I need to add “RolesProps” to my project , it is made up by some checkbox ,like this:

so, how to set the options about getter and setter , now I imitate the “CheckboxEntryFactory” to create my
“MultiCheckboxFactory” ,but could not work well …