Browse Source

Merge branch 'release/11.0' of ssh://code.fineres.com:7999/~zheng/C-design into release/11.0

bugfix/11.0
shine 3 years ago
parent
commit
6ef8e5c774
  1. 4
      designer-base/src/main/java/com/fr/design/ui/ModernUIPane.java
  2. 6
      designer-base/src/main/java/com/fr/design/ui/compatible/NewModernUIPane.java
  3. 2
      designer-chart/src/main/java/com/fr/van/chart/designer/component/background/VanChartBackgroundPaneWithThemeStyle.java
  4. 6
      designer-form/src/main/java/com/fr/design/designer/beans/adapters/layout/FRAbsoluteLayoutAdapter.java
  5. 3
      designer-form/src/main/java/com/fr/design/mainframe/FormDesignerUI.java
  6. 1
      designer-realize/src/main/java/com/fr/design/webattr/WriteToolBarPane.java
  7. 2
      designer-realize/src/main/java/com/fr/design/webattr/WriteWebSettingPane.java

4
designer-base/src/main/java/com/fr/design/ui/ModernUIPane.java

@ -203,6 +203,10 @@ public class ModernUIPane<T> extends BasicPane {
this.pane = new ModernUIPane<>(browserType); this.pane = new ModernUIPane<>(browserType);
} }
public Builder(ModernUIPane<T> pane) {
this.pane = pane;
}
public Builder<T> prepare(ScriptContextListener contextListener) { public Builder<T> prepare(ScriptContextListener contextListener) {
pane.browser.addScriptContextListener(contextListener); pane.browser.addScriptContextListener(contextListener);
return this; return this;

6
designer-base/src/main/java/com/fr/design/ui/compatible/NewModernUIPane.java

@ -182,7 +182,7 @@ public class NewModernUIPane<T> extends ModernUIPane<T> {
public void disposeBrowser() { public void disposeBrowser() {
if (browser != null) { if (browser != null) {
browser.close(); browser.engine().close();
browser = null; browser = null;
} }
@ -206,6 +206,10 @@ public class NewModernUIPane<T> extends ModernUIPane<T> {
private NewModernUIPane<T> pane = new NewModernUIPane<>(); private NewModernUIPane<T> pane = new NewModernUIPane<>();
public Builder() {
super((ModernUIPane<T>)null);
}
public NewModernUIPane.Builder<T> prepare(InjectJsCallback callback) { public NewModernUIPane.Builder<T> prepare(InjectJsCallback callback) {
pane.browser.set(InjectJsCallback.class, callback); pane.browser.set(InjectJsCallback.class, callback);
return this; return this;

2
designer-chart/src/main/java/com/fr/van/chart/designer/component/background/VanChartBackgroundPaneWithThemeStyle.java

@ -25,7 +25,7 @@ public class VanChartBackgroundPaneWithThemeStyle extends VanChartBackgroundPane
} }
}); });
paneList.add(new NullBackgroundQuickPane()); paneList.add(new NullBackgroundQuickPane());
paneList.add(new ColorBackgroundQuickPane()); paneList.add(new ColorBackgroundQuickPane(true));
paneList.add(new ImageBackgroundQuickPane(false)); paneList.add(new ImageBackgroundQuickPane(false));
paneList.add(new VanChartGradientPane()); paneList.add(new VanChartGradientPane());
} }

6
designer-form/src/main/java/com/fr/design/designer/beans/adapters/layout/FRAbsoluteLayoutAdapter.java

@ -4,6 +4,7 @@ import com.fr.design.beans.GroupModel;
import com.fr.design.designer.beans.ConstraintsGroupModel; import com.fr.design.designer.beans.ConstraintsGroupModel;
import com.fr.design.designer.beans.HoverPainter; import com.fr.design.designer.beans.HoverPainter;
import com.fr.design.designer.beans.models.DraggingModel; import com.fr.design.designer.beans.models.DraggingModel;
import com.fr.design.designer.beans.models.StateModel;
import com.fr.design.designer.beans.painters.FRAbsoluteLayoutPainter; import com.fr.design.designer.beans.painters.FRAbsoluteLayoutPainter;
import com.fr.design.designer.creator.*; import com.fr.design.designer.creator.*;
import com.fr.design.designer.properties.BoundsGroupModel; import com.fr.design.designer.properties.BoundsGroupModel;
@ -353,7 +354,10 @@ public class FRAbsoluteLayoutAdapter extends FRBodyLayoutAdapter {
public void dragging(DraggingModel model) { public void dragging(DraggingModel model) {
FormDesigner designer = model.getDesigner(); FormDesigner designer = model.getDesigner();
MouseEvent dragEvent = model.getCurrentDragEvent(); MouseEvent dragEvent = model.getCurrentDragEvent();
designer.getStateModel().dragging(dragEvent); StateModel stateModel = designer.getStateModel();
if (stateModel.dragable()) {
stateModel.dragging(dragEvent);
}
} }
@Override @Override

3
designer-form/src/main/java/com/fr/design/mainframe/FormDesignerUI.java

@ -224,6 +224,9 @@ public class FormDesignerUI extends ComponentUI {
} }
XCreator creator = draggingModel.getCreator(); XCreator creator = draggingModel.getCreator();
if (!creator.isSupportDrag()) {
return false;
}
int leftTopX = draggingModel.getCreatorLeftTopX(); int leftTopX = draggingModel.getCreatorLeftTopX();
int leftTopY = draggingModel.getCreatorLeftTopY(); int leftTopY = draggingModel.getCreatorLeftTopY();

1
designer-realize/src/main/java/com/fr/design/webattr/WriteToolBarPane.java

@ -161,6 +161,7 @@ public class WriteToolBarPane extends AbstractEditToolBarPane {
colorButton.setColor(webWrite.getSelectedColor()); colorButton.setColor(webWrite.getSelectedColor());
} else { } else {
colorBox.setSelected(false); colorBox.setSelected(false);
colorButton.setEnabled(false);
} }
if (webWrite.getSheetPosition() == Constants.TOP) { if (webWrite.getSheetPosition() == Constants.TOP) {

2
designer-realize/src/main/java/com/fr/design/webattr/WriteWebSettingPane.java

@ -109,6 +109,7 @@ public class WriteWebSettingPane extends WebSettingPane<WebWrite> {
protected void setDefault() { protected void setDefault() {
super.setDefault(); super.setDefault();
colorBox.setSelected(false); colorBox.setSelected(false);
colorButton.setEnabled(false);
bottomRadioButton.setSelected(true); bottomRadioButton.setSelected(true);
leftRadioButton.setSelected(true); leftRadioButton.setSelected(true);
unloadCheck.setSelected(true); unloadCheck.setSelected(true);
@ -126,6 +127,7 @@ public class WriteWebSettingPane extends WebSettingPane<WebWrite> {
colorButton.setColor(webWrite.getSelectedColor()); colorButton.setColor(webWrite.getSelectedColor());
} else { } else {
colorBox.setSelected(false); colorBox.setSelected(false);
colorButton.setEnabled(false);
} }
if (webWrite.getSheetPosition() == Constants.TOP) { if (webWrite.getSheetPosition() == Constants.TOP) {

Loading…
Cancel
Save