|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.ui.config.PluginConfigUIFactoryImpl
public class PluginConfigUIFactoryImpl
Constructor Summary | |
---|---|
PluginConfigUIFactoryImpl(PluginConfigImpl _config,
String _pluginKey)
|
Method Summary | |
---|---|
EnablerParameter |
createBooleanParameter(String key,
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(String key,
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(String key,
String label,
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(String key,
String label,
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(String key,
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(String key,
String label,
int defaultValue,
int[] values,
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(String key,
String label,
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(String key,
String label,
String defaultValue,
String[] values,
String[] labels)
Creates an String parameter. The UI component will be a List. The parameter can be accessed using the PluginConfig.getPluginStringParameter(String key). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginConfigUIFactoryImpl(PluginConfigImpl _config, String _pluginKey)
Method Detail |
---|
public Parameter createIntParameter(String key, String label, int defaultValue, int[] values, String[] labels)
PluginConfigUIFactory
createIntParameter
in interface PluginConfigUIFactory
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)
public EnablerParameter createBooleanParameter(String key, String label, boolean defaultValue)
PluginConfigUIFactory
createBooleanParameter
in interface PluginConfigUIFactory
key
- the parameter keylabel
- the label for this checkBox (cf. i18n)defaultValue
- the default value of the parameter
public Parameter createIntParameter(String key, String label, int defaultValue)
PluginConfigUIFactory
createIntParameter
in interface PluginConfigUIFactory
key
- the parameter keylabel
- the label for this field (cf. i18n)defaultValue
- the default value of the parameter
public Parameter createStringParameter(String key, String label, String defaultValue)
PluginConfigUIFactory
createStringParameter
in interface PluginConfigUIFactory
key
- the parameter keylabel
- the label for this field (cf. i18n)defaultValue
- the default value of the parameter
public Parameter createStringParameter(String key, String label, String defaultValue, String[] values, String[] labels)
PluginConfigUIFactory
createStringParameter
in interface PluginConfigUIFactory
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)
public Parameter createFileParameter(String key, String label, String defaultValue)
PluginConfigUIFactory
createFileParameter
in interface PluginConfigUIFactory
key
- the parameter keylabel
- the label for this field (cf. i18n)defaultValue
- the default value of the parameter
public Parameter createDirectoryParameter(String key, String label, String defaultValue)
PluginConfigUIFactory
createDirectoryParameter
in interface PluginConfigUIFactory
key
- the parameter keylabel
- the label for this field (cf. i18n)defaultValue
- the default value of the parameter
public Parameter createColorParameter(String key, String label, int defaultValueRed, int defaultValueGreen, int defaultValueBlue)
PluginConfigUIFactory
createColorParameter
in interface PluginConfigUIFactory
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 |