@Test public void locale_can_be_changed_via_designtime_locale() { HierarchicalConfiguration conf = new HierarchicalConfiguration( ClassicEngineBoot.getInstance().getGlobalConfig() ); conf.setConfigProperty( LOCALE_OVERRIDE, Locale.FRENCH.toString() ); DefaultReportEnvironment re = new DefaultReportEnvironment( conf ); Assert.assertEquals( re.getLocale(), Locale.FRENCH ); }
public Locale getLocale() { if ( locale != null ) { return locale; } return localeFromConfiguration; }
DefaultReportEnvironment implements ReportEnvironment { public Locale getLocale() { if ( locale != null ) { return locale; } return localeFromConfiguration; } }
DefaultReportEnvironment implements ReportEnvironment { public Locale getLocale() { if ( locale != null ) { return locale; } return localeFromConfiguration; } DefaultReportEnvironment( final Configuration configuration ); }
DefaultReportEnvironment implements ReportEnvironment { public Locale getLocale() { if ( locale != null ) { return locale; } return localeFromConfiguration; } DefaultReportEnvironment( final Configuration configuration ); Object getEnvironmentProperty( final String key ); String getURLEncoding(); void update( final Configuration configuration ); void setLocale( final Locale locale ); void setTimeZone( final TimeZone timeZone ); Locale getLocale(); TimeZone getTimeZone(); Object clone(); Map<String, String[]> getUrlExtraParameter(); }
DefaultReportEnvironment implements ReportEnvironment { public Locale getLocale() { if ( locale != null ) { return locale; } return localeFromConfiguration; } DefaultReportEnvironment( final Configuration configuration ); Object getEnvironmentProperty( final String key ); String getURLEncoding(); void update( final Configuration configuration ); void setLocale( final Locale locale ); void setTimeZone( final TimeZone timeZone ); Locale getLocale(); TimeZone getTimeZone(); Object clone(); Map<String, String[]> getUrlExtraParameter(); static final String ENVIRONMENT_KEY; static final String ENVIRONMENT_TYPE; }