|
|
@ -10,8 +10,6 @@ import com.fr.design.designer.creator.XWAbsoluteBodyLayout; |
|
|
|
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.XWScaleLayout; |
|
|
|
|
|
|
|
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.file.HistoryTemplateListCache; |
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
@ -113,7 +111,7 @@ public class FormSingleWidgetCardPane extends FormWidgetCardPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initComponents() { |
|
|
|
private void initComponents() { |
|
|
|
XCreator innerCreator = getXCreatorDedicated(); |
|
|
|
XCreator innerCreator = XCreatorUtils.getXCreatorInnerWidget(this.xCreator); |
|
|
|
|
|
|
|
|
|
|
|
attriCardPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
attriCardPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
content.add(attriCardPane, BorderLayout.CENTER); |
|
|
|
content.add(attriCardPane, BorderLayout.CENTER); |
|
|
@ -166,7 +164,7 @@ public class FormSingleWidgetCardPane extends FormWidgetCardPane { |
|
|
|
|
|
|
|
|
|
|
|
private void initDefinePane() { |
|
|
|
private void initDefinePane() { |
|
|
|
currentEditorDefinePane = null; |
|
|
|
currentEditorDefinePane = null; |
|
|
|
XCreator creator = getXCreatorDedicated(); |
|
|
|
XCreator creator = XCreatorUtils.getXCreatorInnerWidget(this.xCreator); |
|
|
|
FormWidgetDefinePaneFactoryBase.RN rn = FormWidgetDefinePaneFactoryBase.createWidgetDefinePane(creator, designer, creator.toData(), new Operator() { |
|
|
|
FormWidgetDefinePaneFactoryBase.RN rn = FormWidgetDefinePaneFactoryBase.createWidgetDefinePane(creator, designer, creator.toData(), new Operator() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void did(DataCreatorUI ui, String cardName) { |
|
|
|
public void did(DataCreatorUI ui, String cardName) { |
|
|
@ -190,11 +188,6 @@ public class FormSingleWidgetCardPane extends FormWidgetCardPane { |
|
|
|
currentEditorDefinePane = definePane; |
|
|
|
currentEditorDefinePane = definePane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private XCreator getXCreatorDedicated() { |
|
|
|
|
|
|
|
boolean dedicateLayout = xCreator.acceptType(XWScaleLayout.class) && xCreator.getComponentCount() > 0 && ((XCreator) xCreator.getComponent(0)).shouldScaleCreator() || xCreator.acceptType(XWTitleLayout.class); |
|
|
|
|
|
|
|
return dedicateLayout ? (XCreator) xCreator.getComponent(0) : xCreator; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String title4PopupWindow() { |
|
|
|
public String title4PopupWindow() { |
|
|
|
return "Widget"; |
|
|
|
return "Widget"; |
|
|
@ -283,7 +276,7 @@ public class FormSingleWidgetCardPane extends FormWidgetCardPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void fireValueChanged() { |
|
|
|
public void fireValueChanged() { |
|
|
|
XCreator creator = getXCreatorDedicated(); |
|
|
|
XCreator creator = XCreatorUtils.getXCreatorInnerWidget(this.xCreator); |
|
|
|
creator.firePropertyChange(); |
|
|
|
creator.firePropertyChange(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|