Lines Matching defs:style

88  * calendar style (for example, Japanese-Gregorian, Japanese-Traditional).
706 * A style specifier for {@link #getDisplayNames(int, int, Locale)
717 * A style specifier for {@link #getDisplayName(int, int, Locale)
727 * A style specifier for {@link #getDisplayName(int, int, Locale)
1373 * <code>field</code> value in the given <code>style</code> and
1383 * "January" in the long style in an English locale or "Jan" in
1384 * the short style. However, no string representation would be
1395 * @param style
1396 * the style applied to the string representation; one of
1401 * <code>field</code> in the given <code>style</code>, or
1405 * if <code>field</code> or <code>style</code> is invalid,
1412 public String getDisplayName(int field, int style, Locale locale) {
1413 if (!checkDisplayNameParams(field, style, ALL_STYLES, LONG, locale,
1419 String[] strings = getFieldStrings(field, style, symbols);
1431 * <code>field</code> in the given <code>style</code> and
1436 * {@linkplain #SHORT short} style in an English locale.
1448 * is {@link #MONTH} and <code>style</code> is {@link
1455 * @param style
1456 * the style applied to the display names; one of {@link
1461 * <code>style</code> and <code>locale</code> and their
1465 * if <code>field</code> or <code>style</code> is invalid,
1472 public Map<String, Integer> getDisplayNames(int field, int style, Locale locale) {
1473 if (!checkDisplayNameParams(field, style, ALL_STYLES, LONG, locale,
1479 if (style == ALL_STYLES) {
1495 return getDisplayNamesImpl(field, style, locale);
1498 private Map<String,Integer> getDisplayNamesImpl(int field, int style, Locale locale) {
1500 String[] strings = getFieldStrings(field, style, symbols);
1514 boolean checkDisplayNameParams(int field, int style, int minStyle, int maxStyle,
1517 style < minStyle || style > maxStyle) {
1526 private String[] getFieldStrings(int field, int style, DateFormatSymbols symbols) {
1534 strings = (style == LONG) ? symbols.getMonths() : symbols.getShortMonths();
1538 strings = (style == LONG) ? symbols.getWeekdays() : symbols.getShortWeekdays();