@ -91,6 +91,8 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
private static final String VERSION100 = "100" ;
private static final int CACHINGTEMPLATE_LIMIT = 5 ;
private static final String WEB_NAME = "webapps" ;
public static final int LAYOUT_TEMPLATE_SIMPLE_STYLE = 0 ;
public static final int LAYOUT_TEMPLATE_REAL_STYLE = 1 ;
/ * *
* 指定默认工作空间
* /
@ -205,6 +207,8 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
private boolean showTemplateMissingPlugin = true ;
private int layoutTemplateStyle = LAYOUT_TEMPLATE_SIMPLE_STYLE ;
/ * *
* DesignerEnvManager .
* /
@ -1691,6 +1695,14 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
this . openDebug = openDebug ;
}
public int getLayoutTemplateStyle ( ) {
return layoutTemplateStyle ;
}
public void setLayoutTemplateStyle ( int layoutTemplateStyle ) {
this . layoutTemplateStyle = layoutTemplateStyle ;
}
/ * *
* Read XML . < br >
* The method will be invoked when read data from XML file . < br >
@ -1861,6 +1873,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
this . setEmbedServerLazyStartup ( reader . getAttrAsBoolean ( "embedServerLazyStartup" , false ) ) ;
this . setShowTemplateMissingPlugin ( reader . getAttrAsBoolean ( "showTemplateMissingPlugin" , true ) ) ;
this . setShowServerDatasetAuthTip ( reader . getAttrAsBoolean ( "showServerDatasetAuthTip" , true ) ) ;
this . setLayoutTemplateStyle ( reader . getAttrAsInt ( "layoutTemplateStyle" , LAYOUT_TEMPLATE_SIMPLE_STYLE ) ) ;
}
private void readReportPaneAttributions ( XMLableReader reader ) {
@ -2134,6 +2147,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
if ( ! this . isShowTemplateMissingPlugin ( ) ) {
writer . attr ( "showTemplateMissingPlugin" , this . isShowTemplateMissingPlugin ( ) ) ;
}
writer . attr ( "layoutTemplateStyle" , this . getLayoutTemplateStyle ( ) ) ;
writer . attr ( "showServerDatasetAuthTip" , this . isShowServerDatasetAuthTip ( ) ) ;
writer . end ( ) ;
}