Browse Source

REPORT-6700 远程权限验收问题

final/10.0
yaoh.wu 6 years ago
parent
commit
f88ee1d68a
  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. 10
      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); return new UITitledBorder(title);
} }
public static UITitledBorder createBorderWithTitle(String title, int roundedCorner) {
return new UITitledBorder(title, roundedCorner);
}
private UITitledBorder(String title) { private UITitledBorder(String title) {
super( super(
BorderFactory.createCompoundBorder( BorderFactory.createCompoundBorder(
@ -37,4 +41,29 @@ public class UITitledBorder extends TitledBorder {
new Color(1, 159, 222) 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 @Override
public String i18nText(String key, Object... args) { 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); MessageFormatter.FormattingTuple tuple = MessageFormatter.arrayFormat(format, args);
return localeManager.getLocalBundle(GeneralContext.getLocale()).getText(localeManager, tuple.getMessage()); 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); super(StringUtils.EMPTY);
setContentAreaFilled(false); setContentAreaFilled(false);
setFocusPainted(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); 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"}); IOFileNodeFilter filter = new IOFileNodeFilter(new String[]{".cpt", ".class", ".frm", ".form"});
tree.setDigIn(true); tree.setDigIn(true);
tree.setFileNodeFilter(filter); 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(); tree.refreshEnv();
} }

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

@ -194,7 +194,7 @@ public class UserManagerPane extends BasicPane {
public UserManagerPane() { public UserManagerPane() {
this.setBorder(BorderFactory.createEmptyBorder(0,4,0,4)); this.setBorder(BorderFactory.createEmptyBorder(0, 4, 0, 4));
this.setLayout(new BorderLayout()); this.setLayout(new BorderLayout());
this.add( this.add(
TableLayoutHelper.createCommonTableLayoutPane( TableLayoutHelper.createCommonTableLayoutPane(
@ -221,8 +221,8 @@ public class UserManagerPane extends BasicPane {
BorderFactory.createCompoundBorder( BorderFactory.createCompoundBorder(
new EmptyBorder(6, 0, 0, 0), new EmptyBorder(6, 0, 0, 0),
UITitledBorder.createBorderWithTitle( 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( content.setBorder(
BorderFactory.createCompoundBorder( BorderFactory.createCompoundBorder(
new EmptyBorder(6, 0, 0, 0), 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