|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BasicPluginConfigModel
This object represents a configuration section.
If you specify "_blank" as a resource name (the label for the parameter),
(or use the BLANK_RESOURCE
constant defined here), then this will
be a blank label (available since 3.0.5.3).
Field Summary | |
---|---|
static String |
BLANK_RESOURCE
|
Method Summary | |
---|---|
ActionParameter |
addActionParameter2(String label_resource_name,
String action_resource_name)
|
void |
addBooleanParameter(String key,
String resource_name,
boolean defaultValue)
Deprecated. use addBooleanParameter2 |
BooleanParameter |
addBooleanParameter2(String key,
String resource_name,
boolean defaultValue)
|
ColorParameter |
addColorParameter2(String key,
String resource_name,
int r,
int g,
int b)
|
DirectoryParameter |
addDirectoryParameter2(String key,
String resource_name,
String defaultValue)
|
FileParameter |
addFileParameter2(String key,
String resource_name,
String defaultValue)
|
FileParameter |
addFileParameter2(String key,
String resource_name,
String defaultValue,
String[] file_extensions)
|
HyperlinkParameter |
addHyperlinkParameter2(String resource_name,
String url_location)
|
InfoParameter |
addInfoParameter2(String resource_name,
String value)
|
IntParameter |
addIntParameter2(String key,
String resource_name,
int defaultValue)
|
IntParameter |
addIntParameter2(String key,
String resource_name,
int defaultValue,
int min_value,
int max_value)
|
LabelParameter |
addLabelParameter2(String resource_name)
|
PasswordParameter |
addPasswordParameter2(String key,
String resource_name,
int encoding_type,
byte[] defaultValue)
|
StringListParameter |
addStringListParameter2(String key,
String resource_name,
String[] values,
String defaultValue)
|
StringListParameter |
addStringListParameter2(String key,
String resource_name,
String[] values,
String[] labels,
String defaultValue)
|
void |
addStringParameter(String key,
String resource_name,
String defaultValue)
Deprecated. user addStringParameter2 |
StringParameter |
addStringParameter2(String key,
String resource_name,
String defaultValue)
|
UITextArea |
addTextArea(String resource_name)
|
UIParameter |
addUIParameter2(UIParameterContext context,
String name)
Creates a UIParameter object to add to this config model object. |
ParameterGroup |
createGroup(String resource_name,
Parameter[] parameters)
|
ParameterTabFolder |
createTabFolder()
|
Parameter[] |
getParameters()
Retrieve all the parameters added to this plugin config |
String |
getParentSection()
|
String |
getSection()
|
void |
setLocalizedName(String name)
Sets the name of the configuration model - this is useful in situations where the configuration section is being dynamically created (perhaps with user input). |
Methods inherited from interface org.gudy.azureus2.plugins.ui.model.PluginConfigModel |
---|
destroy, getPluginInterface |
Field Detail |
---|
static final String BLANK_RESOURCE
Method Detail |
---|
void addBooleanParameter(String key, String resource_name, boolean defaultValue)
key
- resource_name
- defaultValue
- void addStringParameter(String key, String resource_name, String defaultValue)
key
- resource_name
- defaultValue
- BooleanParameter addBooleanParameter2(String key, String resource_name, boolean defaultValue)
key
- resource_name
- defaultValue
-
StringParameter addStringParameter2(String key, String resource_name, String defaultValue)
key
- resource_name
- defaultValue
-
StringListParameter addStringListParameter2(String key, String resource_name, String[] values, String defaultValue)
key
- resource_name
- values
- defaultValue
-
StringListParameter addStringListParameter2(String key, String resource_name, String[] values, String[] labels, String defaultValue)
key
- resource_name
- values
- labels
- A list of localised message strings corresponding to each value.defaultValue
-
PasswordParameter addPasswordParameter2(String key, String resource_name, int encoding_type, byte[] defaultValue)
key
- resource_name
- encoding_type
- defaultValue
-
IntParameter addIntParameter2(String key, String resource_name, int defaultValue)
key
- resource_name
- defaultValue
-
IntParameter addIntParameter2(String key, String resource_name, int defaultValue, int min_value, int max_value)
key
- resource_name
- defaultValue
- min_value
- Minimum allowed valuemax_value
- Maximum allowed value
LabelParameter addLabelParameter2(String resource_name)
resource_name
-
InfoParameter addInfoParameter2(String resource_name, String value)
resource_name
- value
-
HyperlinkParameter addHyperlinkParameter2(String resource_name, String url_location)
DirectoryParameter addDirectoryParameter2(String key, String resource_name, String defaultValue)
key
- resource_name
- defaultValue
-
FileParameter addFileParameter2(String key, String resource_name, String defaultValue)
key
- resource_name
- defaultValue
-
FileParameter addFileParameter2(String key, String resource_name, String defaultValue, String[] file_extensions)
key
- resource_name
- defaultValue
- file_extensions
- Allowed list of file extensions.
ActionParameter addActionParameter2(String label_resource_name, String action_resource_name)
label_resource_name
- action_resource_name
-
ColorParameter addColorParameter2(String key, String resource_name, int r, int g, int b)
key
- resource_name
- r
- g
- b
-
UIParameter addUIParameter2(UIParameterContext context, String name)
UIParameter
object to add to this config model object.
UITextArea addTextArea(String resource_name)
ParameterGroup createGroup(String resource_name, Parameter[] parameters)
resource_name
- parameters
-
ParameterTabFolder createTabFolder()
resource_name
-
String getSection()
String getParentSection()
Parameter[] getParameters()
void setLocalizedName(String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |