Browse Source

定义常量

fbp/merge
renekton 5 months ago
parent
commit
306dce7396
  1. 8
      designer-realize/src/main/java/com/fr/design/widget/WidgetEventPane.java

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

@ -31,6 +31,10 @@ import java.lang.reflect.Constructor;
public class WidgetEventPane extends UIListGroupControlPane { public class WidgetEventPane extends UIListGroupControlPane {
private static final Selection NO_SELECTION = new CellSelection(-1, -1, -1, -1); private static final Selection NO_SELECTION = new CellSelection(-1, -1, -1, -1);
private static final int WIDGET_BTN_GAP = 10;
private static final int WIDGET_PANE_BTN_GAP = 4;
private Selection selection = NO_SELECTION; private Selection selection = NO_SELECTION;
private ElementCasePane object; private ElementCasePane object;
@ -108,9 +112,9 @@ public class WidgetEventPane extends UIListGroupControlPane {
@Override @Override
public int getVerticalGap() { public int getVerticalGap() {
if (getContentDBManiPane().get(0) instanceof SmartInsertDBManipulationInWidgetEventPane) { if (getContentDBManiPane().get(0) instanceof SmartInsertDBManipulationInWidgetEventPane) {
return 10; return WIDGET_BTN_GAP;
} else { } else {
return 4; return WIDGET_PANE_BTN_GAP;
} }
} }

Loading…
Cancel
Save