org.gudy.azureus2.ui.swt.config
Class BooleanParameter

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.config.Parameter
      extended by org.gudy.azureus2.ui.swt.config.BooleanParameter
All Implemented Interfaces:
IParameter

public class BooleanParameter
extends Parameter

Author:
Olivier

Field Summary
protected  GenericBooleanParameter delegate
           
 
Fields inherited from class org.gudy.azureus2.ui.swt.config.Parameter
change_listeners, config_adapter
 
Constructor Summary
BooleanParameter(org.eclipse.swt.widgets.Composite composite, java.lang.String name)
           
BooleanParameter(org.eclipse.swt.widgets.Composite composite, java.lang.String name, boolean defaultValue)
          Deprecated. defaultValue should be set via ConfigurationDefaults, not passed by the caller
BooleanParameter(org.eclipse.swt.widgets.Composite composite, java.lang.String name, boolean defaultValue, java.lang.String textKey)
          Deprecated. defaultValue should be set via ConfigurationDefaults, not passed by the caller
BooleanParameter(org.eclipse.swt.widgets.Composite composite, java.lang.String _name, boolean _defaultValue, java.lang.String textKey, IAdditionalActionPerformer actionPerformer)
          Deprecated. defaultValue should be set via ConfigurationDefaults, not passed by the caller
BooleanParameter(org.eclipse.swt.widgets.Composite composite, java.lang.String name, java.lang.String textKey)
           
 
Method Summary
 org.eclipse.swt.widgets.Control getControl()
           
 java.lang.String getName()
           
 java.lang.Object getValueObject()
           
 boolean isInitialised()
           
 java.lang.Boolean isSelected()
           
 void setAdditionalActionPerformer(IAdditionalActionPerformer actionPerformer)
           
 void setLayoutData(java.lang.Object layoutData)
           
 void setName(java.lang.String newName)
           
 void setSelected(boolean selected)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class org.gudy.azureus2.ui.swt.config.Parameter
addChangeListener, getControls, isDisposed, removeChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected GenericBooleanParameter delegate
Constructor Detail

BooleanParameter

public BooleanParameter(org.eclipse.swt.widgets.Composite composite,
                        java.lang.String name)

BooleanParameter

public BooleanParameter(org.eclipse.swt.widgets.Composite composite,
                        java.lang.String name,
                        java.lang.String textKey)

BooleanParameter

public BooleanParameter(org.eclipse.swt.widgets.Composite composite,
                        java.lang.String name,
                        boolean defaultValue,
                        java.lang.String textKey)
Deprecated. defaultValue should be set via ConfigurationDefaults, not passed by the caller


BooleanParameter

public BooleanParameter(org.eclipse.swt.widgets.Composite composite,
                        java.lang.String name,
                        boolean defaultValue)
Deprecated. defaultValue should be set via ConfigurationDefaults, not passed by the caller


BooleanParameter

public BooleanParameter(org.eclipse.swt.widgets.Composite composite,
                        java.lang.String _name,
                        boolean _defaultValue,
                        java.lang.String textKey,
                        IAdditionalActionPerformer actionPerformer)
Deprecated. defaultValue should be set via ConfigurationDefaults, not passed by the caller

Method Detail

isInitialised

public boolean isInitialised()
Overrides:
isInitialised in class Parameter

setLayoutData

public void setLayoutData(java.lang.Object layoutData)

setAdditionalActionPerformer

public void setAdditionalActionPerformer(IAdditionalActionPerformer actionPerformer)

getControl

public org.eclipse.swt.widgets.Control getControl()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String newName)

isSelected

public java.lang.Boolean isSelected()

setSelected

public void setSelected(boolean selected)

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in class Parameter

getValueObject

public java.lang.Object getValueObject()
Overrides:
getValueObject in class Parameter