Package com.iizigo.clientpref
Class BoolPref
- java.lang.Object
- com.iizigo.clientpref.BoolPref
- All Implemented Interfaces:
IClientPref
public class BoolPref extends java.lang.Object implements IClientPref
Boolean preference.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description BoolPref(java.lang.String name, java.lang.String prompt)Constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringapply(PropCnr settings)Applies the settings.voidcreateContents(org.eclipse.swt.widgets.Composite parent, PropCnr settings, ValidatorManager manager)Creates the contents.voidsetDefaults()Assigns the defaults for the property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.iizigo.clientpref.IClientPref
getHeading
Method Detail
createContents
public void createContents(org.eclipse.swt.widgets.Composite parent, PropCnr settings, ValidatorManager manager)Creates the contents. The parent has a GridLayout of 2 columns and the first column is used for the text prompt.- Specified by:
createContentsin interfaceIClientPref- Parameters:
parent- The parent composite.settings- The property container.manager- The validator manager.
setDefaults
public void setDefaults()
Assigns the defaults for the property.- Specified by:
setDefaultsin interfaceIClientPref
apply
public java.lang.String apply(PropCnr settings)
Applies the settings.- Specified by:
applyin interfaceIClientPref- Parameters:
settings- The settings.- Returns:
- The error if this failed, or null for OK.