|
|
@ -6,10 +6,12 @@ import com.fr.design.designer.beans.location.Direction; |
|
|
|
import com.fr.design.designer.creator.XComponent; |
|
|
|
import com.fr.design.designer.creator.XComponent; |
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
import com.fr.design.designer.creator.XCreatorUtils; |
|
|
|
import com.fr.design.designer.creator.XCreatorUtils; |
|
|
|
|
|
|
|
import com.fr.design.designer.creator.XElementCase; |
|
|
|
import com.fr.design.designer.creator.XLayoutContainer; |
|
|
|
import com.fr.design.designer.creator.XLayoutContainer; |
|
|
|
import com.fr.design.designer.creator.XWAbsoluteLayout; |
|
|
|
import com.fr.design.designer.creator.XWAbsoluteLayout; |
|
|
|
import com.fr.design.designer.creator.XWFitLayout; |
|
|
|
import com.fr.design.designer.creator.XWFitLayout; |
|
|
|
import com.fr.design.designer.creator.XWParameterLayout; |
|
|
|
import com.fr.design.designer.creator.XWParameterLayout; |
|
|
|
|
|
|
|
import com.fr.design.designer.creator.XWTitleLayout; |
|
|
|
import com.fr.design.designer.creator.cardlayout.XWCardTagLayout; |
|
|
|
import com.fr.design.designer.creator.cardlayout.XWCardTagLayout; |
|
|
|
import com.fr.design.designer.creator.cardlayout.XWTabFitLayout; |
|
|
|
import com.fr.design.designer.creator.cardlayout.XWTabFitLayout; |
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
@ -18,6 +20,7 @@ import com.fr.design.utils.gui.LayoutUtils; |
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.LayoutManager; |
|
|
|
import java.awt.LayoutManager; |
|
|
|
import java.awt.Rectangle; |
|
|
|
import java.awt.Rectangle; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
@ -278,11 +281,32 @@ public class FormSelection { |
|
|
|
creator.setBackupBound(backupBounds); |
|
|
|
creator.setBackupBound(backupBounds); |
|
|
|
} |
|
|
|
} |
|
|
|
layoutAdapter.fix(creator); |
|
|
|
layoutAdapter.fix(creator); |
|
|
|
|
|
|
|
resetElementCaseImage(creator); |
|
|
|
} |
|
|
|
} |
|
|
|
i++; |
|
|
|
i++; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @Description 重置报表块缩略图 |
|
|
|
|
|
|
|
* @param: creator |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
* @Author Henry.Wang |
|
|
|
|
|
|
|
* @Date 2021/5/21 14:59 |
|
|
|
|
|
|
|
**/ |
|
|
|
|
|
|
|
public void resetElementCaseImage(XCreator creator) { |
|
|
|
|
|
|
|
if (creator instanceof XWTitleLayout) { |
|
|
|
|
|
|
|
XWTitleLayout xwTitleLayout = (XWTitleLayout) creator; |
|
|
|
|
|
|
|
for (int i = 0; i < xwTitleLayout.getComponentCount(); i++) { |
|
|
|
|
|
|
|
Component component = xwTitleLayout.getComponent(i); |
|
|
|
|
|
|
|
if (component instanceof XElementCase) { |
|
|
|
|
|
|
|
XElementCase xElementCase = (XElementCase) component; |
|
|
|
|
|
|
|
xElementCase.updateECImage(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 检查下有没有参数面板,如果存在,处理下参数面板造成的偏移量 |
|
|
|
* 检查下有没有参数面板,如果存在,处理下参数面板造成的偏移量 |
|
|
|
* @param rectangle |
|
|
|
* @param rectangle |
|
|
|