Browse Source

REPORT-842 报表块组件支持圆角边框

master
kerry 8 years ago
parent
commit
bb622b1fd7
  1. 2
      designer_form/src/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java
  2. 4
      designer_form/src/com/fr/design/gui/xpane/LayoutBorderPane.java

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

@ -58,7 +58,7 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{
protected void initBorderStyle() {
LayoutBorderStyle style = toData().getBorderStyle();
if (style != null && style.getBorder() != Constants.LINE_NONE) {
this.setBorder(new UIRoundedBorder(style.getBorder(), style.getColor(), style.isCorner() ? style.getRoundRadius() : noneSize));
this.setBorder(new UIRoundedBorder(style.getBorder(), style.getColor(), style.isCorner() ? style.getBorderRadius() : noneSize));
} else {
this.setBorder(DEFALUTBORDER);
}

4
designer_form/src/com/fr/design/gui/xpane/LayoutBorderPane.java

@ -505,7 +505,7 @@ public class LayoutBorderPane extends BasicPane {
LayoutBorderStyle style = new LayoutBorderStyle();
style.setType(borderTypeCombo.getSelectedIndex());
style.setBorderStyle(borderStyleCombo.getSelectedIndex());
style.setRoundRadius((int)borderCornerSpinner.getValue());
style.setBorderRadius((int)borderCornerSpinner.getValue());
style.setBorder(currentLineCombo.getSelectedLineStyle());
style.setColor(currentLineColorPane.getColor());
style.setBackground(backgroundPane.update());
@ -573,7 +573,7 @@ public class LayoutBorderPane extends BasicPane {
paintPreviewPane();
}
});
this.borderCornerSpinner.setValue(borderStyle.getRoundRadius());
this.borderCornerSpinner.setValue(borderStyle.getBorderRadius());
this.borderCornerSpinner.addChangeListener(new ChangeListener() {
@Override
public void stateChanged(ChangeEvent e) {

Loading…
Cancel
Save