Browse Source

REPORT-9958 参考附件截图,点填报属性的时候,添加内置sql右边是空白的

research/10.0
kerry 6 years ago
parent
commit
ff271147c1
  1. 17
      designer-base/src/main/java/com/fr/design/gui/frpane/LoadingBasicPane.java
  2. 12
      designer-realize/src/main/java/com/fr/design/webattr/ReportWriteAttrPane.java

17
designer-base/src/main/java/com/fr/design/gui/frpane/LoadingBasicPane.java

@ -7,10 +7,14 @@ import com.fr.design.dialog.BasicPane;
import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilable.UILabel;
import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.utils.gui.LayoutUtils; import com.fr.design.utils.gui.LayoutUtils;
import com.fr.general.Inter; import com.fr.locale.InterProviderFactory;
import javax.swing.*; import javax.swing.JPanel;
import java.awt.*; import javax.swing.JProgressBar;
import javax.swing.SwingConstants;
import javax.swing.SwingWorker;
import java.awt.BorderLayout;
import java.awt.CardLayout;
/** /**
* @author richer * @author richer
@ -23,6 +27,10 @@ public abstract class LoadingBasicPane extends BasicPane {
private JProgressBar progressBar; private JProgressBar progressBar;
public LoadingBasicPane() { public LoadingBasicPane() {
initCards(); initCards();
initPane();
}
protected void initPane(){
new SwingWorker<Integer, Void>() { new SwingWorker<Integer, Void>() {
@Override @Override
@ -42,13 +50,14 @@ public abstract class LoadingBasicPane extends BasicPane {
} }
private void initCards() { private void initCards() {
card = new CardLayout(); card = new CardLayout();
setLayout(card); setLayout(card);
JPanel loadingDisPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); JPanel loadingDisPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
String[] message = {"Loading","Please-Wait"}; String[] message = {"Loading","Please-Wait"};
String[] operator = {",","..."}; String[] operator = {",","..."};
UILabel loadingPane = new UILabel(Inter.getLocText(message,operator) , SwingConstants.CENTER); UILabel loadingPane = new UILabel(InterProviderFactory.getProvider().getLocText(message,operator) , SwingConstants.CENTER);
loadingDisPane.add(loadingPane, BorderLayout.CENTER); loadingDisPane.add(loadingPane, BorderLayout.CENTER);
progressBar = new JProgressBar(); progressBar = new JProgressBar();
progressBar.setIndeterminate(true); progressBar.setIndeterminate(true);

12
designer-realize/src/main/java/com/fr/design/webattr/ReportWriteAttrPane.java

@ -11,8 +11,11 @@ import com.fr.general.Inter;
import com.fr.report.worksheet.WorkSheet; import com.fr.report.worksheet.WorkSheet;
import com.fr.report.write.ReportWriteAttr; import com.fr.report.write.ReportWriteAttr;
import javax.swing.*; import javax.swing.JPanel;
import java.awt.*; import javax.swing.JTabbedPane;
import javax.swing.SwingConstants;
import java.awt.BorderLayout;
public class ReportWriteAttrPane extends LoadingBasicPane { public class ReportWriteAttrPane extends LoadingBasicPane {
private SubmitVisitorListPane submiterListPane; private SubmitVisitorListPane submiterListPane;
@ -25,6 +28,11 @@ public class ReportWriteAttrPane extends LoadingBasicPane {
} }
public ReportWriteAttrPane(ElementCasePane ePane){ public ReportWriteAttrPane(ElementCasePane ePane){
this.ePane = ePane; this.ePane = ePane;
super.initPane();
}
protected void initPane(){
} }
@Override @Override

Loading…
Cancel
Save