BooleanParameterpublic class BooleanParameter extends Parameter
Fields Summary |
---|
protected org.gudy.azureus2.ui.swt.config.generic.GenericBooleanParameter | delegate |
Constructors Summary |
---|
public BooleanParameter(org.eclipse.swt.widgets.Composite composite, String name)
super(name);
delegate = new GenericBooleanParameter( config_adapter, composite,name,COConfigurationManager.getBooleanParameter(name),null,null);
| public BooleanParameter(org.eclipse.swt.widgets.Composite composite, String name, String textKey)
super(name);
delegate = new GenericBooleanParameter( config_adapter, composite, name, COConfigurationManager.getBooleanParameter(name),
textKey, null);
| public BooleanParameter(org.eclipse.swt.widgets.Composite composite, String name, boolean defaultValue, String textKey)
super(name);
delegate = new GenericBooleanParameter( config_adapter, composite,name,defaultValue,textKey,null);
| public BooleanParameter(org.eclipse.swt.widgets.Composite composite, String name, boolean defaultValue)
super(name);
delegate = new GenericBooleanParameter( config_adapter, composite,name,defaultValue,null,null);
| public BooleanParameter(org.eclipse.swt.widgets.Composite composite, String _name, boolean _defaultValue, String textKey, IAdditionalActionPerformer actionPerformer)
super(_name);
delegate = new GenericBooleanParameter( config_adapter, composite, _name, _defaultValue, textKey, actionPerformer );
|
Methods Summary |
---|
public org.eclipse.swt.widgets.Control | getControl()
return delegate.getControl();
| public java.lang.String | getName()
return delegate.getName();
| public java.lang.Object | getValueObject()
return new Boolean(isSelected());
| public boolean | isSelected()
return(delegate.isSelected());
| public void | setAdditionalActionPerformer(IAdditionalActionPerformer actionPerformer)
delegate.setAdditionalActionPerformer( actionPerformer );
| public void | setLayoutData(java.lang.Object layoutData)
delegate.setLayoutData( layoutData );
| public void | setName(java.lang.String newName)
delegate.setName( newName );
| public void | setSelected(boolean selected)
delegate.setSelected( selected );
| public void | setValue(java.lang.Object value)
if (value instanceof Boolean) {
setSelected(((Boolean)value).booleanValue());
}
|
|