This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 30216

Summary: Support for Summary panel in new wizard framework
Product: platform Reporter: akemr <akemr>
Component: Dialogs&WizardsAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: asunhachawee, pjiricka, sgleason
Priority: P3 Keywords: API, UI
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 26552    
Bug Blocks:    

Description akemr 2003-01-20 08:43:24 UTC
In new planned wizard framework, could it be
possible to support last Summary panel to solve
following use case?

Use case:
1. User works through the web module wizard.
2. At any point, they may click the Finish button.
3. The wizard window *should not close*, but
should display the Summary page which describes
what has been generated for them. This last panel
have to not display "Finish" or "Back" buttons,
only Close
4. Clicking the "Close" button on the summary
panel will close the Wizard window.

Jeff Hoffman wrote:
> the Summary panel should be displayed after the
Finish 
button has been clicked.  According to the Java
Look and Feel Design Guidelines: Advanced Topics
(see 
http://java.sun.com/products/jlf/at/book/Wizards5.html#51644),
the Summary page should appear in the Wizard
window with only the Close button.
Comment 1 Petr Jiricka 2003-04-18 15:12:41 UTC
I suggest the following solution:

Create a new interface WizardDescriptor.SummaryPanel:

    /** A special interface for panels which are the
    * last panel in the sequence and want to have the 
    * Close button instead of Previous/Next/Finish
    * The panel which precedes this panel must implement
    * the FinishBeforeSummaryPanel interface (see below)
    */
    public interface SummaryPanel extends Panel {
    }

Also create a new interface FinishBeforeSummaryPanel:

    /* A panel which is the last before the Summary panel.
     * The successor panel (if there is one) must implement
     * SummaryPanel.
     */
    public interface SummaryPanel extends FinishPanel {
    }

The wizard infrastructure behavior will change as follows:

- a panel which implements FinishBeforeSummaryPanel will 
have the Finish button enabled, and the Next button 
disabled.

- a panel which implements SummaryPanel will have only the 
Close button (and no other buttons).

Comment 2 Jiri Rechtacek 2005-02-14 09:03:54 UTC
*** Issue 54909 has been marked as a duplicate of this issue. ***
Comment 3 Jiri Rechtacek 2008-10-16 15:13:06 UTC

*** This issue has been marked as a duplicate of 54908 ***