Class AbstractSource

    • Constructor Detail

      • AbstractSource

        public AbstractSource()
    • Method Detail

      • setOwner

        public void setOwner​(InvestigatorPanel value)
        Sets the owner for this source.
        Parameters:
        value - the owner
      • getOwner

        public InvestigatorPanel getOwner()
        Returns the owner of this source.
        Returns:
        the owner, null if none set
      • addData

        public void addData​(DataContainer cont)
        Adds the data.
        Parameters:
        cont - the data to add
      • getData

        public List<DataContainer> getData()
        Returns the currently loaded data.
        Returns:
        the data
      • fireDataChange

        public void fireDataChange()
        Notifies all the tabs that the data has changed.
      • logMessage

        public void logMessage​(String msg)
        Logs the message.
        Parameters:
        msg - the log message
      • logError

        public void logError​(String msg,
                             Throwable t,
                             String title)
        Logs the exception and also displays an error dialog.
        Parameters:
        msg - the log message
        t - the exception
        title - the title for the dialog
      • logError

        public void logError​(String msg,
                             String title)
        Logs the error message and also displays an error dialog.
        Parameters:
        msg - the error message
        title - the title for the dialog
      • showStatus

        public void showStatus​(String msg)
        Displays a message.
        Specified by:
        showStatus in interface adams.core.StatusMessageHandler
        Parameters:
        msg - the message to display