|
|
@ -2,15 +2,18 @@ package com.fr.design.report.mobile; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.mobile.MobileFitAttrState; |
|
|
|
import com.fr.base.mobile.MobileFitAttrState; |
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.report.mobile.ElementCaseMobileAttr; |
|
|
|
import com.fr.report.mobile.ElementCaseMobileAttr; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.*; |
|
|
|
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.column; |
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.row; |
|
|
|
|
|
|
|
import static com.fine.theme.utils.FineUIUtils.wrapComponentWithTitle; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Created by 夏翔 on 2016/5/28. |
|
|
|
* Created by 夏翔 on 2016/5/28. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -29,18 +32,17 @@ public class AppFitBrowserPane extends BasicBeanPane<ElementCaseMobileAttr> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initComponents() { |
|
|
|
private void initComponents() { |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
JPanel borderPane = FRGUIPaneFactory.createTitledBorderPane(this.title4PopupWindow()); |
|
|
|
|
|
|
|
JPanel fitOpsPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
|
|
|
horizionPane = new MobileRadioGroupPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Mobile_Horizontal")); |
|
|
|
horizionPane = new MobileRadioGroupPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Mobile_Horizontal")); |
|
|
|
verticalPane = new MobileRadioGroupPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Mobile_Vertical")); |
|
|
|
verticalPane = new MobileRadioGroupPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Mobile_Vertical")); |
|
|
|
ActionListener actionListener = getAppPreviewActionListener(); |
|
|
|
ActionListener actionListener = getAppPreviewActionListener(); |
|
|
|
horizionPane.addActionListener(actionListener); |
|
|
|
horizionPane.addActionListener(actionListener); |
|
|
|
verticalPane.addActionListener(actionListener); |
|
|
|
verticalPane.addActionListener(actionListener); |
|
|
|
fitOpsPane.add(horizionPane, BorderLayout.NORTH); |
|
|
|
this.add( |
|
|
|
fitOpsPane.add(verticalPane, BorderLayout.SOUTH); |
|
|
|
wrapComponentWithTitle((column(10, |
|
|
|
borderPane.add(fitOpsPane); |
|
|
|
row(cell(horizionPane)), |
|
|
|
this.add(borderPane); |
|
|
|
row(cell(verticalPane)) |
|
|
|
|
|
|
|
).getComponent()), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Fit"))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setAppFitPreviewPane(AppFitPreviewPane appFitPreviewPane) { |
|
|
|
public void setAppFitPreviewPane(AppFitPreviewPane appFitPreviewPane) { |
|
|
@ -59,7 +61,6 @@ public class AppFitBrowserPane extends BasicBeanPane<ElementCaseMobileAttr> { |
|
|
|
} |
|
|
|
} |
|
|
|
horizionPane.populateBean(ob.getHorziontalAttr()); |
|
|
|
horizionPane.populateBean(ob.getHorziontalAttr()); |
|
|
|
verticalPane.populateBean(ob.getVerticalAttr()); |
|
|
|
verticalPane.populateBean(ob.getVerticalAttr()); |
|
|
|
// radioCheckPane.populateBean(ob.isZoom());
|
|
|
|
|
|
|
|
appFitPreviewPane.refreshPreview(getCurrentFitOptions()); |
|
|
|
appFitPreviewPane.refreshPreview(getCurrentFitOptions()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -68,8 +69,6 @@ public class AppFitBrowserPane extends BasicBeanPane<ElementCaseMobileAttr> { |
|
|
|
public ElementCaseMobileAttr updateBean() { |
|
|
|
public ElementCaseMobileAttr updateBean() { |
|
|
|
MobileFitAttrState horizonState = horizionPane.updateBean(); |
|
|
|
MobileFitAttrState horizonState = horizionPane.updateBean(); |
|
|
|
MobileFitAttrState verticalState = verticalPane.updateBean(); |
|
|
|
MobileFitAttrState verticalState = verticalPane.updateBean(); |
|
|
|
// boolean isZoom = radioCheckPane.updateBean();
|
|
|
|
|
|
|
|
// return new ElementCaseMobileAttr(horizonState, verticalState, isZoom);
|
|
|
|
|
|
|
|
return new ElementCaseMobileAttr(horizonState, verticalState); |
|
|
|
return new ElementCaseMobileAttr(horizonState, verticalState); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|