|
|
@ -1,7 +1,7 @@ |
|
|
|
package com.fr.design.widget.ui.designer.layout; |
|
|
|
package com.fr.design.widget.ui.designer.layout; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.io.IOFile; |
|
|
|
import com.fr.base.io.IOFile; |
|
|
|
import com.fr.base.iofileattr.WatermarkAttrMark; |
|
|
|
import com.fr.base.iofileattr.WatermarkAttr; |
|
|
|
import com.fr.design.data.DataCreatorUI; |
|
|
|
import com.fr.design.data.DataCreatorUI; |
|
|
|
import com.fr.design.designer.IntervalConstants; |
|
|
|
import com.fr.design.designer.IntervalConstants; |
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
@ -19,11 +19,8 @@ import com.fr.design.gui.ispinner.UISpinner; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
import com.fr.design.mainframe.FormSelectionUtils; |
|
|
|
import com.fr.design.mainframe.FormSelectionUtils; |
|
|
|
import com.fr.design.mainframe.JForm; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.WidgetPropertyPane; |
|
|
|
import com.fr.design.mainframe.WidgetPropertyPane; |
|
|
|
import com.fr.design.mainframe.widget.accessibles.AccessibleBodyWatermarkEditor; |
|
|
|
import com.fr.design.mainframe.widget.accessibles.AccessibleBodyWatermarkEditor; |
|
|
|
import com.fr.design.mainframe.widget.accessibles.AccessibleWLayoutBorderStyleEditor; |
|
|
|
import com.fr.design.mainframe.widget.accessibles.AccessibleWLayoutBorderStyleEditor; |
|
|
@ -37,7 +34,6 @@ import com.fr.form.ui.container.WBodyLayoutType; |
|
|
|
import com.fr.form.ui.container.WFitLayout; |
|
|
|
import com.fr.form.ui.container.WFitLayout; |
|
|
|
import com.fr.general.FRLogger; |
|
|
|
import com.fr.general.FRLogger; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.main.FineBook; |
|
|
|
|
|
|
|
import com.fr.report.core.ReportUtils; |
|
|
|
import com.fr.report.core.ReportUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
@ -147,7 +143,7 @@ public class FRFitLayoutDefinePane extends AbstractDataModify<WFitLayout> { |
|
|
|
adaptComboBox.setSelectedIndex(ob.getCompState()); |
|
|
|
adaptComboBox.setSelectedIndex(ob.getCompState()); |
|
|
|
componentIntervel.setValue(ob.getCompInterval()); |
|
|
|
componentIntervel.setValue(ob.getCompInterval()); |
|
|
|
stylePane.setValue(ob.getBorderStyle()); |
|
|
|
stylePane.setValue(ob.getBorderStyle()); |
|
|
|
watermarkEditor.setValue(ReportUtils.getWatermarkFromIOFile(getCurrentIOFile())); |
|
|
|
watermarkEditor.setValue(ReportUtils.getWatermarkFromAttrMarkFile(getCurrentIOFile())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private XLayoutContainer selectedBodyLayout(FormDesigner formDesigner) { |
|
|
|
private XLayoutContainer selectedBodyLayout(FormDesigner formDesigner) { |
|
|
@ -215,7 +211,7 @@ public class FRFitLayoutDefinePane extends AbstractDataModify<WFitLayout> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void updateWatermark() { |
|
|
|
private void updateWatermark() { |
|
|
|
WatermarkAttrMark watermark = (WatermarkAttrMark) watermarkEditor.getValue(); |
|
|
|
WatermarkAttr watermark = (WatermarkAttr) watermarkEditor.getValue(); |
|
|
|
if (watermark != null) { |
|
|
|
if (watermark != null) { |
|
|
|
IOFile ioFile = getCurrentIOFile(); |
|
|
|
IOFile ioFile = getCurrentIOFile(); |
|
|
|
ioFile.addAttrMark(watermark); |
|
|
|
ioFile.addAttrMark(watermark); |
|
|
|