|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PluginConfigUIFactory
Functions to create various plugin UI Config Parameters.
The label parameter passed to these functions is a lookup name. The UI label's text will be assigned the value looked up in the language file using the label parameter as the key name.
If you wish your configuration option to be displaying in console mode, add the following to your key:
_b Boolean Value _i Integer Value _s String Valuethe above tags must be added before any other "_" characters.
PluginInterface.addConfigUIParameters
Method Summary | |
---|---|
EnablerParameter |
createBooleanParameter(java.lang.String key,
java.lang.String label,
boolean defaultValue)
Creates a boolean parameter. The UI component used will be a checkBox. The parameter can be accessed using the PluginConfig.getPluginBooleanParameter(String key). The return object, and EnablerParameter, can be used to add dependency to other parameters. |
Parameter |
createColorParameter(java.lang.String key,
java.lang.String label,
int defaultValueRed,
int defaultValueGreen,
int defaultValueBlue)
Creates a Color Parameter. The UI component will be a button with a Color area. The parameter is in fact separacted in 3 parameters: key.red key.green key.blue Each color component is stored as an int parameter and can be accessed using PluginConfig.getPluginIntParameter(String key.(red|green|blue)). |
Parameter |
createDirectoryParameter(java.lang.String key,
java.lang.String label,
java.lang.String defaultValue)
Creates a Directory Parameter. The UI component will be a Text field with a browse button. The parameter can be accessed using the PluginConfig.getPluginStringParameter(String key). |
Parameter |
createFileParameter(java.lang.String key,
java.lang.String label,
java.lang.String defaultValue)
Creates a File Parameter. The UI component will be a Text field with a browse button. The parameter can be accessed using the PluginConfig.getPluginStringParameter(String key). |
Parameter |
createIntParameter(java.lang.String key,
java.lang.String label,
int defaultValue)
Creates an int parameter. The UI component will be a Text field, but only accepting int values. The parameter can be accessed using the PluginConfig.getPluginIntParameter(String key). |
Parameter |
createIntParameter(java.lang.String key,
java.lang.String label,
int defaultValue,
int[] values,
java.lang.String[] labels)
Creates an int parameter. The UI component will be a List. The parameter can be accessed using the PluginConfig.getPluginIntParameter(String key). |
Parameter |
createStringParameter(java.lang.String key,
java.lang.String label,
java.lang.String defaultValue)
Creates a String parameter. The UI Component will be a Text field. The parameter can be accessed using the PluginConfig.getPluginStringParameter(String key). |
Parameter |
createStringParameter(java.lang.String key,
java.lang.String label,
java.lang.String defaultValue,
java.lang.String[] values,
java.lang.String[] labels)
Creates an String parameter. The UI component will be a List. The parameter can be accessed using the PluginConfig.getPluginStringParameter(String key). |
Method Detail |
---|
EnablerParameter createBooleanParameter(java.lang.String key, java.lang.String label, boolean defaultValue)
key
- the parameter keylabel
- the label for this checkBox (cf. i18n)defaultValue
- the default value of the parameter
Parameter createIntParameter(java.lang.String key, java.lang.String label, int defaultValue)
key
- the parameter keylabel
- the label for this field (cf. i18n)defaultValue
- the default value of the parameter
Parameter createIntParameter(java.lang.String key, java.lang.String label, int defaultValue, int[] values, java.lang.String[] labels)
key
- the parameter keylabel
- the label for this field (cf. i18n)defaultValue
- the default value of the parametervalues
- the list of valueslabels
- the list of labels (no i18n here)
Parameter createStringParameter(java.lang.String key, java.lang.String label, java.lang.String defaultValue)
key
- the parameter keylabel
- the label for this field (cf. i18n)defaultValue
- the default value of the parameter
Parameter createStringParameter(java.lang.String key, java.lang.String label, java.lang.String defaultValue, java.lang.String[] values, java.lang.String[] labels)
key
- the parameter keylabel
- The label for this field (cf. i18n)defaultValue
- the default value of the parametervalues
- the list of valueslabels
- the list of labels (no i18n here)
Parameter createFileParameter(java.lang.String key, java.lang.String label, java.lang.String defaultValue)
key
- the parameter keylabel
- the label for this field (cf. i18n)defaultValue
- the default value of the parameter
Parameter createDirectoryParameter(java.lang.String key, java.lang.String label, java.lang.String defaultValue)
key
- the parameter keylabel
- the label for this field (cf. i18n)defaultValue
- the default value of the parameter
Parameter createColorParameter(java.lang.String key, java.lang.String label, int defaultValueRed, int defaultValueGreen, int defaultValueBlue)
key
- the parameter keylabel
- the label for this field (cf. i18n)defaultValueRed
- the red component of the default color (0-255)defaultValueGreen
- the green component of the default color (0-255)defaultValueBlue
- the blue component of the default color (0-255)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |