Java Doc for Wizard.java in  » J2EE » wicket » wicket » extensions » wizard » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » wicket » wicket.extensions.wizard 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


wicket.markup.html.panel.Panel
   wicket.extensions.wizard.Wizard

All known Subclasses:   wicket.examples.wizard.NewUserWizard,  wicket.examples.wizard.StaticWizardWithPanels,  wicket.examples.wizard.StaticWizard,
Wizard
public class Wizard extends Panel implements IWizardModelListener,IWizard(Code)
A wizard is a dialog component that takes it's users through a number of predefined steps. It has common functionality like a next, previous, finish and cancel button, and it uses a IWizardModel to navigate through the steps.

This default implementation should be useful for basic cases, if the layout is exactly what you need. If you want to provide your own layout and/ or have more or less components (e.g. you want to additionally provide an overview component), you can override this class and add the components you want yourself.

If that's still not enough flexiblity for you, but you want to use the IWizardModel wizard model and IWizardStep wizard step functionality provided in this package, you can provde a custom wizard


author:
   Eelco Hillenius


Field Summary
final public static  StringBUTTONS_ID
     Component id of the buttons panel as used by the default wizard panel.
final public static  StringFEEDBACK_ID
     Component id of the feedback panel as used by the default wizard panel.
final public static  StringHEADER_ID
     Component id of the header panel as used by the default wizard panel.
final public static  StringOVERVIEW_ID
     Component id of the overview panel as used by the default wizard panel.
final public static  StringVIEW_ID
     Component id of the view panel (where the main wizard contents go) as used by the default wizard panel.

Constructor Summary
public  Wizard(String id)
     Construct.
public  Wizard(String id, boolean addDefaultCssStyle)
     Construct.
public  Wizard(String id, IWizardModel wizardModel)
     Construct with a transition model.
public  Wizard(String id, IWizardModel wizardModel, boolean addDefaultCssStyle)
     Construct with a transition model.

Method Summary
final public  voidaddDefaultCssStyle()
     Will let the wizard contribute a CSS include to the page's header.
final public  IWizardStepgetActiveStep()
     Convenience method to get the active step from the model.
final public  FormgetForm()
     Gets the form in which the view is nested, and on which the wizard buttons work.
final public  IWizardModelgetWizardModel()
    
protected  voidinit(IWizardModel wizardModel)
     Initialize this wizard with a transition model.
public  booleanisVersioned()
     Turn versioning off for wizards.
protected  ComponentnewButtonBar(String id)
     Create a new button bar.
protected  FeedbackPanelnewFeedbackPanel(String id)
     Create a new feedback panel.
protected  ComponentnewOverviewBar(String id)
     Create a new overview bar.
public  voidonActiveStepChanged(IWizardStep newStep)
    
public  voidonCancel()
     Called when the wizard is cancelled.
public  voidonFinish()
     Called when the wizard is finished.

Field Detail
BUTTONS_ID
final public static String BUTTONS_ID(Code)
Component id of the buttons panel as used by the default wizard panel.



FEEDBACK_ID
final public static String FEEDBACK_ID(Code)
Component id of the feedback panel as used by the default wizard panel.



HEADER_ID
final public static String HEADER_ID(Code)
Component id of the header panel as used by the default wizard panel.



OVERVIEW_ID
final public static String OVERVIEW_ID(Code)
Component id of the overview panel as used by the default wizard panel.



VIEW_ID
final public static String VIEW_ID(Code)
Component id of the view panel (where the main wizard contents go) as used by the default wizard panel.




Constructor Detail
Wizard
public Wizard(String id)(Code)
Construct. Adds the default style.

If you override this class, it makes sense to call this constructor (super(id)), then - in your constructor - construct a transition model and then call Wizard.init(IWizardModel) to initialize the wizard.

This constructor is not meant for normal clients of this class


Parameters:
  id - The component model



Wizard
public Wizard(String id, boolean addDefaultCssStyle)(Code)
Construct.

If you override this class, it makes sense to call this constructor (super(id)), then - in your constructor - construct a transition model and then call Wizard.init(IWizardModel) to initialize the wizard.

This constructor is not meant for normal clients of this class


Parameters:
  id - The component model
Parameters:
  addDefaultCssStyle - Whether to add the Wizard.addDefaultCssStyle() default style



Wizard
public Wizard(String id, IWizardModel wizardModel)(Code)
Construct with a transition model. Adds the default style.

For most clients, this is typically the right constructor to use.


Parameters:
  id - The component id
Parameters:
  wizardModel - The transitions model



Wizard
public Wizard(String id, IWizardModel wizardModel, boolean addDefaultCssStyle)(Code)
Construct with a transition model.

For most clients, this is typically the right constructor to use.


Parameters:
  id - The component id
Parameters:
  wizardModel - The transitions model
Parameters:
  addDefaultCssStyle - Whether to add the Wizard.addDefaultCssStyle() default style




Method Detail
addDefaultCssStyle
final public void addDefaultCssStyle()(Code)
Will let the wizard contribute a CSS include to the page's header. It will add Wizard.css from this package. This method is typically called by the class that creates the wizard.



getActiveStep
final public IWizardStep getActiveStep()(Code)
Convenience method to get the active step from the model. The active step



getForm
final public Form getForm()(Code)
Gets the form in which the view is nested, and on which the wizard buttons work. The wizard form



getWizardModel
final public IWizardModel getWizardModel()(Code)

See Also:   wicket.extensions.wizard.IWizard.getWizardModel



init
protected void init(IWizardModel wizardModel)(Code)
Initialize this wizard with a transition model.

If you constructed this wizard using a constructor without the transitions model argument, you must call this method prior to actually using it.


Parameters:
  wizardModel -



isVersioned
public boolean isVersioned()(Code)
Turn versioning off for wizards. This works best when the wizard is not accessed from bookmarkable pages, so that the url doesn't change at all. False
See Also:   wicket.Component.isVersioned



newButtonBar
protected Component newButtonBar(String id)(Code)
Create a new button bar. Clients can override this method to provide a custom button bar.
Parameters:
  id - The id to be used to construct the component A new button bar



newFeedbackPanel
protected FeedbackPanel newFeedbackPanel(String id)(Code)
Create a new feedback panel. Clients can override this method to provide a custom feedback panel.
Parameters:
  id - The id to be used to construct the component A new feedback panel



newOverviewBar
protected Component newOverviewBar(String id)(Code)
Create a new overview bar. Clients can override this method to provide a custom bar.
Parameters:
  id - The id to be used to construct the component A new ovewview bar



onActiveStepChanged
public void onActiveStepChanged(IWizardStep newStep)(Code)

See Also:   wicket.extensions.wizard.IWizardModelListener.onActiveStepChanged(wicket.extensions.wizard.IWizardStep)



onCancel
public void onCancel()(Code)
Called when the wizard is cancelled.



onFinish
public void onFinish()(Code)
Called when the wizard is finished.



Methods inherited from wicket.markup.html.panel.Panel
protected void onComponentTag(ComponentTag tag)(Code)(Java Doc)
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)(Code)(Java Doc)
public void renderHead(HtmlHeaderContainer container)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.