Class JDialogDataProvenance

All Implemented Interfaces:
ProvenanceChangeListener, DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogDataProvenance extends JDialogBase implements ProvenanceChangeListener
Simple dialog used to show the image or system data provenance (by passing in a provenanceholder Displays data in table format, and the currently selected item will show up in the JTextArea (not editable, but selectable)
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • dpColumnNames

      public static final String[] dpColumnNames
      Column names for data provenance
    • DEFAULT_SIZE

      protected final Dimension DEFAULT_SIZE
      Describes the initial size of the textual display area when the dialog is created. The value is given in pixel size rather than the number of characters since the display area has no characters to display.
    • buttonPanel

      private JPanel buttonPanel
      DOCUMENT ME!
    • scrollPane

      private JScrollPane scrollPane
      DOCUMENT ME!
    • textArea

      private JTextArea textArea
      DOCUMENT ME!
    • pHolder

      private ProvenanceHolder pHolder
      The provenance holder to display (or inject provenance data for "open provenance")
    • dpModel

      private ViewTableModel dpModel
      The table model
    • isSystem

      private boolean isSystem
      boolean determining if this is the system's data provenance, or an open image's
    • path

      private String path
      The path to the provenance file
  • Constructor Details

    • JDialogDataProvenance

      public JDialogDataProvenance(Frame parent, String name, String pth, ProvenanceHolder ph, boolean is_system)
      Default constructor for displaying data provenance (image or system)
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the "Close" button is pressed.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggers this function.
    • provenanceStateChanged

      public void provenanceStateChanged(ProvenanceChangeEvent e)
      Update the dialog with the new provenance entry
      Specified by:
      provenanceStateChanged in interface ProvenanceChangeListener
      Parameters:
      e - the provenance change event
    • init

      private void init(String title)
      Initializes the dialog box to a certain size and adds the components.
      Parameters:
      title - Title of the dialog box.
    • save

      private void save()
    • open

      private void open()
    • addProvenanceData

      private void addProvenanceData(ProvenanceEntry entry)
      Adds an entry to the Model (shows on table)
      Parameters:
      entry - a provenance entry