|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Parameter
represents a generic parameter description
Field Summary | |
---|---|
static int |
MODE_ADVANCED
|
static int |
MODE_BEGINNER
|
static int |
MODE_INTERMEDIATE
|
Method Summary | |
---|---|
void |
addListener(ParameterListener l)
Adds a listener triggered when the parameter is changed by the user |
java.lang.String |
getConfigKeyName()
|
boolean |
getGenerateIntermediateEvents()
|
java.lang.String |
getLabelKey()
Retrieve the language bundle key for the label associated with this parameter. |
java.lang.String |
getLabelText()
Retrieve the actual text of the label associated with this parameter. |
int |
getMinimumRequiredUserMode()
Gets the lowest user mode required for this parameter to be displayed. |
boolean |
hasBeenSet()
|
boolean |
isEnabled()
Retrieves the enabled state for the UI object for this parameter |
boolean |
isVisible()
Retrieves the visiblility state for the UI object for this parameter |
void |
removeListener(ParameterListener l)
Removes a previously added listener |
void |
setEnabled(boolean enabled)
Sets whether the UI object for this parameter is enabled (changeable) or disabled (not changeable, and usually grayed out) |
void |
setGenerateIntermediateEvents(boolean b)
Controls whether or not 'parameter change' events are fired for each incremental value change |
void |
setLabelKey(java.lang.String sLabelKey)
Set the label to use the supplied language bundle key for the label associated with this parameter |
void |
setLabelText(java.lang.String sText)
Set the text of the label associated to with this parameter to the literal text supplied. |
void |
setMinimumRequiredUserMode(int mode)
Sets the lowest user mode required for this parameter to be displayed. |
void |
setVisible(boolean visible)
Sets whether the UI object for this parameter is visible to the user |
Methods inherited from interface org.gudy.azureus2.plugins.config.ConfigParameter |
---|
addConfigParameterListener, removeConfigParameterListener |
Field Detail |
---|
static final int MODE_BEGINNER
static final int MODE_INTERMEDIATE
static final int MODE_ADVANCED
Method Detail |
---|
void setEnabled(boolean enabled)
enabled
- The new enabled stateboolean isEnabled()
int getMinimumRequiredUserMode()
void setMinimumRequiredUserMode(int mode)
mode
- see MODE_ constants defined abovevoid setVisible(boolean visible)
visible
- The new visibility stateboolean isVisible()
void setGenerateIntermediateEvents(boolean b)
b
- boolean getGenerateIntermediateEvents()
void addListener(ParameterListener l)
l
- Listener to addvoid removeListener(ParameterListener l)
l
- Listener to remove.java.lang.String getLabelText()
void setLabelText(java.lang.String sText)
sText
- The actual text to assign to the labeljava.lang.String getLabelKey()
void setLabelKey(java.lang.String sLabelKey)
sLabelKey
- The language bundle key to use.java.lang.String getConfigKeyName()
boolean hasBeenSet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |