Class WizardPaneWithBranches

    • Constructor Detail

      • WizardPaneWithBranches

        public WizardPaneWithBranches()
        Initializes the wizard with no ID.
      • WizardPaneWithBranches

        public WizardPaneWithBranches​(String id)
        Initializes the wizard.
        Parameters:
        id - the ID of the wizard, used for logging purposes
    • Method Detail

      • findNode

        protected DefaultMutableTreeNode findNode​(AbstractWizardPage page)
        Finds the node associated with the specified page.
        Parameters:
        page - the page to get the node for
        Returns:
        the node, null if failed to locate
      • addPage

        public void addPage​(AbstractWizardPage parent,
                            AbstractWizardPage page)
        Adds the page under the given name. Uses the specified parent.
        Parameters:
        parent - the parent, null for root
        page - the page
      • removePage

        public void removePage​(AbstractWizardPage page)
        Removes the page (and all its subsequent pages).
        Parameters:
        page - the page to remove
      • markFinalPage

        public void markFinalPage​(AbstractWizardPage page)
        Marks the page as a final one (for the finish button to be displayed).
        Parameters:
        page - the page
      • unmarkFinalPage

        public void unmarkFinalPage​(AbstractWizardPage page)
        Unmarks the page as a final one (for the finish button to be displayed).
        Parameters:
        page - the page
      • setSelectedPage

        public void setSelectedPage​(AbstractWizardPage page)
        Sets the specified page as active one.
        Parameters:
        page - the page to use as active page
      • getChildPages

        public AbstractWizardPage[] getChildPages​(AbstractWizardPage page)
        Returns all the child pages for the specified page.
        Parameters:
        page - the page to get the children for
        Returns:
        the children
      • main

        public static void main​(String[] args)
        For testing only.
        Parameters:
        args - ignored