Class ColorPref

  • All Implemented Interfaces:
    IClientPref

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

      Constructors 
      ConstructorDescription
      ColorPref​(java.lang.String name, java.lang.String prompt, boolean isTransparent)
      Constructor.
    • Constructor Detail

      • ColorPref

        public ColorPref​(java.lang.String name,
                         java.lang.String prompt,
                         boolean isTransparent)
        Constructor.
    • 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:
        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 java.lang.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.