public class ActionBuilderUtils
extends java.lang.Object
ActionBuilder related functions.| Modifier and Type | Method and Description |
|---|---|
static @NotNull java.lang.String |
format(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull java.lang.String key,
java.lang.Object... args)
Returns the value of a key.
|
static boolean |
getBoolean(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull java.lang.String key)
Returns the value of a key as a
boolean. |
static int |
getInt(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull java.lang.String key,
int defaultValue)
Returns the value of a key as an
int. |
static @NotNull java.lang.String |
getString(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull java.lang.String key)
Returns the value of a key.
|
static @NotNull java.lang.String |
getString(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull java.lang.String key,
@NotNull java.lang.String defaultValue)
Returns the value of a key.
|
static @NotNull javax.swing.JLabel |
newLabel(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull java.lang.String key)
Creates a new
JLabel from a resource key. |
public static boolean getBoolean(@NotNull
@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull
@NotNull java.lang.String key)
boolean.actionBuilder - the action builder to querykey - the key to queryfalse if the key does not exist or if the
value is invalidpublic static int getInt(@NotNull
@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull
@NotNull java.lang.String key,
int defaultValue)
int.actionBuilder - the action builder to querykey - the key to querydefaultValue - the default value if the key does not exist or if the
value is invalid@NotNull
public static @NotNull java.lang.String getString(@NotNull
@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull
@NotNull java.lang.String key,
@NotNull
@NotNull java.lang.String defaultValue)
actionBuilder - the action builder to querykey - the key to querydefaultValue - the default value if the key does not exist@NotNull
public static @NotNull java.lang.String getString(@NotNull
@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull
@NotNull java.lang.String key)
actionBuilder - the action builder to querykey - the key to queryjava.util.MissingResourceException - if the key does not exist@NotNull
public static @NotNull java.lang.String format(@NotNull
@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull
@NotNull java.lang.String key,
@NotNull
java.lang.Object... args)
actionBuilder - the action builder to querykey - the key to queryargs - the arguments to replace in the format stringjava.util.MissingResourceException - if the key does not exist@NotNull
public static @NotNull javax.swing.JLabel newLabel(@NotNull
@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder,
@NotNull
@NotNull java.lang.String key)
JLabel from a resource key.actionBuilder - the action builder to querykey - the resource keyjava.util.MissingResourceException - if the key does not exist