Browse Source

REPORT-55108 【组件背景分离】组件复用-边框选择自定义图片,但还没具体选择某张图片时,此时的点九图填充设置按钮应该先灰化

【问题原因】
原交互稿上没有灰化的逻辑,补充下
【改动思路】
【review建议】
feature/10.0
Starryi 3 years ago
parent
commit
ea6cec8458
  1. 5
      designer-form/src/main/java/com/fr/design/gui/xpane/BorderLineAndImagePane.java

5
designer-form/src/main/java/com/fr/design/gui/xpane/BorderLineAndImagePane.java

@ -219,6 +219,7 @@ public class BorderLineAndImagePane extends JPanel implements UIObserver {
}
if (!borderLineCombo.isSelectedBorderImage()) {
imagePreviewPane.setImageWithSuffix(null);
tweakNinePointButton.setEnabled(false);
}
fireStateChanged();
@ -244,6 +245,9 @@ public class BorderLineAndImagePane extends JPanel implements UIObserver {
ninePointLeft = ninePointRight = (image != null ? image.getWidth(null) / 3 : -1);
ninePointTop = ninePointBottom = (image != null ? image.getHeight(null) / 3 : -1);
borderImageOpacityPane.populateBean(1.0);
if (image != null) {
tweakNinePointButton.setEnabled(true);
}
fireStateChanged();
}
@ -285,6 +289,7 @@ public class BorderLineAndImagePane extends JPanel implements UIObserver {
if (image != null) {
this.borderLineCombo.selectBorderImage();
this.imagePreviewPane.setImageWithSuffix(((ImageBackground) borderImage).getImageWithSuffix());
this.tweakNinePointButton.setEnabled(true);
this.borderImageOpacityPane.populateBean(style.getBorderImageOpacity());
if (ninePoint != null && ninePoint.length == 4 && ninePoint[0] > 0 && ninePoint[1] > 0 && ninePoint[2] > 0 && ninePoint[3] > 0) {
ninePointLeft = ninePoint[0];

Loading…
Cancel
Save