Browse Source

REPORT-107973 东区面板兼容插件图标

newui
Leo.Qin 11 months ago
parent
commit
5b893778c5
  1. 10
      designer-base/src/main/java/com/fr/design/mainframe/EastRegionContainerPane.java

10
designer-base/src/main/java/com/fr/design/mainframe/EastRegionContainerPane.java

@ -778,15 +778,15 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
public PropertyItem(String name, String title, String btnIconName, PropertyMode[] visibleModes, PropertyMode[] enableModes) {
this(name, title, btnIconName, ICON_BASE_DIR, visibleModes, enableModes, null, null);
this(name, title, btnIconName, null, visibleModes, enableModes, null, null);
}
public PropertyItem(String name, String title, String btnIconName, PropertyMode[] visibleModes, PropertyMode[] enableModes, SnapChat snapChat, PromptWindow promptWindow, ActionListener actionListener) {
this(name, title, btnIconName, ICON_BASE_DIR, visibleModes, enableModes, snapChat, promptWindow, actionListener);
this(name, title, btnIconName, null, visibleModes, enableModes, snapChat, promptWindow, actionListener);
}
public PropertyItem(String name, String title, String btnIconName, PropertyMode[] visibleModes, PropertyMode[] enableModes, ActionListener actionListener) {
this(name, title, btnIconName, ICON_BASE_DIR, visibleModes, enableModes, null, null, actionListener);
this(name, title, btnIconName, null, visibleModes, enableModes, null, null, actionListener);
}
public PropertyItem(String name, String title, String btnIconName, String iconBaseDir, PropertyMode[] visibleModes, PropertyMode[] enableModes, SnapChat snapChat, PromptWindow promptWindow) {
@ -986,7 +986,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
public void setTabButtonSelected() {
resetPropertyIcons();
if (iconBaseDir == null || StringUtils.isEmpty(iconBaseDir)) {
if (StringUtils.isEmpty(iconBaseDir)) {
button.setIcon(new LazyIcon(getBtnIconId()));
iconSuffix = ICON_SUFFIX_SELECTED;
} else {
@ -1032,7 +1032,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
}
private void initButtonIcon() {
if (iconBaseDir == null || StringUtils.isEmpty(iconBaseDir)) {
if (StringUtils.isEmpty(iconBaseDir)) {
button.setIcon(new LazyIcon(getBtnIconId()));
button.setDisabledIcon(new LazyIcon(btnIconName + ICON_SUFFIX_DISABLED));
} else {

Loading…
Cancel
Save