Class AbstractSequenceTaskPanel

    • Constructor Detail

      • AbstractSequenceTaskPanel

        public AbstractSequenceTaskPanel​(SequenceTaskController taskController)
        Task controller constructor.
        Parameters:
        taskController - The object controlling the sequence task.
        Throws:
        java.lang.NullPointerException - if the given task controller is null.
    • Method Detail

      • isDistinctAdvance

        public boolean isDistinctAdvance()
        Returns:
        Whether the advance buttons are distinct or dual-duty; this defaults to false.
      • setDistinctAdvance

        public void setDistinctAdvance​(boolean newDistinctAdvance)
        Sets whether the advance buttons are distinct or dual-duty. This method updates the toolbar if this property changes.
        Parameters:
        newDistinctAdvance - true if there should be distinct buttons for start, next, and finish, or false if one button should share these responsibilities.
      • getTaskController

        public SequenceTaskController getTaskController()
        Returns:
        The object controlling the sequence task.
      • configureToolbar

        protected void configureToolbar()
        Clears and the appropriate components to the toolbar based upon the current settings.
        See Also:
        isDistinctAdvance()
      • onSequenceIndexChange

        protected void onSequenceIndexChange​(int oldIndex,
                                             int newIndex)
        Called after the sequence index changes. Any derived class that overrides this method should call this version.
        Parameters:
        oldIndex - The old index, or -1 if there was no old index.
        newIndex - The new index, or -1 if there was no new index.