Browse Source

REPORT-9582 【阻塞】【10.0二轮回归】设计器菜单栏-服务器-控件管理添加预定义控件异常

master
kerry 6 years ago
parent
commit
79ea6e0004
  1. 5
      designer-realize/src/main/java/com/fr/design/widget/WidgetEventPane.java

5
designer-realize/src/main/java/com/fr/design/widget/WidgetEventPane.java

@ -34,13 +34,16 @@ import com.fr.stable.Nameable;
import javax.swing.*; import javax.swing.*;
public class WidgetEventPane extends ObjectUIControlPane { public class WidgetEventPane extends ObjectUIControlPane {
private static final Selection NO_SELECTION = new CellSelection(-1, -1, -1, -1);
private Selection selection; private Selection selection = NO_SELECTION;
public WidgetEventPane(ElementCasePane pane) { public WidgetEventPane(ElementCasePane pane) {
super(pane); super(pane);
this.setNameListEditable(false); this.setNameListEditable(false);
if(pane != null){
selection = pane.getSelection(); selection = pane.getSelection();
}
setBorder(BorderFactory.createEmptyBorder(10, 0, 15, 0)); setBorder(BorderFactory.createEmptyBorder(10, 0, 15, 0));
} }

Loading…
Cancel
Save