|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
package com.fr.design.widget.ui.designer.mobile; |
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineLayoutBuilder; |
|
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
|
import com.fr.design.designer.IntervalConstants; |
|
|
|
|
import com.fr.design.designer.beans.events.DesignerEvent; |
|
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
|
import com.fr.design.designer.properties.PropertyTab; |
|
|
|
@ -10,8 +10,6 @@ import com.fr.design.fun.ParameterExpandablePaneUIProvider;
|
|
|
|
|
import com.fr.design.gui.frpane.AttributeChangeListener; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
|
import com.fr.design.mainframe.MobileWidgetListPane; |
|
|
|
|
import com.fr.design.mainframe.WidgetPropertyPane; |
|
|
|
@ -22,7 +20,6 @@ import com.fr.form.ui.container.WSortLayout;
|
|
|
|
|
import com.fr.form.ui.mobile.MobileParamStyle; |
|
|
|
|
|
|
|
|
|
import com.fr.report.mobile.EmptyMobileParamStyle; |
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Component; |
|
|
|
@ -68,25 +65,16 @@ public class ParaMobileDefinePane extends MobileWidgetDefinePane {
|
|
|
|
|
// 手机属性
|
|
|
|
|
private UIExpandablePane getMobilePropertyPane() { |
|
|
|
|
mobileParamEditor = new AccessibleMobileParamEditor(new MobileParamSettingPane()); |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double[] rowSize = {p, p}; |
|
|
|
|
double[] columnSize = {p, f}; |
|
|
|
|
int[][] rowCount = {{1, 1}, {1, 1}}; |
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Mobile_Param_Style")), mobileParamEditor}, |
|
|
|
|
}; |
|
|
|
|
JPanel panel = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, IntervalConstants.INTERVAL_W0, IntervalConstants.INTERVAL_L1); |
|
|
|
|
JPanel jPanel = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
panel.setBorder(BorderFactory.createEmptyBorder(10, 0, 10, 0)); |
|
|
|
|
jPanel.add(panel); |
|
|
|
|
return new UIExpandablePane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Properties_Mobile"), 280, 20, jPanel); |
|
|
|
|
JPanel panel = FineLayoutBuilder.compatibleTableLayout(10, components, new double[]{1.2, 3}); |
|
|
|
|
return new UIExpandablePane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Properties_Mobile"), 280, 20, panel); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 控件顺序
|
|
|
|
|
private UIExpandablePane getMobileWidgetListPane() { |
|
|
|
|
mobileWidgetListPane = new MobileWidgetListPane(designer, (WSortLayout) paraCreator.toData()); |
|
|
|
|
mobileWidgetListPane.setBorder(BorderFactory.createEmptyBorder(10, 0, 5, 0)); |
|
|
|
|
JPanel panelWrapper = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
panelWrapper.add(mobileWidgetListPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|