Browse Source

常量

master
zhouping 8 years ago
parent
commit
6a97acb7bb
  1. 2
      designer_form/src/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java
  2. 2
      designer_form/src/com/fr/design/designer/creator/XChartEditor.java
  3. 2
      designer_form/src/com/fr/design/designer/creator/XElementCase.java

2
designer_form/src/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java

@ -30,6 +30,8 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{
private int cornerSize = 15; private int cornerSize = 15;
private int noneSize = 0; private int noneSize = 0;
protected static final Dimension BORDER_PREFERRED_SIZE = new Dimension(250, 150);
public XBorderStyleWidgetCreator(Widget widget, Dimension initSize) { public XBorderStyleWidgetCreator(Widget widget, Dimension initSize) {
super(widget, initSize); super(widget, initSize);
} }

2
designer_form/src/com/fr/design/designer/creator/XChartEditor.java

@ -187,7 +187,7 @@ public class XChartEditor extends XBorderStyleWidgetCreator {
* @return 返回大小. * @return 返回大小.
*/ */
public Dimension initEditorSize() { public Dimension initEditorSize() {
return new Dimension(250, 150); return BORDER_PREFERRED_SIZE;
} }
/** /**

2
designer_form/src/com/fr/design/designer/creator/XElementCase.java

@ -182,7 +182,7 @@ public class XElementCase extends XBorderStyleWidgetCreator implements FormEleme
* @return 尺寸 * @return 尺寸
*/ */
public Dimension initEditorSize() { public Dimension initEditorSize() {
return new Dimension(250, 150); return BORDER_PREFERRED_SIZE;
} }
/** /**

Loading…
Cancel
Save