FindBugs™ 1.3.9

edu.umd.cs.findbugs
Class L10N

java.lang.Object
  extended by edu.umd.cs.findbugs.L10N

public class L10N
extends java.lang.Object


Method Summary
static java.lang.String getLocalString(java.lang.String key, java.lang.String defaultString)
           
static void localiseButton(javax.swing.AbstractButton button, java.lang.String key, java.lang.String defaultString, boolean setMnemonic)
          Localise the given AbstractButton, setting the text and optionally mnemonic Note that AbstractButton includes menus and menu items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocalString

public static java.lang.String getLocalString(java.lang.String key,
                                              java.lang.String defaultString)

localiseButton

public static void localiseButton(javax.swing.AbstractButton button,
                                  java.lang.String key,
                                  java.lang.String defaultString,
                                  boolean setMnemonic)
Localise the given AbstractButton, setting the text and optionally mnemonic Note that AbstractButton includes menus and menu items.

Parameters:
button - The button to localise
key - The key to look up in resource bundle
defaultString - default String to use if key not found
setMnemonic - whether or not to set the mnemonic. According to Sun's guidelines, default/cancel buttons should not have mnemonics but instead should use Return/Escape

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.