421 |
* @return the font entry for <code>key</code> or null if no such entry |
* @return the font entry for <code>key</code> or null if no such entry |
422 |
* exists |
* exists |
423 |
*/ |
*/ |
424 |
public Font getFont(Object key, Locale l) |
public Font getFont(Object key, Locale locale) |
425 |
{ |
{ |
426 |
Object o = get(key, l); |
Object o = get(key, locale); |
427 |
return o instanceof Font ? (Font) o : null; |
return o instanceof Font ? (Font) o : null; |
428 |
} |
} |
429 |
|
|
450 |
* @return the color entry for <code>key</code> or null if no such entry |
* @return the color entry for <code>key</code> or null if no such entry |
451 |
* exists |
* exists |
452 |
*/ |
*/ |
453 |
public Color getColor(Object key, Locale l) |
public Color getColor(Object key, Locale locale) |
454 |
{ |
{ |
455 |
Object o = get(key, l); |
Object o = get(key, locale); |
456 |
return o instanceof Color ? (Color) o : null; |
return o instanceof Color ? (Color) o : null; |
457 |
} |
} |
458 |
|
|
479 |
* @return the icon entry for <code>key</code> or null if no such entry |
* @return the icon entry for <code>key</code> or null if no such entry |
480 |
* exists |
* exists |
481 |
*/ |
*/ |
482 |
public Icon getIcon(Object key, Locale l) |
public Icon getIcon(Object key, Locale locale) |
483 |
{ |
{ |
484 |
Object o = get(key, l); |
Object o = get(key, locale); |
485 |
return o instanceof Icon ? (Icon) o : null; |
return o instanceof Icon ? (Icon) o : null; |
486 |
} |
} |
487 |
|
|
508 |
* @return the border entry for <code>key</code> or null if no such entry |
* @return the border entry for <code>key</code> or null if no such entry |
509 |
* exists |
* exists |
510 |
*/ |
*/ |
511 |
public Border getBorder(Object key, Locale l) |
public Border getBorder(Object key, Locale locale) |
512 |
{ |
{ |
513 |
Object o = get(key, l); |
Object o = get(key, locale); |
514 |
return o instanceof Border ? (Border) o : null; |
return o instanceof Border ? (Border) o : null; |
515 |
} |
} |
516 |
|
|
537 |
* @return the string entry for <code>key</code> or null if no such entry |
* @return the string entry for <code>key</code> or null if no such entry |
538 |
* exists |
* exists |
539 |
*/ |
*/ |
540 |
public String getString(Object key, Locale l) |
public String getString(Object key, Locale locale) |
541 |
{ |
{ |
542 |
Object o = get(key, l); |
Object o = get(key, locale); |
543 |
return o instanceof String ? (String) o : null; |
return o instanceof String ? (String) o : null; |
544 |
} |
} |
545 |
|
|
566 |
* @return the integer entry for <code>key</code> or null if no such entry |
* @return the integer entry for <code>key</code> or null if no such entry |
567 |
* exists |
* exists |
568 |
*/ |
*/ |
569 |
public int getInt(Object key, Locale l) |
public int getInt(Object key, Locale locale) |
570 |
{ |
{ |
571 |
Object o = get(key, l); |
Object o = get(key, locale); |
572 |
return o instanceof Integer ? ((Integer) o).intValue() : 0; |
return o instanceof Integer ? ((Integer) o).intValue() : 0; |
573 |
} |
} |
574 |
|
|
594 |
* @return the boolean entry for <code>key</code> or null if no such entry |
* @return the boolean entry for <code>key</code> or null if no such entry |
595 |
* exists |
* exists |
596 |
*/ |
*/ |
597 |
public boolean getBoolean(Object key, Locale l) |
public boolean getBoolean(Object key, Locale locale) |
598 |
{ |
{ |
599 |
return Boolean.TRUE.equals(get(key, l)); |
return Boolean.TRUE.equals(get(key, locale)); |
600 |
} |
} |
601 |
|
|
602 |
/** |
/** |
622 |
* @return the boolean entry for <code>key</code> or null if no such entry |
* @return the boolean entry for <code>key</code> or null if no such entry |
623 |
* exists |
* exists |
624 |
*/ |
*/ |
625 |
public Insets getInsets(Object key, Locale l) |
public Insets getInsets(Object key, Locale locale) |
626 |
{ |
{ |
627 |
Object o = get(key, l); |
Object o = get(key, locale); |
628 |
return o instanceof Insets ? (Insets) o : null; |
return o instanceof Insets ? (Insets) o : null; |
629 |
} |
} |
630 |
|
|
651 |
* @return the boolean entry for <code>key</code> or null if no such entry |
* @return the boolean entry for <code>key</code> or null if no such entry |
652 |
* exists |
* exists |
653 |
*/ |
*/ |
654 |
public Dimension getDimension(Object key, Locale l) |
public Dimension getDimension(Object key, Locale locale) |
655 |
{ |
{ |
656 |
Object o = get(key, l); |
Object o = get(key, locale); |
657 |
return o instanceof Dimension ? (Dimension) o : null; |
return o instanceof Dimension ? (Dimension) o : null; |
658 |
} |
} |
659 |
|
|