@ -113,7 +113,7 @@ public class FormSingleWidgetCardPane extends FormWidgetCardPane {
}
private void initComponents ( ) {
XCreator innerCreator = getXCreatorDedicated ( ) ;
XCreator innerCreator = XCreatorUtils . getXCreatorInnerWidget ( this . xCreator ) ;
attriCardPane = FRGUIPaneFactory . createBorderLayout_S_Pane ( ) ;
content . add ( attriCardPane , BorderLayout . CENTER ) ;
@ -166,7 +166,7 @@ public class FormSingleWidgetCardPane extends FormWidgetCardPane {
private void initDefinePane ( ) {
currentEditorDefinePane = null ;
XCreator creator = getXCreatorDedicated ( ) ;
XCreator creator = XCreatorUtils . getXCreatorInnerWidget ( this . xCreator ) ;
FormWidgetDefinePaneFactoryBase . RN rn = FormWidgetDefinePaneFactoryBase . createWidgetDefinePane ( creator , designer , creator . toData ( ) , new Operator ( ) {
@Override
public void did ( DataCreatorUI ui , String cardName ) {
@ -190,11 +190,6 @@ public class FormSingleWidgetCardPane extends FormWidgetCardPane {
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
public String title4PopupWindow ( ) {
return "Widget" ;
@ -283,7 +278,7 @@ public class FormSingleWidgetCardPane extends FormWidgetCardPane {
}
public void fireValueChanged ( ) {
XCreator creator = getXCreatorDedicated ( ) ;
XCreator creator = XCreatorUtils . getXCreatorInnerWidget ( this . xCreator ) ;
creator . firePropertyChange ( ) ;
}