Browse Source

1

bugfix/10.0
neil 6 years ago
parent
commit
dff9c1758b
  1. 13
      designer-base/src/main/java/com/fr/design/web/CustomIconPane.java

13
designer-base/src/main/java/com/fr/design/web/CustomIconPane.java

@ -41,9 +41,7 @@ import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
/**
*
* carl自定义Icon编辑
*
*/
public class CustomIconPane extends BasicPane {
private String selectedIconName = null;
@ -57,7 +55,6 @@ public class CustomIconPane extends BasicPane {
private UIButton editButton;
private static final int THE_WIDTH = 180;
private static final int HORIZONTAL_COUNT = 6;
private static final int HEIGHT_PER = 29;
@ -87,7 +84,7 @@ public class CustomIconPane extends BasicPane {
noNamePane.add(jsPane);
DescriptionTextArea des = new DescriptionTextArea(2);
des.setText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Custom_Icon_Message1"));
des.setText(createDescriptionText());
centerPane.add(des, BorderLayout.SOUTH);
this.add(centerPane, BorderLayout.CENTER);
@ -105,6 +102,11 @@ public class CustomIconPane extends BasicPane {
}
protected String createDescriptionText(){
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Custom_Icon_Message1");
}
private void initIcons() {
iconButtonMap = new ListMap();
iconManager = WidgetInfoConfig.getInstance().getIconManager();
@ -292,6 +294,7 @@ public class CustomIconPane extends BasicPane {
WidgetInfoConfig.getInstance().setIconManager(IconManager.getIconManager());
}
});
return selectedIconName;
}
@ -318,6 +321,7 @@ public class CustomIconPane extends BasicPane {
private static final int ICON_BUTTON_SIZE = 24;
private static final int ICON_X = 4;
private static final int ICON_Y = 4;
public IconButton(String name) {
this.iconName = name;
this.addActionListener(this);
@ -412,6 +416,7 @@ public class CustomIconPane extends BasicPane {
public void focusGained(FocusEvent e) {
// do nothing
}
public void focusLost(FocusEvent e) {
if (oldName != null && ComparatorUtils.equals(oldName, nameTextField.getText())) {
return;

Loading…
Cancel
Save