Browse Source

Merge pull request #361 in DESIGN/design from ~YAOH.WU/design:release/10.0 to release/10.0

* commit 'f88ee1d68af3541715a63680b86d4debf9af159a':
  REPORT-6700 远程权限验收问题
final/10.0
yaoh.wu 6 years ago
parent
commit
5c3b197361
  1. 29
      designer-base/src/main/java/com/fr/design/border/UITitledBorder.java
  2. 2
      designer-base/src/main/java/com/fr/design/i18n/DesignI18nImpl.java
  3. 2
      designer-base/src/main/java/com/fr/design/remote/button/IconButton.java
  4. 4
      designer-base/src/main/java/com/fr/design/remote/ui/AuthorityEditorPane.java
  5. 8
      designer-base/src/main/java/com/fr/design/remote/ui/UserManagerPane.java
  6. BIN
      designer-base/src/main/resources/com/fr/design/remote/images/icon_tab_close_normal.png
  7. BIN
      designer-base/src/main/resources/com/fr/design/remote/images/icon_tab_close_normal@2x.png

29
designer-base/src/main/java/com/fr/design/border/UITitledBorder.java

@ -17,6 +17,10 @@ public class UITitledBorder extends TitledBorder {
return new UITitledBorder(title);
}
public static UITitledBorder createBorderWithTitle(String title, int roundedCorner) {
return new UITitledBorder(title, roundedCorner);
}
private UITitledBorder(String title) {
super(
BorderFactory.createCompoundBorder(
@ -37,4 +41,29 @@ public class UITitledBorder extends TitledBorder {
new Color(1, 159, 222)
);
}
/**
* @param title title
* @param roundedCorner corner width 圆弧宽度即圆角直径
*/
private UITitledBorder(String title, int roundedCorner) {
super(
BorderFactory.createCompoundBorder(
BorderFactory.createEmptyBorder(
0,
0,
5,
0),
new UIRoundedBorder(
UIConstants.TITLED_BORDER_COLOR,
1,
roundedCorner)
),
title,
TitledBorder.LEADING,
TitledBorder.TOP,
null,
new Color(1, 159, 222)
);
}
}

2
designer-base/src/main/java/com/fr/design/i18n/DesignI18nImpl.java

@ -34,7 +34,7 @@ public class DesignI18nImpl implements DesignI18nProvider {
@Override
public String i18nText(String key, Object... args) {
String format = InterProviderFactory.getProvider().getLocText(key);
String format = this.i18nText(key);
MessageFormatter.FormattingTuple tuple = MessageFormatter.arrayFormat(format, args);
return localeManager.getLocalBundle(GeneralContext.getLocale()).getText(localeManager, tuple.getMessage());
}

2
designer-base/src/main/java/com/fr/design/remote/button/IconButton.java

@ -19,7 +19,7 @@ public final class IconButton extends JButton {
super(StringUtils.EMPTY);
setContentAreaFilled(false);
setFocusPainted(false);
setIcon(BaseUtils.readIcon("com/fr/design/remote/images/icon_Remove_x.png"));
setIcon(BaseUtils.readIcon("com/fr/design/remote/images/icon_tab_close_normal.png"));
setBorder(null);
}

4
designer-base/src/main/java/com/fr/design/remote/ui/AuthorityEditorPane.java

@ -38,7 +38,9 @@ public class AuthorityEditorPane extends BasicBeanPane<DesignAuthority> {
IOFileNodeFilter filter = new IOFileNodeFilter(new String[]{".cpt", ".class", ".frm", ".form"});
tree.setDigIn(true);
tree.setFileNodeFilter(filter);
this.add(new UIScrollPane(tree), BorderLayout.CENTER);
UIScrollPane scrollPane = new UIScrollPane(tree);
scrollPane.setBorder(BorderFactory.createEmptyBorder());
this.add(scrollPane, BorderLayout.CENTER);
tree.refreshEnv();
}

8
designer-base/src/main/java/com/fr/design/remote/ui/UserManagerPane.java

@ -221,8 +221,8 @@ public class UserManagerPane extends BasicPane {
BorderFactory.createCompoundBorder(
new EmptyBorder(6, 0, 0, 0),
UITitledBorder.createBorderWithTitle(
Toolkit.i18nText("Fine-Design_Basic_Remote_Design_Decision_Member")
)
Toolkit.i18nText("Fine-Design_Basic_Remote_Design_Decision_Member"),
4)
)
);
@ -279,7 +279,9 @@ public class UserManagerPane extends BasicPane {
content.setBorder(
BorderFactory.createCompoundBorder(
new EmptyBorder(6, 0, 0, 0),
UITitledBorder.createBorderWithTitle(Toolkit.i18nText("Fine-Design_Basic_Remote_Design_Selected_Member")
UITitledBorder.createBorderWithTitle(
Toolkit.i18nText("Fine-Design_Basic_Remote_Design_Selected_Member"),
4
)
)
);

BIN
designer-base/src/main/resources/com/fr/design/remote/images/icon_tab_close_normal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

BIN
designer-base/src/main/resources/com/fr/design/remote/images/icon_tab_close_normal@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

Loading…
Cancel
Save