Browse Source

Merge remote-tracking branch 'origin/release/11.0' into release/11.0

release/11.0
Leo.Qin 2 years ago
parent
commit
ab1c4862f7
  1. 2
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java
  2. 3
      designer-base/src/main/java/com/fr/design/record/analyzer/advice/MonitorAdvice.java
  3. 5
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/style/series/UIColorPickerPane.java
  4. 16
      designer-chart/src/main/java/com/fr/van/chart/range/component/GradualIntervalConfigPane.java
  5. 4
      designer-chart/src/main/java/com/fr/van/chart/range/component/LegendGradientBar.java
  6. 4
      designer-form/src/main/java/com/fr/design/parameter/RootDesignDefinePane.java
  7. 2
      designer-form/src/main/java/com/fr/design/widget/ui/designer/LabelDefinePane.java
  8. 2
      designer-form/src/main/java/com/fr/design/widget/ui/designer/btn/ButtonGroupDefinePane.java

2
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -329,7 +329,7 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
/**
* 为另存的模板创建新的模板id
*/
private void generateNewTemplateIdForSaveAs() {
protected void generateNewTemplateIdForSaveAs() {
generateTemplateId();
}

3
designer-base/src/main/java/com/fr/design/record/analyzer/advice/MonitorAdvice.java

@ -11,6 +11,7 @@ import com.fr.intelli.record.Measurable;
import com.fr.intelli.record.MeasureObject;
import com.fr.intelli.record.MeasureUnit;
import com.fr.log.FineLoggerFactory;
import com.fr.log.message.AbstractMessage;
import com.fr.measure.DBMeterFactory;
import com.fr.stable.StringUtils;
import com.fr.third.net.bytebuddy.asm.Advice;
@ -75,7 +76,7 @@ public class MonitorAdvice implements DesignerAnalyzerAdvice {
List<Object> newArgs = new ArrayList<>(Arrays.asList(args));
newArgs.add(id);
recordSQLDetail(id);
Object message = null;
AbstractMessage message = null;
try {
message = measurable.durableEntity(measureObject, newArgs.toArray());
} catch (Throwable throwable) {

5
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/style/series/UIColorPickerPane.java

@ -21,6 +21,7 @@ import com.fr.design.style.color.ColorSelectBox;
import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.stable.StringUtils;
import com.fr.van.chart.designer.TableLayout4VanChartHelper;
import com.fr.van.chart.range.component.LegendGradientBar;
import javax.swing.JComponent;
import javax.swing.JFrame;
@ -102,7 +103,7 @@ public class UIColorPickerPane extends BasicPane implements UIObserver {
}
});
regionNumPane = new UINumberDragPane(1, 6) {
regionNumPane = new UINumberDragPane(1, LegendGradientBar.COLOR_GRADUAL_NUM_MAX) {
@Override
public void userEvent(double value) {
if(!UIColorPickerPane.this.moveOnColorOrTextPane){
@ -191,7 +192,7 @@ public class UIColorPickerPane extends BasicPane implements UIObserver {
}
});
regionNumPane = new UINumberDragPane(1, 6) {
regionNumPane = new UINumberDragPane(1, LegendGradientBar.COLOR_GRADUAL_NUM_MAX) {
@Override
public void userEvent(double value) {
if(!UIColorPickerPane.this.moveOnColorOrTextPane){

16
designer-chart/src/main/java/com/fr/van/chart/range/component/GradualIntervalConfigPane.java

@ -14,7 +14,7 @@ import javax.swing.event.ChangeListener;
import java.awt.BorderLayout;
import java.awt.Component;
public class GradualIntervalConfigPane extends JPanel{
public class GradualIntervalConfigPane extends JPanel {
private static final long serialVersionUID = 1614283200308877353L;
//最大最小值面板
@ -26,7 +26,7 @@ public class GradualIntervalConfigPane extends JPanel{
//渐变色编辑器
private LegendGradientBar legendGradientBar;
public GradualIntervalConfigPane(){
public GradualIntervalConfigPane() {
initComponents();
}
@ -42,10 +42,10 @@ public class GradualIntervalConfigPane extends JPanel{
}
});
numberDragPane = new UINumberDragPane(1,6) {
numberDragPane = new UINumberDragPane(1, LegendGradientBar.COLOR_GRADUAL_NUM_MAX) {
@Override
public void userEvent(double value) {
legendGradientBar.refreshColorSelectionBtnNum((int)value);
legendGradientBar.refreshColorSelectionBtnNum((int) value);
}
};
@ -60,9 +60,9 @@ public class GradualIntervalConfigPane extends JPanel{
Component[][] components = getPaneComponents(minMaxValuePane, colorSelectBox, numberDragPane, legendGradientBar);
//控件承载面板
JPanel contentPane = TableLayout4VanChartHelper.createGapTableLayoutPane(components,row,col);
JPanel contentPane = TableLayout4VanChartHelper.createGapTableLayoutPane(components, row, col);
this.setLayout(new BorderLayout());
this.add(contentPane,BorderLayout.CENTER);
this.add(contentPane, BorderLayout.CENTER);
}
protected LegendGradientBar createLegendGradientBar() {
@ -81,7 +81,7 @@ public class GradualIntervalConfigPane extends JPanel{
};
}
public void populate(GradualIntervalConfig intervalConfig){
public void populate(GradualIntervalConfig intervalConfig) {
minMaxValuePane.populate(intervalConfig.getMinAndMaxValue());
colorSelectBox.setSelectObject(intervalConfig.getSubColor());
@ -92,7 +92,7 @@ public class GradualIntervalConfigPane extends JPanel{
legendGradientBar.populate(intervalConfig);
}
public void update(GradualIntervalConfig intervalConfig){
public void update(GradualIntervalConfig intervalConfig) {
minMaxValuePane.update(intervalConfig.getMinAndMaxValue());
intervalConfig.setSubColor(colorSelectBox.getSelectObject());

4
designer-chart/src/main/java/com/fr/van/chart/range/component/LegendGradientBar.java

@ -44,14 +44,16 @@ public class LegendGradientBar extends JComponent implements ColorSelectable, UI
private static final int REC_HEIGHT = 30;
private static final int MAX_VERTICAL = 45;
//颜色选择器个数
private int colorSelectionBtnNum;
//主题色
private Color subColor;
private int max = 150;
private static int max = 150;
private int min = 4;
public static final int COLOR_GRADUAL_NUM_MAX = max / 5;
//选中的颜色
private Color color;

4
designer-form/src/main/java/com/fr/design/parameter/RootDesignDefinePane.java

@ -134,7 +134,7 @@ public class RootDesignDefinePane extends AbstractDataModify<WParameterLayout> {
displayReport = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Display_Nothing_Before_Query"));
UIComponentUtils.setLineWrap(displayReport);
useParamsTemplate = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Use_Params_Template"));
fireAfterEditor = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("触发编辑结束事件"));
fireAfterEditor = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Trigger_Editing_End_Event"));
fireAfterEditor.setEnabled(false);
fireAfterEditor.setBorder(BorderFactory.createEmptyBorder(0, 30, 0, 0));
useParamsTemplate.addChangeListener(e -> {
@ -189,7 +189,7 @@ public class RootDesignDefinePane extends AbstractDataModify<WParameterLayout> {
displayReport = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Display_Nothing_Before_Query"));
UIComponentUtils.setLineWrap(displayReport);
useParamsTemplate = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Use_Params_Template"));
fireAfterEditor = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("触发编辑结束事件"));
fireAfterEditor = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Trigger_Editing_End_Event"));
fireAfterEditor.setEnabled(false);
fireAfterEditor.setBorder(BorderFactory.createEmptyBorder(0, 30, 0, 0));
useParamsTemplate.addChangeListener(e -> {

2
designer-form/src/main/java/com/fr/design/widget/ui/designer/LabelDefinePane.java

@ -68,7 +68,7 @@ public class LabelDefinePane extends AbstractDataModify<Label> {
int[][] rowCount = {{1, 3}, {1, 1}, {1, 1}, {1, 1}, {1, 1}};
UILabel widgetValueLabel = FRWidgetFactory.createLineWrapLabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Estate_Widget_Value"));
widgetValueLabel.setVerticalAlignment(SwingConstants.TOP);
UILabel fontLabel = FRWidgetFactory.createLineWrapLabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Font_Size"));
UILabel fontLabel = FRWidgetFactory.createLineWrapLabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Font"));
fontLabel.setVerticalAlignment(SwingConstants.TOP);
Component[][] components = new Component[][]{
new Component[]{widgetValueLabel, formWidgetValuePane},

2
designer-form/src/main/java/com/fr/design/widget/ui/designer/btn/ButtonGroupDefinePane.java

@ -44,7 +44,7 @@ public abstract class ButtonGroupDefinePane<T extends ButtonGroup> extends Field
new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Label_Name")), labelNameTextField},
new Component[]{widgetValueLabel, formWidgetValuePane},
new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_DS_Dictionary")), dictionaryEditor},
new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FR_Font")), fontSizePane},
new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Font_Size")), fontSizePane},
new Component[]{buttonGroupDictPane, null}
};
double[] rowSize = {p, p, p, p, p, p, p};

Loading…
Cancel
Save