예제 #1
0
 public void fromTeamRole(TeamRole role) {
   if (role != null) {
     name.setText(role.getName());
     setSelectedList(rolesList, role.getRole());
   } else {
     name.setText("");
     setSelectedList(rolesList, null);
   }
 }
예제 #2
0
 public void toTeamRole(TeamRole role) {
   if (role != null) {
     role.setName(name.getText());
     role.setRole((Role) getSelecetdList(rolesList));
   }
 }