Class ColorPref

java.lang.Object
com.iizigo.clientpref.ColorPref
All Implemented Interfaces:
IClientPref

public class ColorPref extends Object implements IClientPref
Color preference.
Author:
Christopher Mindus
  • Constructor Details

    • ColorPref

      public ColorPref(String name, String prompt, boolean isTransparent)
      Constructor.
  • Method Details

    • createContents

      public void createContents(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:
      createContents in interface IClientPref
      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:
      setDefaults in interface IClientPref
    • apply

      public String apply(PropCnr settings)
      Applies the settings.
      Specified by:
      apply in interface IClientPref
      Parameters:
      settings - The settings.
      Returns:
      The error if this failed, or null for OK.