|
|||||||||
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 java.lang.String |
BLANK_RESOURCE
|
Method Summary | |
---|---|
ActionParameter |
addActionParameter2(java.lang.String label_resource_name,
java.lang.String action_resource_name)
|
void |
addBooleanParameter(java.lang.String key,
java.lang.String resource_name,
boolean defaultValue)
Deprecated. use addBooleanParameter2 |
BooleanParameter |
addBooleanParameter2(java.lang.String key,
java.lang.String resource_name,
boolean defaultValue)
|
ColorParameter |
addColorParameter2(java.lang.String key,
java.lang.String resource_name,
int r,
int g,
int b)
|
DirectoryParameter |
addDirectoryParameter2(java.lang.String key,
java.lang.String resource_name,
java.lang.String defaultValue)
|
FileParameter |
addFileParameter2(java.lang.String key,
java.lang.String resource_name,
java.lang.String defaultValue)
|
FileParameter |
addFileParameter2(java.lang.String key,
java.lang.String resource_name,
java.lang.String defaultValue,
java.lang.String[] file_extensions)
|
HyperlinkParameter |
addHyperlinkParameter2(java.lang.String resource_name,
java.lang.String url_location)
|
InfoParameter |
addInfoParameter2(java.lang.String resource_name,
java.lang.String value)
|
IntParameter |
addIntParameter2(java.lang.String key,
java.lang.String resource_name,
int defaultValue)
|
IntParameter |
addIntParameter2(java.lang.String key,
java.lang.String resource_name,
int defaultValue,
int min_value,
int max_value)
|
LabelParameter |
addLabelParameter2(java.lang.String resource_name)
|
PasswordParameter |
addPasswordParameter2(java.lang.String key,
java.lang.String resource_name,
int encoding_type,
byte[] defaultValue)
|
StringListParameter |
addStringListParameter2(java.lang.String key,
java.lang.String resource_name,
java.lang.String[] values,
java.lang.String defaultValue)
|
StringListParameter |
addStringListParameter2(java.lang.String key,
java.lang.String resource_name,
java.lang.String[] values,
java.lang.String[] labels,
java.lang.String defaultValue)
|
void |
addStringParameter(java.lang.String key,
java.lang.String resource_name,
java.lang.String defaultValue)
Deprecated. user addStringParameter2 |
StringParameter |
addStringParameter2(java.lang.String key,
java.lang.String resource_name,
java.lang.String defaultValue)
|
UITextArea |
addTextArea(java.lang.String resource_name)
|
UIParameter |
addUIParameter2(UIParameterContext context,
java.lang.String name)
Creates a UIParameter object to add to this config model object. |
ParameterGroup |
createGroup(java.lang.String resource_name,
Parameter[] parameters)
|
ParameterTabFolder |
createTabFolder()
|
Parameter[] |
getParameters()
Retrieve all the parameters added to this plugin config |
java.lang.String |
getParentSection()
|
java.lang.String |
getSection()
|
void |
setLocalizedName(java.lang.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 java.lang.String BLANK_RESOURCE
Method Detail |
---|
void addBooleanParameter(java.lang.String key, java.lang.String resource_name, boolean defaultValue)
key
- resource_name
- defaultValue
- void addStringParameter(java.lang.String key, java.lang.String resource_name, java.lang.String defaultValue)
key
- resource_name
- defaultValue
- BooleanParameter addBooleanParameter2(java.lang.String key, java.lang.String resource_name, boolean defaultValue)
key
- resource_name
- defaultValue
-
StringParameter addStringParameter2(java.lang.String key, java.lang.String resource_name, java.lang.String defaultValue)
key
- resource_name
- defaultValue
-
StringListParameter addStringListParameter2(java.lang.String key, java.lang.String resource_name, java.lang.String[] values, java.lang.String defaultValue)
key
- resource_name
- values
- defaultValue
-
StringListParameter addStringListParameter2(java.lang.String key, java.lang.String resource_name, java.lang.String[] values, java.lang.String[] labels, java.lang.String defaultValue)
key
- resource_name
- values
- labels
- A list of localised message strings corresponding to each value.defaultValue
-
PasswordParameter addPasswordParameter2(java.lang.String key, java.lang.String resource_name, int encoding_type, byte[] defaultValue)
key
- resource_name
- encoding_type
- defaultValue
-
IntParameter addIntParameter2(java.lang.String key, java.lang.String resource_name, int defaultValue)
key
- resource_name
- defaultValue
-
IntParameter addIntParameter2(java.lang.String key, java.lang.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(java.lang.String resource_name)
resource_name
-
InfoParameter addInfoParameter2(java.lang.String resource_name, java.lang.String value)
resource_name
- value
-
HyperlinkParameter addHyperlinkParameter2(java.lang.String resource_name, java.lang.String url_location)
DirectoryParameter addDirectoryParameter2(java.lang.String key, java.lang.String resource_name, java.lang.String defaultValue)
key
- resource_name
- defaultValue
-
FileParameter addFileParameter2(java.lang.String key, java.lang.String resource_name, java.lang.String defaultValue)
key
- resource_name
- defaultValue
-
FileParameter addFileParameter2(java.lang.String key, java.lang.String resource_name, java.lang.String defaultValue, java.lang.String[] file_extensions)
key
- resource_name
- defaultValue
- file_extensions
- Allowed list of file extensions.
ActionParameter addActionParameter2(java.lang.String label_resource_name, java.lang.String action_resource_name)
label_resource_name
- action_resource_name
-
ColorParameter addColorParameter2(java.lang.String key, java.lang.String resource_name, int r, int g, int b)
key
- resource_name
- r
- g
- b
-
UIParameter addUIParameter2(UIParameterContext context, java.lang.String name)
UIParameter
object to add to this config model object.
UITextArea addTextArea(java.lang.String resource_name)
ParameterGroup createGroup(java.lang.String resource_name, Parameter[] parameters)
resource_name
- parameters
-
ParameterTabFolder createTabFolder()
resource_name
-
java.lang.String getSection()
java.lang.String getParentSection()
Parameter[] getParameters()
void setLocalizedName(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |