|
|
@ -4,8 +4,9 @@ import com.fr.base.BaseUtils; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
import com.fr.design.designer.properties.mobile.ElementCasePropertyUI; |
|
|
|
import com.fr.design.designer.properties.mobile.ElementCasePropertyUI; |
|
|
|
import com.fr.design.form.util.XCreatorConstants; |
|
|
|
import com.fr.design.form.util.XCreatorConstants; |
|
|
|
import com.fr.design.fun.FormElementCaseEditorProcessor; |
|
|
|
import com.fr.design.fun.FormElementCaseEditorProvider; |
|
|
|
import com.fr.design.fun.WidgetPropertyUIProvider; |
|
|
|
import com.fr.design.fun.WidgetPropertyUIProvider; |
|
|
|
|
|
|
|
import com.fr.design.fun.impl.AbstractFormElementCaseEditorProvider; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.mainframe.CoverReportPane; |
|
|
|
import com.fr.design.mainframe.CoverReportPane; |
|
|
|
import com.fr.design.mainframe.EditingMouseListener; |
|
|
|
import com.fr.design.mainframe.EditingMouseListener; |
|
|
@ -23,8 +24,7 @@ import com.fr.general.Inter; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.CoreGraphHelper; |
|
|
|
import com.fr.stable.CoreGraphHelper; |
|
|
|
import com.fr.stable.core.PropertyChangeAdapter; |
|
|
|
import com.fr.stable.core.PropertyChangeAdapter; |
|
|
|
import com.fr.stable.fun.FitProvider; |
|
|
|
import com.fr.form.main.Form; |
|
|
|
import com.fr.stable.fun.ReportFitAttrProvider; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.*; |
|
|
@ -32,6 +32,7 @@ import java.awt.event.MouseEvent; |
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
import java.beans.IntrospectionException; |
|
|
|
import java.beans.IntrospectionException; |
|
|
|
import java.beans.PropertyDescriptor; |
|
|
|
import java.beans.PropertyDescriptor; |
|
|
|
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
|
|
public class XElementCase extends XBorderStyleWidgetCreator implements FormElementCaseContainerProvider{ |
|
|
|
public class XElementCase extends XBorderStyleWidgetCreator implements FormElementCaseContainerProvider{ |
|
|
|
private UILabel imageLable; |
|
|
|
private UILabel imageLable; |
|
|
@ -100,25 +101,18 @@ public class XElementCase extends XBorderStyleWidgetCreator implements FormEleme |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
FormElementCaseEditorProcessor processor = ExtraDesignClassManager.getInstance().getSingle(FormElementCaseEditorProcessor.MARK_STRING); |
|
|
|
Set<FormElementCaseEditorProvider> set = ExtraDesignClassManager.getInstance().getArray(AbstractFormElementCaseEditorProvider.MARK_STRING); |
|
|
|
|
|
|
|
for (FormElementCaseEditorProvider processor : set) { |
|
|
|
if (processor == null) { |
|
|
|
if (processor == null) { |
|
|
|
return propertyTableEditor; |
|
|
|
return propertyTableEditor; |
|
|
|
} |
|
|
|
} |
|
|
|
this.designer = WidgetPropertyPane.getInstance().getEditingFormDesigner(); |
|
|
|
this.designer = WidgetPropertyPane.getInstance().getEditingFormDesigner(); |
|
|
|
FitProvider wbTpl = (FitProvider) designer.getTarget(); |
|
|
|
Form attr = designer.getTarget(); |
|
|
|
ReportFitAttrProvider fitAttr = wbTpl.getFitAttr(); |
|
|
|
|
|
|
|
ElementCaseEditor editor = this.toData(); |
|
|
|
|
|
|
|
//兼容之前报表块(之前三个选项为:默认 横向 双向 现在是:横向 双向 不自适应)
|
|
|
|
|
|
|
|
if (editor.getFitStateInPC() == 0) { |
|
|
|
|
|
|
|
editor.setReportFitAttr(null); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ReportFitAttrProvider reportFitAttr = editor.getReportFitAttr() == null ? fitAttr : editor.getReportFitAttr(); |
|
|
|
|
|
|
|
PropertyDescriptor[] extraEditor = processor.createPropertyDescriptor(this.data.getClass(), reportFitAttr); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (editor.getReportFitAttr() == null) { |
|
|
|
PropertyDescriptor[] extraEditor = processor.createPropertyDescriptor(this.data.getClass(), attr, this.toData()); |
|
|
|
editor.setReportFitInPc(processor.getFitStateInPC(fitAttr)); |
|
|
|
propertyTableEditor = (CRPropertyDescriptor[]) ArrayUtils.addAll(propertyTableEditor, extraEditor); |
|
|
|
} |
|
|
|
} |
|
|
|
return (CRPropertyDescriptor[]) ArrayUtils.addAll(propertyTableEditor, extraEditor); |
|
|
|
return propertyTableEditor; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|