|
|
@ -14,6 +14,7 @@ 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.dialog.AttrScrollPane; |
|
|
|
import com.fr.design.dialog.AttrScrollPane; |
|
|
|
import com.fr.design.dialog.BasicScrollPane; |
|
|
|
import com.fr.design.dialog.BasicScrollPane; |
|
|
|
|
|
|
|
import com.fr.design.file.Releasable; |
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
|
import com.fr.design.gui.frpane.AbstractAttrNoScrollPane; |
|
|
|
import com.fr.design.gui.frpane.AbstractAttrNoScrollPane; |
|
|
@ -48,7 +49,7 @@ import java.awt.BorderLayout; |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Created by ibm on 2017/7/25. |
|
|
|
* Created by ibm on 2017/7/25. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class FormWidgetCardPane extends AbstractAttrNoScrollPane { |
|
|
|
public class FormWidgetCardPane extends AbstractAttrNoScrollPane implements Releasable { |
|
|
|
private AttributeChangeListener listener; |
|
|
|
private AttributeChangeListener listener; |
|
|
|
private FormDesigner designer; |
|
|
|
private FormDesigner designer; |
|
|
|
//当前的编辑器属性定义面板
|
|
|
|
//当前的编辑器属性定义面板
|
|
|
@ -86,7 +87,7 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} else if (xLayoutContainer.acceptType(XWAbsoluteLayout.class)) { |
|
|
|
} else if (xLayoutContainer.acceptType(XWAbsoluteLayout.class)) { |
|
|
|
return new WidgetAbsoluteBoundPane(xCreator); |
|
|
|
return new WidgetAbsoluteBoundPane(xCreator); |
|
|
|
} else if(xCreator.acceptType(XWCardTagLayout.class)){ |
|
|
|
} else if (xCreator.acceptType(XWCardTagLayout.class)) { |
|
|
|
return new WidgetCardTagBoundPane(xCreator); |
|
|
|
return new WidgetCardTagBoundPane(xCreator); |
|
|
|
} |
|
|
|
} |
|
|
|
return new WidgetBoundPane(xCreator); |
|
|
|
return new WidgetBoundPane(xCreator); |
|
|
@ -281,4 +282,15 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane { |
|
|
|
designer.getEditListenerTable().fireCreatorModified(DesignerEvent.CREATOR_EDITED); |
|
|
|
designer.getEditListenerTable().fireCreatorModified(DesignerEvent.CREATOR_EDITED); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void releaseResources() { |
|
|
|
|
|
|
|
listener = null; |
|
|
|
|
|
|
|
designer = null; |
|
|
|
|
|
|
|
currentEditorDefinePane = null; |
|
|
|
|
|
|
|
widgetPropertyPane = null; |
|
|
|
|
|
|
|
attriCardPane = null; |
|
|
|
|
|
|
|
xCreator = null; |
|
|
|
|
|
|
|
widgetBoundPane = null; |
|
|
|
|
|
|
|
this.removeAll(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|