Browse Source

REPORT-8941 【10.0远程设计权限管理】决策系统用户显示不全

master
yaoh.wu 6 years ago
parent
commit
075bfaff61
  1. 2
      designer-base/src/com/fr/design/remote/ui/list/AddedMemberList.java
  2. 2
      designer-base/src/com/fr/design/remote/ui/list/AddedMemberListCellRender.java
  3. 2
      designer-base/src/com/fr/design/remote/ui/list/AddingMemberList.java
  4. 9
      designer-base/src/com/fr/design/remote/ui/list/AddingMemberListCellRender.java

2
designer-base/src/com/fr/design/remote/ui/list/AddedMemberList.java

@ -32,7 +32,7 @@ public class AddedMemberList extends MemberList {
int rX = point.x;
int rY = point.y;
int index = this.getSelectedIndex();
int x = 280;
int x = 270;
int y = 25 * index;
int width = 20;
int height = 25;

2
designer-base/src/com/fr/design/remote/ui/list/AddedMemberListCellRender.java

@ -24,7 +24,7 @@ public class AddedMemberListCellRender extends JPanel implements ListCellRendere
label = new UILabel();
label.setIcon(BaseUtils.readIcon("com/fr/design/remote/images/icon_Member_normal@1x.png"));
label.setPreferredSize(new Dimension(270, 20));
label.setPreferredSize(new Dimension(260, 20));
this.setPreferredSize(new Dimension(this.getPreferredSize().width, 25));
this.add(label);

2
designer-base/src/com/fr/design/remote/ui/list/AddingMemberList.java

@ -43,7 +43,7 @@ public class AddingMemberList extends MemberList {
int rX = point.x;
int rY = point.y;
int index = this.getSelectedIndex();
int x = 280;
int x = 270;
int y = 25 * index;
int width = 25;
int height = 25;

9
designer-base/src/com/fr/design/remote/ui/list/AddingMemberListCellRender.java

@ -24,7 +24,7 @@ public class AddingMemberListCellRender extends JPanel implements ListCellRender
this.setLayout(new FlowLayout(FlowLayout.LEFT));
label = new UILabel();
label.setPreferredSize(new Dimension(270, 20));
label.setPreferredSize(new Dimension(260, 20));
this.setPreferredSize(new Dimension(this.getPreferredSize().width, 25));
label.setIcon(BaseUtils.readIcon("com/fr/design/remote/images/icon_Member_normal@1x.png"));
@ -39,8 +39,15 @@ public class AddingMemberListCellRender extends JPanel implements ListCellRender
@Override
public Component getListCellRendererComponent(JList list, RemoteDesignMember member, int index, boolean isSelected, boolean cellHasFocus) {
if (member.equals(RemoteDesignMember.DEFAULT_MEMBER)) {
this.setLabelText(member.getUsername());
check.setVisible(false);
} else {
this.setLabelText(member.getRealName() + "(" + member.getUsername() + ")");
check.setVisible(true);
check.setSelected(member.isSelected());
}
return this;
}

Loading…
Cancel
Save