public class ActionArgs
extends java.lang.Object
Constructor and Description |
---|
ActionArgs() |
Modifier and Type | Method and Description |
---|---|
<T> ActionArgs |
with(java.lang.String name,
T defaultValue)
Adds a basic argument of type T.
|
ActionArgs |
withAction(java.lang.String name,
java.lang.String defaultValue)
Adds an action argument.
|
ActionArgs |
withAsset(java.lang.String name,
java.lang.String defaultFilename)
Adds an asset argument.
|
ActionArgs |
withColor(java.lang.String name,
int defaultValue)
Adds a color argument with an integer value.
|
ActionArgs |
withFile(java.lang.String name,
java.lang.String defaultFilename)
Adds a file argument.
|
public <T> ActionArgs with(java.lang.String name, T defaultValue)
T
- Type of the argument. Can be Boolean, Byte, Short, Integer, Long, Float, Double,
Character, String, List, or Map.name
- The name of the argument.defaultValue
- The default value of the argument.public ActionArgs withColor(java.lang.String name, int defaultValue)
name
- The name of the argument.defaultValue
- The integer value representing the color.public ActionArgs withFile(java.lang.String name, java.lang.String defaultFilename)
name
- The name of the argument.defaultFilename
- The path of the default file value. Use null to indicate no default
value.public ActionArgs withAsset(java.lang.String name, java.lang.String defaultFilename)
withFile(java.lang.String, java.lang.String)
except that the filename is
relative to the assets directory.name
- The name of the argument.defaultFilename
- The path of the default file value relative to the assets directory. Use
null to indicate no default value.public ActionArgs withAction(java.lang.String name, java.lang.String defaultValue)
name
- The name of the argument.defaultValue
- The default action name. Use null to indicate no action.