@ -86,7 +86,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 ) ;
@ -231,7 +231,7 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane {
UITextField widgetNameField = widgetPropertyPane . getWidgetNameField ( ) ;
UITextField widgetNameField = widgetPropertyPane . getWidgetNameField ( ) ;
String toSetWidgetName = widgetNameField . getText ( ) ;
String toSetWidgetName = widgetNameField . getText ( ) ;
String currentWidgetName = widget . getWidgetName ( ) ;
String currentWidgetName = widget . getWidgetName ( ) ;
boolean exist = designer . getTarget ( ) . isNameExist ( toSetWidgetName ) & & ! ComparatorUtils . equals ( toSetWidgetName , currentWidgetName ) ;
boolean exist = designer . getTarget ( ) . isNameExist ( toSetWidgetName , widget ) & & ! ComparatorUtils . equals ( toSetWidgetName , currentWidgetName ) ;
if ( toSetWidgetName . isEmpty ( ) ) {
if ( toSetWidgetName . isEmpty ( ) ) {
widgetNameField . setText ( currentWidgetName ) ;
widgetNameField . setText ( currentWidgetName ) ;
return ;
return ;