@ -13,6 +13,7 @@ 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.XWTitleLayout ;
import com.fr.design.designer.creator.cardlayout.XWCardMainBorderLayout ;
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 ;
@ -25,12 +26,15 @@ 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 ;
import java.util.LinkedList ;
public class FormSelection {
public class FormSelection {
private ArrayList < XCreator > selection ;
private ArrayList < XCreator > selection ;
private Rectangle backupBounds ;
private Rectangle backupBounds ;
private ArrayList < Rectangle > recs = new ArrayList < Rectangle > ( ) ;
private ArrayList < Rectangle > recs = new ArrayList < Rectangle > ( ) ;
// 选中的组件外层嵌套的tab块 head->tail 由内向外
private LinkedList < XCreator > tabList = new LinkedList < > ( ) ;
public FormSelection ( ) {
public FormSelection ( ) {
selection = new ArrayList < XCreator > ( ) ;
selection = new ArrayList < XCreator > ( ) ;
@ -43,6 +47,9 @@ public class FormSelection {
for ( XCreator xCreator : selection ) {
for ( XCreator xCreator : selection ) {
xCreator . setSelected ( false ) ;
xCreator . setSelected ( false ) ;
}
}
for ( XCreator xCreator : tabList ) {
( ( XWCardMainBorderLayout ) xCreator ) . setShowOuterShadowBorder ( false ) ;
}
selection . clear ( ) ;
selection . clear ( ) ;
}
}
@ -404,4 +411,8 @@ public class FormSelection {
}
}
}
}
}
}
public LinkedList < XCreator > getTabList ( ) {
return tabList ;
}
}
}