Class KeyPref

  • All Implemented Interfaces:
    IClientPref

    public class KeyPref
    extends java.lang.Object
    implements IClientPref
    Key preference: 64=none, 1=shift, 2=ctrl, 4=alt (or bitmask).
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      KeyPref​(java.lang.String name, java.lang.String prompt)
      Constructor.
    • Constructor Detail

      • KeyPref

        public KeyPref​(java.lang.String name,
                       java.lang.String prompt)
        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.