Class LinePref

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

public class LinePref extends Object implements IClientPref
Line preference.
Author:
Christopher Mindus
  • Constructor Details

    • LinePref

      public LinePref(String name, String prompt)
      Constructor.
  • Method Details

    • 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 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.