@ -14,13 +14,16 @@ 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.dialog.AttrScrollPane ;
import com.fr.design.dialog.AttrScrollPane ;
import com.fr.design.dialog.BasicScrollPane ;
import com.fr.design.dialog.BasicScrollPane ;
import com.fr.design.file.HistoryTemplateListCache ;
import com.fr.design.foldablepane.UIExpandablePane ;
import com.fr.design.foldablepane.UIExpandablePane ;
import com.fr.design.gui.frpane.AbstractAttrNoScrollPane ;
import com.fr.design.gui.frpane.AbstractAttrNoScrollPane ;
import com.fr.design.gui.frpane.AttributeChangeListener ;
import com.fr.design.gui.frpane.AttributeChangeListener ;
import com.fr.design.gui.itextfield.UITextField ;
import com.fr.design.gui.itextfield.UITextField ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.mainframe.DesignerContext ;
import com.fr.design.mainframe.DesignerContext ;
import com.fr.design.mainframe.EastRegionContainerPane ;
import com.fr.design.mainframe.FormDesigner ;
import com.fr.design.mainframe.FormDesigner ;
import com.fr.design.mainframe.JForm ;
import com.fr.design.widget.DataModify ;
import com.fr.design.widget.DataModify ;
import com.fr.design.widget.FormWidgetDefinePaneFactoryBase ;
import com.fr.design.widget.FormWidgetDefinePaneFactoryBase ;
import com.fr.design.widget.Operator ;
import com.fr.design.widget.Operator ;
@ -147,6 +150,7 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane {
}
}
} ;
} ;
freshPropertyMode ( innerCreator ) ;
if ( isExtraWidget ) {
if ( isExtraWidget ) {
return ;
return ;
}
}
@ -159,6 +163,16 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane {
}
}
private static void freshPropertyMode ( XCreator xCreator ) {
if ( ! ( HistoryTemplateListCache . getInstance ( ) . getCurrentEditingTemplate ( ) instanceof JForm ) ) {
if ( xCreator instanceof XWParameterLayout ) {
EastRegionContainerPane . getInstance ( ) . switchMode ( EastRegionContainerPane . PropertyMode . REPORT_PARA ) ;
} else {
EastRegionContainerPane . getInstance ( ) . switchMode ( EastRegionContainerPane . PropertyMode . REPORT_PARA_WIDGET ) ;
}
}
}
private void initDefinePane ( ) {
private void initDefinePane ( ) {
currentEditorDefinePane = null ;
currentEditorDefinePane = null ;
XCreator creator = getXCreatorDedicated ( ) ;
XCreator creator = getXCreatorDedicated ( ) ;