Java Doc for IWizardModel.java in  » J2EE » wicket » org » apache » 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 » org.apache.wicket.extensions.wizard 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.wicket.extensions.wizard.IWizardModel

All known Subclasses:   org.apache.wicket.extensions.wizard.AbstractWizardModel,
IWizardModel
public interface IWizardModel extends IClusterable(Code)
This interface defines the model for wizards. This model knows about the wizard's steps and the transitions between them, and it holds a reference to the currently active step. It might function as a generic state holder for the wizard too, though you might find it more convenient to use the wizard component itself for that, or even an external model.

IWizardModelListener wizard model listeners can be registered to be notified of important events (changing the active step) using the IWizardModel.addListener(IWizardModelListener) add listener method.

Typically, you would use WizardModel the default implementation of this interface , but if you need to do more sophisticated stuff, like branching etc, you can consider creating your own implementation. In that case, it is recommended you start by extending from AbstractWizardModel .

Swing Wizard Framework served as a valuable source of inspiration.


See Also:   AbstractWizardModel
See Also:   WizardModel
author:
   Eelco Hillenius




Method Summary
 voidaddListener(IWizardModelListener listener)
     Adds a wizard model listener.
 voidcancel()
     Cancels further processing.
 voidfinish()
     Instructs the wizard to finish succesfully.
 IWizardStepgetActiveStep()
     Gets the current active step the wizard should display.
 booleanisCancelVisible()
     Gets whether the cancel button should be displayed.
 booleanisLastAvailable()
     Checks if the last button should be enabled.
 booleanisLastStep(IWizardStep step)
     Gets whether the specified step is the last step in the wizard.
 booleanisLastVisible()
     Gets whether the last button should be displayed.
 booleanisNextAvailable()
     Gets whether the next button should be enabled.
 booleanisPreviousAvailable()
     Gets whether the previous button should be enabled.
 voidlast()
     Takes the model to the last step in the wizard.
 voidnext()
     Increments the model to the next step.
 voidprevious()
     Takes the model to the previous step.This method must only be called if IWizardModel.isPreviousAvailable returns true.
 voidremoveListener(IWizardModelListener listener)
     Removes a wizard model listener.
 voidreset()
     Resets the model, setting it to the first step.
 IteratorstepIterator()
     Returns an iterator over all the steps in the model.



Method Detail
addListener
void addListener(IWizardModelListener listener)(Code)
Adds a wizard model listener.
Parameters:
  listener - The wizard model listener to add



cancel
void cancel()(Code)
Cancels further processing. Implementations may clean up and reset the model. Implementations should notify the registered IWizardModelListener.onCancel model listeners .



finish
void finish()(Code)
Instructs the wizard to finish succesfully. Typically, implementations check whether this option is available at all. Implementations may clean up and reset the model. Implementations should notify the registered IWizardModelListener.onFinish model listeners .



getActiveStep
IWizardStep getActiveStep()(Code)
Gets the current active step the wizard should display. the active step.



isCancelVisible
boolean isCancelVisible()(Code)
Gets whether the cancel button should be displayed. True if the cancel button should be displayed



isLastAvailable
boolean isLastAvailable()(Code)
Checks if the last button should be enabled. true if the last button should be enabled,false otherwise.
See Also:   IWizardModel.isLastVisible



isLastStep
boolean isLastStep(IWizardStep step)(Code)
Gets whether the specified step is the last step in the wizard.
Parameters:
  step - the step to check True if its the final step in the wizard, false< otherwise.



isLastVisible
boolean isLastVisible()(Code)
Gets whether the last button should be displayed. This method should only return true if the IWizardModel.isLastAvailable will return true at any point. Returning false will prevent the last button from appearing on the wizard at all. True if the last button should be displayed, False otherwise.



isNextAvailable
boolean isNextAvailable()(Code)
Gets whether the next button should be enabled. True if the next button should be enabled, false otherwise.



isPreviousAvailable
boolean isPreviousAvailable()(Code)
Gets whether the previous button should be enabled. True if the previous button should be enabled, false otherwise.



last
void last()(Code)
Takes the model to the last step in the wizard. This method must only be called if IWizardModel.isLastAvailable returns true. Implementors should notify IWizardModelListener listeners through calling IWizardModelListener.onActiveStepChanged(IWizardStep) .



next
void next()(Code)
Increments the model to the next step. This method must only be called if IWizardModel.isNextAvailable returns true. Implementors should notify IWizardModelListener listeners through calling IWizardModelListener.onActiveStepChanged(IWizardStep) .



previous
void previous()(Code)
Takes the model to the previous step.This method must only be called if IWizardModel.isPreviousAvailable returns true. Implementors should notify IWizardModelListener listeners through calling IWizardModelListener.onActiveStepChanged(IWizardStep) .



removeListener
void removeListener(IWizardModelListener listener)(Code)
Removes a wizard model listener.
Parameters:
  listener - The listener to remove



reset
void reset()(Code)
Resets the model, setting it to the first step. Implementors should notify IWizardModelListener listeners through calling IWizardModelListener.onActiveStepChanged(IWizardStep) .



stepIterator
Iterator stepIterator()(Code)
Returns an iterator over all the steps in the model. The iteration order is not guarenteed to the be the order of traversal. This is an optional operation; dynamic models can just return null, and should call init the first time a step is encountered right before rendering it. an iterator over all the steps of the model or null if the wizardmodel is not static



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