|
|
|
@ -24,6 +24,7 @@ import com.fr.design.mainframe.DesignerContext;
|
|
|
|
|
import com.fr.design.mainframe.EastRegionContainerPane; |
|
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
|
import com.fr.design.mainframe.JForm; |
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
|
import com.fr.design.widget.DataModify; |
|
|
|
|
import com.fr.design.widget.FormWidgetDefinePaneFactoryBase; |
|
|
|
|
import com.fr.design.widget.Operator; |
|
|
|
@ -86,7 +87,7 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane {
|
|
|
|
|
return null; |
|
|
|
|
} else if (xLayoutContainer.acceptType(XWAbsoluteLayout.class)) { |
|
|
|
|
return new WidgetAbsoluteBoundPane(xCreator); |
|
|
|
|
} else if(xCreator.acceptType(XWCardTagLayout.class)){ |
|
|
|
|
} else if (xCreator.acceptType(XWCardTagLayout.class)) { |
|
|
|
|
return new WidgetCardTagBoundPane(xCreator); |
|
|
|
|
} |
|
|
|
|
return new WidgetBoundPane(xCreator); |
|
|
|
@ -164,7 +165,8 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static void freshPropertyMode(XCreator xCreator) { |
|
|
|
|
if (!(HistoryTemplateListCache.getInstance().getCurrentEditingTemplate() instanceof JForm)) { |
|
|
|
|
JTemplate jTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
if (!(jTemplate instanceof JForm) && jTemplate.isUpMode()) { |
|
|
|
|
if (xCreator instanceof XWParameterLayout) { |
|
|
|
|
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.REPORT_PARA); |
|
|
|
|
} else { |
|
|
|
@ -231,7 +233,7 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane {
|
|
|
|
|
UITextField widgetNameField = widgetPropertyPane.getWidgetNameField(); |
|
|
|
|
String toSetWidgetName = widgetNameField.getText(); |
|
|
|
|
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()) { |
|
|
|
|
widgetNameField.setText(currentWidgetName); |
|
|
|
|
return; |
|
|
|
|