Class AbstractSetupPanel<T>

    • Field Detail

      • m_ExperimentIO

        protected AbstractExperimentIO<T> m_ExperimentIO
        the handler for loading/saving experiments.
      • m_Modified

        protected boolean m_Modified
        whether the setup has been modified.
      • m_IgnoreChanges

        protected boolean m_IgnoreChanges
        whether to ignored changes.
    • Constructor Detail

      • AbstractSetupPanel

        public AbstractSetupPanel()
    • Method Detail

      • initialize

        protected void initialize()
        For initializing members.
        Overrides:
        initialize in class BasePanel
      • getSetupName

        public abstract String getSetupName()
        Returns the name for this setup panel.
        Returns:
        the name
      • createExperimentIO

        protected abstract AbstractExperimentIO<T> createExperimentIO()
        Creates the handler for the IO, i.e., loading/saving of experiments.
        Returns:
        the handler
      • getExperimentIO

        public AbstractExperimentIO<T> getExperimentIO()
        Returns the handler for the IO, i.e., loading/saving of experiments.
        Returns:
        the handler
      • getExperiment

        public abstract T getExperiment()
        Returns the current experiment.
        Returns:
        the experiment
      • setIgnoreChanges

        public void setIgnoreChanges​(boolean value)
        Sets whether to ignore changes, ie don't set the modified flag.
        Parameters:
        value - true if to ignore changes
      • setExperiment

        public abstract void setExperiment​(T value)
        Sets the experiment to use.
        Parameters:
        value - the experiment
      • handlesExperiment

        public abstract String handlesExperiment​(T exp)
        Checks whether the experiment can be handled.
        Parameters:
        exp - the experiment to check
        Returns:
        null if can handle, otherwise error message
      • setModified

        public void setModified​(boolean value)
        Sets the modified state.
        Parameters:
        value - the modified state
        See Also:
        m_IgnoreChanges
      • isModified

        public boolean isModified()
        Returns whether the setup has been modified.
        Returns:
        true if modified
      • getTabIcon

        public Icon getTabIcon()
        Returns the icon to use in the tabbed pane.
        Returns:
        the icon
      • getPanels

        public static Class[] getPanels()
        Returns a list with classnames of panels.
        Returns:
        the panel classnames