java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
All Implemented Interfaces:
EventListener, StandardStrings, org.eclipse.jface.window.IShellProvider, org.eclipse.swt.custom.VerifyKeyListener, org.eclipse.swt.internal.SWTEventListener, org.eclipse.swt.widgets.Listener

public class AddSofaDialog extends AbstractDialogKeyVerify
The Class AddSofaDialog.
  • Field Details

    • sofaName

      public String sofaName
      The sofa name.
    • isInput

      public boolean isInput
      The is input.
  • Constructor Details

    • AddSofaDialog

      public AddSofaDialog(AbstractSection aSection, Capability c)
      Instantiates a new adds the sofa dialog.
      Parameters:
      aSection - the a section
      c - the c
    • AddSofaDialog

      public AddSofaDialog(AbstractSection aSection, Capability c, String aExistingSofa, boolean aIsInput)
      Constructor for Editing an existing Sofa Name.
      Parameters:
      aSection - the a section
      c - the c
      aExistingSofa - the a existing sofa
      aIsInput - the a is input
  • Method Details

    • createDialogArea

      protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
      Overrides:
      createDialogArea in class AbstractDialog
    • copyValuesFromGUI

      public void copyValuesFromGUI()
      Description copied from class: AbstractDialog
      Copy values from GUI.
      Specified by:
      copyValuesFromGUI in class AbstractDialog
    • isValid

      public boolean isValid()
      Duplicate validity check: Duplicates are OK for sofas belonging to other capability sets, provided they have the same Input or Output setting.
      Specified by:
      isValid in class AbstractDialog
      Returns:
      true, if is valid
    • enableOK

      public void enableOK()
      Description copied from class: AbstractDialog
      Enable OK.
      Specified by:
      enableOK in class AbstractDialog
    • verifyKeyChecks

      public boolean verifyKeyChecks(org.eclipse.swt.events.VerifyEvent event)
      Description copied from class: AbstractDialogKeyVerify
      Default verify key checks.
      Overrides:
      verifyKeyChecks in class AbstractDialogKeyVerify
      Parameters:
      event - the event
      Returns:
      true, if successful