|
|
@ -314,16 +314,15 @@ public abstract class AbstractManagerPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
private void addToMemberList() { |
|
|
|
private void addToMemberList() { |
|
|
|
addingListModel.clear(); |
|
|
|
addingListModel.clear(); |
|
|
|
for (RemoteDesignMember member : addingMembers) { |
|
|
|
for (RemoteDesignMember addingMember : addingMembers) { |
|
|
|
// 如果包含在右侧列表中,那么左侧列表默认选中
|
|
|
|
// 如果包含在右侧列表中,那么左侧列表默认选中
|
|
|
|
if (addedMembers.contains(member)) { |
|
|
|
for (RemoteDesignMember addedMember : addedMembers){ |
|
|
|
member.setAuthority(true); |
|
|
|
if (addingMember.equals(addedMember)){ |
|
|
|
member.setSelected(true); |
|
|
|
addingMember.setAuthority(addedMember.hasAuthority()); |
|
|
|
} else { |
|
|
|
addingMember.setSelected(true); |
|
|
|
member.setAuthority(false); |
|
|
|
} |
|
|
|
member.setSelected(false); |
|
|
|
} |
|
|
|
} |
|
|
|
addingListModel.addElement(addingMember); |
|
|
|
addingListModel.addElement(member); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
addingList.revalidate(); |
|
|
|
addingList.revalidate(); |
|
|
|
addingList.repaint(); |
|
|
|
addingList.repaint(); |
|
|
|