Example usage for java.util Locale ENGLISH

List of usage examples for java.util Locale ENGLISH

Introduction

In this page you can find the example usage for java.util Locale ENGLISH.

Prototype

Locale ENGLISH

To view the source code for java.util Locale ENGLISH.

Click Source Link

Document

Useful constant for language.

Usage

From source file:net.sf.dynamicreports.test.jasper.chart.Bar3DChartTest.java

@Override
protected void configureReport(JasperReportBuilder rb) {
    TextColumnBuilder<String> column1;
    TextColumnBuilder<Integer> column2;

    Locale.setDefault(Locale.ENGLISH);

    rb.columns(column1 = col.column("Column1", "field1", String.class),
            column2 = col.column("Column2", "field2", Integer.class))
            .summary(/*from  w  w  w.j  av a2  s  . co m*/
                    cht.bar3DChart().setCategory(column1).series(cht.serie(column2)).setShowLabels(true)
                            .setXOffset(2d).setYOffset(3d),
                    cht.bar3DChart().setCategory(column1).series(cht.serie(column2))
                            .setCategoryAxisFormat(cht.axisFormat().setLabel("category")
                                    .setLabelColor(Color.BLUE).setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setTickLabelRotation(45d)
                                    .setLineColor(Color.LIGHT_GRAY)),
                    cht.bar3DChart().setCategory(column1).series(cht.serie(column2))
                            .setValueAxisFormat(cht.axisFormat().setLabel("value").setLabelColor(Color.BLUE)
                                    .setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setTickLabelMask("#,##0.00")
                                    .setLineColor(Color.LIGHT_GRAY).setRangeMinValueExpression(1)
                                    .setRangeMaxValueExpression(15)));
}

From source file:net.sf.dynamicreports.test.jasper.chart.XyBlockChartTest.java

@Override
protected void configureReport(JasperReportBuilder rb) {
    TextColumnBuilder<Integer> column1;
    TextColumnBuilder<Integer> column2;
    TextColumnBuilder<Integer> column3;

    Locale.setDefault(Locale.ENGLISH);

    rb.columns(column1 = col.column("Column1", "field1", Integer.class),
            column2 = col.column("Column2", "field2", Integer.class),
            column3 = col.column("Column3", "field3", Integer.class))
            .summary(//from ww  w .j  av  a  2 s. co m
                    cht.xyBlockChart(0.1, 5, Color.WHITE).setXValue(column1)
                            .series(cht.xyzSerie().setYValue(column2).setZValue(column3)).setBlockWidth(1.1)
                            .setBlockHeight(0.9).setBlockAnchor(RectangleAnchor.BOTTOM_LEFT)
                            .paintScales(cht.paintScale("1", 1, Color.RED), cht.paintScale("2", 2, Color.GREEN),
                                    cht.paintScale("3", 3, Color.BLUE)),
                    cht.xyBlockChart(0, 5, Color.WHITE).setXValue(column1)
                            .series(cht.xyzSerie().setYValue(column2).setZValue(column3))
                            .setXAxisFormat(cht.axisFormat().setLabel("category").setLabelColor(Color.BLUE)
                                    .setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setLineColor(Color.LIGHT_GRAY)),
                    cht.xyBlockChart(0, 5, Color.WHITE).setXValue(column1)
                            .series(cht.xyzSerie().setYValue(column2).setZValue(column3))
                            .setYAxisFormat(cht.axisFormat().setLabel("value").setLabelColor(Color.BLUE)
                                    .setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setTickLabelMask("#,##0.00")
                                    .setLineColor(Color.LIGHT_GRAY)));
}

From source file:ch.ralscha.extdirectspring.provider.RemoteProviderStoreModifySingle.java

@ExtDirectMethod(value = ExtDirectMethodType.STORE_MODIFY)
public Row update2(Locale locale, @RequestParam(value = "aParam") int aParam, Row row) {
    assertThat(aParam).isEqualTo(42);/*w ww.j a  v a  2 s .  com*/
    assertThat(locale).isEqualTo(Locale.ENGLISH);
    return row;
}

From source file:com.example.mego.adas.videos.api.YouTubeApiUtilities.java

/**
 * Return the formatted date string (i.e. "Mar 3, 1984") from a Date object.
 *///w  w w .jav a2  s.com
public static String formatDate(Date dateObject) {
    SimpleDateFormat dateFormat = new SimpleDateFormat("LLL dd, yyyy", Locale.ENGLISH);
    return dateFormat.format(dateObject);
}

From source file:com.hp.autonomy.frontend.find.core.web.ControllerUtilsImpl.java

@Override
public String getMessage(final String code, final Object[] args) throws NoSuchMessageException {
    return messageSource.getMessage(code, args, Locale.ENGLISH);
}

From source file:net.sf.dynamicreports.test.jasper.chart.StackedBarChartTest.java

@Override
protected void configureReport(JasperReportBuilder rb) {
    TextColumnBuilder<String> column1;
    TextColumnBuilder<Integer> column2;

    Locale.setDefault(Locale.ENGLISH);

    rb.columns(column1 = col.column("Column1", "field1", String.class),
            column2 = col.column("Column2", "field2", Integer.class))
            .summary(//from  www.j  a  v a2s  .co  m
                    cht.stackedBarChart().setCategory(column1).series(cht.serie(column2)).setShowLabels(true)
                            .setShowTickLabels(false).setShowTickMarks(false),
                    cht.stackedBarChart().setCategory(column1).series(cht.serie(column2))
                            .setCategoryAxisFormat(cht.axisFormat().setLabel("category")
                                    .setLabelColor(Color.BLUE).setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setTickLabelRotation(45d)
                                    .setLineColor(Color.LIGHT_GRAY)),
                    cht.stackedBarChart().setCategory(column1).series(cht.serie(column2))
                            .setValueAxisFormat(cht.axisFormat().setLabel("value").setLabelColor(Color.BLUE)
                                    .setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setTickLabelMask("#,##0.00")
                                    .setLineColor(Color.LIGHT_GRAY).setRangeMinValueExpression(1)
                                    .setRangeMaxValueExpression(15)));
}

From source file:net.sf.dynamicreports.test.jasper.chart.WaterfallBarChartTest.java

@Override
protected void configureReport(JasperReportBuilder rb) {
    TextColumnBuilder<String> column1;
    TextColumnBuilder<Integer> column2;

    Locale.setDefault(Locale.ENGLISH);

    rb.columns(column1 = col.column("Column1", "field1", String.class),
            column2 = col.column("Column2", "field2", Integer.class))
            .summary(//from w w  w .j a  v a 2s. c o m
                    cht.waterfallBarChart().setCategory(column1).series(cht.serie(column2)).setShowLabels(true)
                            .setShowTickLabels(false).setShowTickMarks(false),
                    cht.waterfallBarChart().setCategory(column1).series(cht.serie(column2))
                            .setCategoryAxisFormat(cht.axisFormat().setLabel("category")
                                    .setLabelColor(Color.BLUE).setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setTickLabelRotation(45d)
                                    .setLineColor(Color.LIGHT_GRAY)),
                    cht.waterfallBarChart().setCategory(column1).series(cht.serie(column2))
                            .setValueAxisFormat(cht.axisFormat().setLabel("value").setLabelColor(Color.BLUE)
                                    .setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setTickLabelMask("#,##0.00")
                                    .setLineColor(Color.LIGHT_GRAY).setRangeMinValueExpression(1)
                                    .setRangeMaxValueExpression(15)));
}

From source file:com.carfinance.core.filter.HiddenHttpMethodFilter.java

@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response,
        FilterChain filterChain) throws ServletException, IOException {
    logger.debug("@@@@@@@@@@@@@@@@@@@??@@@@@@@@@@@@@@@@@@@");
    logger.debug("@@@@@@@@@@@@@@@@@@@ " + request.getMethod().toUpperCase()
            + "@@@@@@@@@@@@@@@@@@@");
    String paramValue = request.getParameter(this.methodParam);
    if ("POST".equals(request.getMethod()) && StringUtils.hasLength(paramValue)) {
        String method = paramValue.toUpperCase(Locale.ENGLISH);
        logger.debug("@@@@@@@@???" + method + "@@@@@@@@");
        HttpServletRequest wrapper = new HttpMethodRequestWrapper(request, method);
        filterChain.doFilter(wrapper, response);
    } else {/*ww  w .j  a  va 2s .c om*/
        logger.debug("@@@@@@@@@@@@@@@@@@@@???@@@@@@@@@@@@@@@@@@@@");
        filterChain.doFilter(request, response);
    }
}

From source file:net.sf.gazpachoquest.questionnaires.views.login.OldLoginView.java

private ComboBox createLanguageSelector() {
    ComboBox languageSelector = new ComboBox("com.vaadin.demo.dashboard.DashboardUI.Language");
    languageSelector.setImmediate(true);
    languageSelector.setNullSelectionAllowed(false);
    addLocale(Locale.ENGLISH, languageSelector);
    addLocale(Locale.FRENCH, languageSelector);
    addLocale(new Locale("es"), languageSelector);
    // languageSelector.setValue(I18NStaticService.getI18NServive().getLocale());
    /*-languageSelector.addValueChangeListener(new ValueChangeListener() {
            /* ww w  .  ja v  a 2  s. c  o m*/
    private static final long serialVersionUID = 1L;
            
    @Override
    public void valueChange(ValueChangeEvent event) {
        Locale locale = (Locale) (event.getProperty().getValue());
        I18NStaticService.getI18NServive().setLocale(locale);
        getUI().requestRepaintAll();
    }
    });*/
    return languageSelector;
}

From source file:net.sf.dynamicreports.test.jasper.chart.LineChartTest.java

@Override
protected void configureReport(JasperReportBuilder rb) {
    TextColumnBuilder<String> column1;
    TextColumnBuilder<Integer> column2;

    Locale.setDefault(Locale.ENGLISH);

    rb.columns(column1 = col.column("Column1", "field1", String.class),
            column2 = col.column("Column2", "field2", Integer.class))
            .summary(/*ww  w .ja v a2 s.c o  m*/
                    cht.lineChart().setCategory(column1).series(cht.serie(column2)).setShowShapes(false)
                            .setShowLines(false),
                    cht.lineChart().setCategory(column1).series(cht.serie(column2))
                            .setCategoryAxisFormat(cht.axisFormat().setLabel("category")
                                    .setLabelColor(Color.BLUE).setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setTickLabelRotation(45d)
                                    .setLineColor(Color.LIGHT_GRAY)),
                    cht.lineChart().setCategory(column1).series(cht.serie(column2))
                            .setValueAxisFormat(cht.axisFormat().setLabel("value").setLabelColor(Color.BLUE)
                                    .setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setTickLabelMask("#,##0.00")
                                    .setLineColor(Color.LIGHT_GRAY).setRangeMinValueExpression(1)
                                    .setRangeMaxValueExpression(15)));
}