Browse Source

REPORT-54529 插件兼容问题

final/10.0
kuangshuai 4 years ago
parent
commit
1b0cc9107e
  1. 2
      designer-form/src/main/java/com/fr/design/designer/creator/XChartEditor.java
  2. 10
      designer-form/src/main/java/com/fr/design/designer/creator/XCreator.java
  3. 2
      designer-form/src/main/java/com/fr/design/designer/creator/XElementCase.java
  4. 2
      designer-form/src/main/java/com/fr/design/designer/creator/XWAbsoluteLayout.java
  5. 2
      designer-form/src/main/java/com/fr/design/designer/creator/cardlayout/XWCardMainBorderLayout.java
  6. 4
      designer-form/src/main/java/com/fr/design/mainframe/EditingMouseListener.java

2
designer-form/src/main/java/com/fr/design/designer/creator/XChartEditor.java

@ -255,7 +255,7 @@ public class XChartEditor extends XBorderStyleWidgetCreator {
* @param e 鼠标点击事件
*/
public void respondClick(EditingMouseListener editingMouseListener, MouseEvent e) {
if (this.isShareConfigButtonFocus()) {
if (this.isHelpBtnOnFocus()) {
CoverReportPane.showShareConfig(((XCreator) this.getParent()).toData());
return;
}

10
designer-form/src/main/java/com/fr/design/designer/creator/XCreator.java

@ -67,7 +67,7 @@ public abstract class XCreator extends JPanel implements XComponent, XCreatorToo
private int[] directions;
private Rectangle backupBound;
private String shareId = StringUtils.EMPTY;//如果组件是共享的会有这个属性
private boolean isShareConfigButtonFocus = false;//焦点是否在帮助按钮上
private boolean isHelpBtnOnFocus = false;//焦点是否在帮助按钮上
private static final int SHORTS_SEPARATOR_POS = 4; // 弹出菜单分割的位置
public XCreator(Widget ob, Dimension initSize) {
@ -671,12 +671,12 @@ public abstract class XCreator extends JPanel implements XComponent, XCreatorToo
* 焦点是否在帮助按钮上
* @return 焦点是否在帮助按钮上
*/
public boolean isShareConfigButtonFocus() {
return isShareConfigButtonFocus;
public boolean isHelpBtnOnFocus() {
return isHelpBtnOnFocus;
}
public void setShareConfigButtonFocus(boolean shareConfigButtonFocus) {
isShareConfigButtonFocus = shareConfigButtonFocus;
public void setHelpBtnOnFocus(boolean isHelpBtnOnFocus) {
this.isHelpBtnOnFocus = isHelpBtnOnFocus;
}

2
designer-form/src/main/java/com/fr/design/designer/creator/XElementCase.java

@ -306,7 +306,7 @@ public class XElementCase extends XBorderStyleWidgetCreator implements FormEleme
public void respondClick(EditingMouseListener editingMouseListener, MouseEvent e) {
super.respondClick(editingMouseListener, e);
editingMouseListener.refreshTopXCreator();
if (this.isShareConfigButtonFocus()) {
if (this.isHelpBtnOnFocus()) {
CoverReportPane.showShareConfig(((XCreator) this.getParent()).toData());
} else {
switchTab(e, editingMouseListener);

2
designer-form/src/main/java/com/fr/design/designer/creator/XWAbsoluteLayout.java

@ -467,7 +467,7 @@ public class XWAbsoluteLayout extends XLayoutContainer {
* @param e 鼠标点击事件
*/
public void respondClick(EditingMouseListener editingMouseListener, MouseEvent e) {
if (this.isShareConfigButtonFocus()) {
if (this.isHelpBtnOnFocus()) {
CoverReportPane.showShareConfig(this.toData());
return;
}

2
designer-form/src/main/java/com/fr/design/designer/creator/cardlayout/XWCardMainBorderLayout.java

@ -358,7 +358,7 @@ public class XWCardMainBorderLayout extends XWBorderLayout {
*/
@Override
public void respondClick(EditingMouseListener editingMouseListener, MouseEvent e){
if (this.isShareConfigButtonFocus()) {
if (this.isHelpBtnOnFocus()) {
CoverReportPane.showShareConfig(this.toData());
return;
}

4
designer-form/src/main/java/com/fr/design/mainframe/EditingMouseListener.java

@ -435,7 +435,7 @@ public class EditingMouseListener extends MouseInputAdapter {
}
private void processCoverMouseMove(XCreator component, MouseEvent e) {
component.setShareConfigButtonFocus(false);
component.setHelpBtnOnFocus(false);
Insets insets;
if (component instanceof XBorderStyleWidgetCreator) {
insets = ((XBorderStyleWidgetCreator) component).getInsets();
@ -447,7 +447,7 @@ public class EditingMouseListener extends MouseInputAdapter {
}
if (isShareConfigButton(e, component, insets)) {
designer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
component.setShareConfigButtonFocus(true);
component.setHelpBtnOnFocus(true);
} else if (isEditButton(e, component, insets)) {
designer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
}

Loading…
Cancel
Save