Methods Summary |
---|
public void | addConfigParameterListener(ConfigParameterListener l)
listeners.add(l);
if ( listeners.size() == 1 ){
COConfigurationManager.addParameterListener( key, this );
}
|
public void | addDisabledOnSelection(org.gudy.azureus2.plugins.ui.config.Parameter parameter)
toDisable.add(parameter);
|
public void | addEnabledOnSelection(org.gudy.azureus2.plugins.ui.config.Parameter parameter)
toEnable.add(parameter);
|
public void | addImplListener(ParameterImplListener l)
impl_listeners.add(l);
|
public void | addListener(org.gudy.azureus2.plugins.ui.config.ParameterListener l)
listeners.add(l);
if ( listeners.size() == 1 ){
COConfigurationManager.addParameterListener( key, this );
}
|
public void | destroy()
listeners.clear();
impl_listeners.clear();
toDisable.clear();
toEnable.clear();
COConfigurationManager.removeParameterListener( key, this );
|
public java.util.List | getDisabledOnSelectionParameters()
return toDisable;
|
public java.util.List | getEnabledOnSelectionParameters()
return toEnable;
|
public ParameterGroupImpl | getGroup()
return( parameter_group );
|
public java.lang.String | getKey()
return key;
|
public java.lang.String | getLabelKey()
return labelKey;
|
public java.lang.String | getLabelText()
return label;
|
public boolean | isEnabled()
return( enabled );
|
public boolean | isVisible()
return( visible );
|
public void | parameterChanged(java.lang.String key)
for (int i=0;i<listeners.size();i++){
Object o = listeners.get(i);
if ( o instanceof ParameterListener ){
((ParameterListener)o).parameterChanged( this );
}else{
((ConfigParameterListener)o).configParameterChanged( this );
}
}
|
public void | removeConfigParameterListener(ConfigParameterListener l)
listeners.remove(l);
if ( listeners.size() == 0 ){
COConfigurationManager.removeParameterListener( key, this );
}
|
public void | removeImplListener(ParameterImplListener l)
impl_listeners.remove(l);
|
public void | removeListener(org.gudy.azureus2.plugins.ui.config.ParameterListener l)
listeners.remove(l);
if ( listeners.size() == 0 ){
COConfigurationManager.removeParameterListener( key, this );
}
|
public void | setEnabled(boolean e)
enabled = e;
for (int i=0;i<impl_listeners.size();i++){
try{
((ParameterImplListener)impl_listeners.get(i)).enabledChanged( this );
}catch( Throwable f ){
Debug.printStackTrace(f);
}
}
|
public void | setGroup(ParameterGroupImpl _group)
parameter_group = _group;
|
public void | setLabelKey(java.lang.String sLabelKey)
labelKey = sLabelKey;
label = MessageText.getString(sLabelKey);
for (int i = 0; i < impl_listeners.size(); i++) {
try {
((ParameterImplListener) impl_listeners.get(i)).labelChanged(this,
labelKey, true);
} catch (Throwable f) {
Debug.printStackTrace(f);
}
}
|
public void | setLabelText(java.lang.String sText)
labelKey = null;
label = sText;
for (int i=0;i<impl_listeners.size();i++){
try{
((ParameterImplListener)impl_listeners.get(i)).labelChanged(this, sText, false);
}catch( Throwable f ){
Debug.printStackTrace(f);
}
}
|
public void | setVisible(boolean _visible)
visible = _visible;
|