|
|||||||||
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.ParameterImpl
public class ParameterImpl
Field Summary | |
---|---|
protected PluginConfigImpl |
config
|
Fields inherited from interface org.gudy.azureus2.plugins.ui.config.Parameter |
---|
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE |
Constructor Summary | |
---|---|
ParameterImpl(PluginConfigImpl _config,
String _key,
String _labelKey)
|
Method Summary | |
---|---|
void |
addConfigParameterListener(ConfigParameterListener l)
|
void |
addDisabledOnSelection(Parameter parameter)
disables parameter when EnablerParameter is selected. parameter is enabled is EnablerParameter isn't selected. |
void |
addEnabledOnSelection(Parameter parameter)
enables parameter when EnablerParameter is selected. parameter is disabled is EnablerParameter isn't selected. |
void |
addImplListener(ParameterImplListener l)
|
void |
addListener(ParameterListener l)
Adds a listener triggered when the parameter is changed by the user |
void |
destroy()
|
protected void |
fireParameterChanged()
|
String |
getConfigKeyName()
|
List |
getDisabledOnSelectionParameters()
|
List |
getEnabledOnSelectionParameters()
|
boolean |
getGenerateIntermediateEvents()
|
ParameterGroupImpl |
getGroup()
|
String |
getKey()
|
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 |
parameterChanged(String key)
Called, when a parameter has changed. |
void |
removeConfigParameterListener(ConfigParameterListener l)
|
void |
removeImplListener(ParameterImplListener l)
|
void |
removeListener(ParameterListener l)
Removes a previously added listener |
void |
setEnabled(boolean e)
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 |
setGroup(ParameterGroupImpl _group)
|
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PluginConfigImpl config
Constructor Detail |
---|
public ParameterImpl(PluginConfigImpl _config, String _key, String _labelKey)
Method Detail |
---|
public String getKey()
public void addDisabledOnSelection(Parameter parameter)
EnablerParameter
addDisabledOnSelection
in interface EnablerParameter
parameter
- the Parameter to act onpublic void addEnabledOnSelection(Parameter parameter)
EnablerParameter
addEnabledOnSelection
in interface EnablerParameter
parameter
- the Parameter to act onpublic List getDisabledOnSelectionParameters()
public List getEnabledOnSelectionParameters()
public void parameterChanged(String key)
ParameterListener
parameterChanged
in interface ParameterListener
key
- the name of the parameter that has changedprotected void fireParameterChanged()
public void setEnabled(boolean e)
Parameter
setEnabled
in interface Parameter
e
- The new enabled statepublic boolean isEnabled()
Parameter
isEnabled
in interface Parameter
public int getMinimumRequiredUserMode()
Parameter
getMinimumRequiredUserMode
in interface Parameter
public void setMinimumRequiredUserMode(int _mode)
Parameter
setMinimumRequiredUserMode
in interface Parameter
_mode
- see MODE_ constants defined abovepublic void setVisible(boolean _visible)
Parameter
setVisible
in interface Parameter
_visible
- The new visibility statepublic boolean isVisible()
Parameter
isVisible
in interface Parameter
public void setGenerateIntermediateEvents(boolean b)
Parameter
setGenerateIntermediateEvents
in interface Parameter
public boolean getGenerateIntermediateEvents()
getGenerateIntermediateEvents
in interface Parameter
public void setGroup(ParameterGroupImpl _group)
public ParameterGroupImpl getGroup()
public void addListener(ParameterListener l)
Parameter
addListener
in interface Parameter
l
- Listener to addpublic void removeListener(ParameterListener l)
Parameter
removeListener
in interface Parameter
l
- Listener to remove.public void addImplListener(ParameterImplListener l)
public void removeImplListener(ParameterImplListener l)
public void addConfigParameterListener(ConfigParameterListener l)
addConfigParameterListener
in interface ConfigParameter
public void removeConfigParameterListener(ConfigParameterListener l)
removeConfigParameterListener
in interface ConfigParameter
public String getLabelText()
Parameter
getLabelText
in interface Parameter
public void setLabelText(String sText)
Parameter
setLabelText
in interface Parameter
sText
- The actual text to assign to the labelpublic String getLabelKey()
Parameter
getLabelKey
in interface Parameter
public void setLabelKey(String sLabelKey)
Parameter
setLabelKey
in interface Parameter
sLabelKey
- The language bundle key to use.public String getConfigKeyName()
getConfigKeyName
in interface Parameter
public boolean hasBeenSet()
hasBeenSet
in interface Parameter
public void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |