Class ModificationDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ModificationDialog
extends JDialog
This dialog allows the user to create/edit Modifications.
Author:
Marc Vaudel, Harald Barsnes
See Also:
Serialized Form
  • Constructor Details

    • ModificationDialog

      public ModificationDialog​(JDialog parent, Modification currentModification, boolean editable)
      Creates a new Modification dialog.
      Parameters:
      parent - the JDialog parent
      currentModification - the Modification to edit (can be null)
      editable - boolean indicating whether the user can edit the Modification details
    • ModificationDialog

      public ModificationDialog​(JFrame parent, PtmToPrideMap modificationToPrideMap, Modification currentModification, boolean editable)
      Creates a new Modification dialog.
      Parameters:
      parent - the JFrame parent
      modificationToPrideMap - the Modification to PRIDE map
      currentModification - the Modification to edit (can be null)
      editable - boolean indicating whether the user can edit the Modification details
  • Method Details

    • isCanceled

      public boolean isCanceled()
      Indicates whether the edition was canceled by the user.
      Returns:
      a boolean indicating whether the edition was canceled by the user