|
|
@ -152,8 +152,7 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane { |
|
|
|
|
|
|
|
|
|
|
|
private void initDefinePane() { |
|
|
|
private void initDefinePane() { |
|
|
|
currentEditorDefinePane = null; |
|
|
|
currentEditorDefinePane = null; |
|
|
|
boolean dedicateLayout = xCreator.acceptType(XWScaleLayout.class) && xCreator.getComponentCount() > 0 && ((XCreator) xCreator.getComponent(0)).shouldScaleCreator() || xCreator.acceptType(XWTitleLayout.class); |
|
|
|
XCreator creator = getXCreatorDedicated(); |
|
|
|
XCreator creator = dedicateLayout ? (XCreator) xCreator.getComponent(0) : xCreator; |
|
|
|
|
|
|
|
FormWidgetDefinePaneFactoryBase.RN rn = FormWidgetDefinePaneFactoryBase.createWidgetDefinePane(creator, creator.toData(), new Operator() { |
|
|
|
FormWidgetDefinePaneFactoryBase.RN rn = FormWidgetDefinePaneFactoryBase.createWidgetDefinePane(creator, creator.toData(), new Operator() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void did(DataCreatorUI ui, String cardName) { |
|
|
|
public void did(DataCreatorUI ui, String cardName) { |
|
|
@ -168,6 +167,10 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane { |
|
|
|
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() { |
|
|
@ -217,7 +220,8 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void fireValueChanged() { |
|
|
|
public void fireValueChanged() { |
|
|
|
xCreator.firePropertyChange(); |
|
|
|
XCreator creator = getXCreatorDedicated(); |
|
|
|
|
|
|
|
creator.firePropertyChange(); |
|
|
|
designer.fireTargetModified(); |
|
|
|
designer.fireTargetModified(); |
|
|
|
designer.refreshDesignerUI(); |
|
|
|
designer.refreshDesignerUI(); |
|
|
|
} |
|
|
|
} |
|
|
|