org.gudy.azureus2.plugins.ui.config
Interface Parameter

All Superinterfaces:
ConfigParameter
All Known Subinterfaces:
ActionParameter, BooleanParameter, ColorParameter, DirectoryParameter, EnablerParameter, FileParameter, HyperlinkParameter, InfoParameter, IntParameter, LabelParameter, ParameterGroup, ParameterTabFolder, PasswordParameter, StringListParameter, StringParameter, UIParameter
All Known Implementing Classes:
ActionParameterImpl, BooleanParameterImpl, ColorParameter, ColorParameterImpl, DirectoryParameterImpl, FileParameter, HyperlinkParameterImpl, InfoParameterImpl, IntParameterImpl, IntsParameter, LabelParameterImpl, ParameterGroupImpl, ParameterImpl, ParameterTabFolderImpl, PasswordParameterImpl, StringListParameterImpl, StringParameterImpl, UIParameterImpl, UITextAreaImpl

public interface Parameter
extends ConfigParameter

represents a generic parameter description

Author:
Olivier

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
 String getConfigKeyName()
           
 boolean getGenerateIntermediateEvents()
           
 String getLabelKey()
          Retrieve the language bundle key for the label associated with this parameter.
 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(String sLabelKey)
          Set the label to use the supplied language bundle key for the label associated with this parameter
 void setLabelText(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

MODE_BEGINNER

static final int MODE_BEGINNER
See Also:
Constant Field Values

MODE_INTERMEDIATE

static final int MODE_INTERMEDIATE
See Also:
Constant Field Values

MODE_ADVANCED

static final int MODE_ADVANCED
See Also:
Constant Field Values
Method Detail

setEnabled

void setEnabled(boolean enabled)
Sets whether the UI object for this parameter is enabled (changeable) or disabled (not changeable, and usually grayed out)

Parameters:
enabled - The new enabled state
Since:
2.3.0.0

isEnabled

boolean isEnabled()
Retrieves the enabled state for the UI object for this parameter

Returns:
The enabled state
Since:
2.3.0.0

getMinimumRequiredUserMode

int getMinimumRequiredUserMode()
Gets the lowest user mode required for this parameter to be displayed.

Returns:
MODE_ constants above
Since:
3.0.5.3

setMinimumRequiredUserMode

void setMinimumRequiredUserMode(int mode)
Sets the lowest user mode required for this parameter to be displayed.

Parameters:
mode - see MODE_ constants defined above
Since:
3.0.5.3

setVisible

void setVisible(boolean visible)
Sets whether the UI object for this parameter is visible to the user

Parameters:
visible - The new visibility state
Since:
2.3.0.4

isVisible

boolean isVisible()
Retrieves the visiblility state for the UI object for this parameter

Returns:
The visibility state
Since:
2.3.0.4

setGenerateIntermediateEvents

void setGenerateIntermediateEvents(boolean b)
Controls whether or not 'parameter change' events are fired for each incremental value change

Parameters:
b -
Since:
3.0.5.1

getGenerateIntermediateEvents

boolean getGenerateIntermediateEvents()
Returns:
Since:
3.0.5.1

addListener

void addListener(ParameterListener l)
Adds a listener triggered when the parameter is changed by the user

Parameters:
l - Listener to add
Since:
2.1.0.2

removeListener

void removeListener(ParameterListener l)
Removes a previously added listener

Parameters:
l - Listener to remove.
Since:
2.1.0.2

getLabelText

String getLabelText()
Retrieve the actual text of the label associated with this parameter. This is the text after it has been looked up in the language bundle.

Returns:
The label's text
Since:
2.3.0.6

setLabelText

void setLabelText(String sText)
Set the text of the label associated to with this parameter to the literal text supplied.

Parameters:
sText - The actual text to assign to the label
Since:
2.3.0.6

getLabelKey

String getLabelKey()
Retrieve the language bundle key for the label associated with this parameter.

Returns:
The language bundle key, or null if the label is using literal text
Since:
2.3.0.6

setLabelKey

void setLabelKey(String sLabelKey)
Set the label to use the supplied language bundle key for the label associated with this parameter

Parameters:
sLabelKey - The language bundle key to use.
Since:
2.3.0.6

getConfigKeyName

String getConfigKeyName()

hasBeenSet

boolean hasBeenSet()