public class ActionBuilderUtils
extends java.lang.Object
ActionBuilder
related functions.Modifier and Type | Method and Description |
---|---|
static java.lang.String |
format(net.sf.japi.swing.action.ActionBuilder actionBuilder,
java.lang.String key,
java.lang.Object... args)
Returns the value of a key.
|
static boolean |
getBoolean(net.sf.japi.swing.action.ActionBuilder actionBuilder,
java.lang.String key)
Returns the value of a key as a
boolean . |
static int |
getInt(net.sf.japi.swing.action.ActionBuilder actionBuilder,
java.lang.String key,
int defaultValue)
Returns the value of a key as an
int . |
static java.lang.String |
getString(net.sf.japi.swing.action.ActionBuilder actionBuilder,
java.lang.String key)
Returns the value of a key.
|
static java.lang.String |
getString(net.sf.japi.swing.action.ActionBuilder actionBuilder,
java.lang.String key,
java.lang.String defaultValue)
Returns the value of a key.
|
static javax.swing.JLabel |
newLabel(net.sf.japi.swing.action.ActionBuilder actionBuilder,
java.lang.String key)
Creates a new
JLabel from a resource key. |
public static boolean getBoolean(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder, @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 net.sf.japi.swing.action.ActionBuilder actionBuilder, @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 java.lang.String getString(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder, @NotNull java.lang.String key, @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 java.lang.String getString(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder, @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 java.lang.String format(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder, @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 javax.swing.JLabel newLabel(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder, @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