Java Doc for WizardModel.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) 


java.lang.Object
   wicket.extensions.wizard.WizardModel

WizardModel
public class WizardModel implements IWizardModel(Code)
Default implementation of IWizardModel .

Steps can be added to this model directly using either the WizardModel.add(IWizardStep) normal add method or WizardModel.add(IWizardStep,wicket.extensions.wizard.WizardModel.ICondition) the conditional add method .

Swing Wizard Framework served as a valuable source of inspiration.


author:
   Eelco Hillenius

Inner Class :public interface ICondition extends Serializable

Field Summary
final public static  IConditionTRUE
     Condition that always evaluates true.

Constructor Summary
public  WizardModel()
     Construct.

Method Summary
public  voidadd(IWizardStep step)
     Adds the next step to the wizard.
public  voidadd(IWizardStep step, ICondition condition)
     Adds an optional step to the model.
final public  voidaddListener(IWizardModelListener listener)
     Adds a wizard model listener.
final protected  booleanallStepsComplete()
     Returns true if all the steps in the wizard return true from IWizardStep.isComplete .
public  voidcancel()
     This implementation just fires IWizardModelListener.onCancel a cancel event .
final protected  IWizardStepfindLastStep()
     Finds the last step in this model.
final protected  IWizardStepfindNextVisibleStep()
     Finds the next visible step based on the active step.
public  voidfinish()
     This implementation just fires IWizardModelListener.onFinish a finish event .
final protected  voidfireActiveStepChanged(IWizardStep step)
     Notify listeners that the active step has changed.
final protected  voidfireWizardCancelled()
     Notify listeners that the wizard is finished.
final protected  voidfireWizardFinished()
     Notify listeners that the wizard is finished.
final public  IWizardStepgetActiveStep()
     Gets the current active step the wizard should display.
public  booleanisCancelVisible()
     Gets whether cancel functionality is available.
final public  booleanisLastAvailable()
     Checks if the last button should be enabled.
public  booleanisLastStep(IWizardStep step)
    
public  booleanisLastVisible()
     Checks if the last button should be displayed.
final public  booleanisNextAvailable()
     Checks if the next button should be enabled.
final public  booleanisPreviousAvailable()
     Checks if the previous button should be enabled.
public  voidlastStep()
    
public  voidnext()
    
public  voidprevious()
    
final public  voidremoveListener(IWizardModelListener listener)
     Removes a wizard model listener.
public  voidreset()
    
public  voidsetActiveStep(IWizardStep step)
     Sets the active step.
public  voidsetCancelVisible(boolean cancelVisible)
     Sets whether cancel functionality is available.
public  voidsetLastVisible(boolean lastVisible)
     Configures if the last button should be displayed.
final public  IteratorstepIterator()
    

Field Detail
TRUE
final public static ICondition TRUE(Code)
Condition that always evaluates true.




Constructor Detail
WizardModel
public WizardModel()(Code)
Construct.




Method Detail
add
public void add(IWizardStep step)(Code)
Adds the next step to the wizard. If the WizardStep implements ICondition , then this method is equivalent to calling WizardModel.add(IWizardStep,ICondition) add(step, (ICondition)step) .
Parameters:
  step - the step to added.



add
public void add(IWizardStep step, ICondition condition)(Code)
Adds an optional step to the model. The step will only be displayed if the specified condition is met.
Parameters:
  step - The step to add
Parameters:
  condition - the ICondition under which it should be included inthe wizard.



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



allStepsComplete
final protected boolean allStepsComplete()(Code)
Returns true if all the steps in the wizard return true from IWizardStep.isComplete . This is primarily used to determine if the last button can be enabled. true if all the steps in the wizard are complete,false otherwise.



cancel
public void cancel()(Code)
This implementation just fires IWizardModelListener.onCancel a cancel event . Though this isn't a very strong contract, it gives all the power to the user of this model.
See Also:   wicket.extensions.wizard.IWizardModel.cancel



findLastStep
final protected IWizardStep findLastStep()(Code)
Finds the last step in this model. The last step



findNextVisibleStep
final protected IWizardStep findNextVisibleStep()(Code)
Finds the next visible step based on the active step. The next visible step based on the active step



finish
public void finish()(Code)
This implementation just fires IWizardModelListener.onFinish a finish event . Though this isn't a very strong contract, it gives all the power to the user of this model.
See Also:   wicket.extensions.wizard.IWizardModel.finish



fireActiveStepChanged
final protected void fireActiveStepChanged(IWizardStep step)(Code)
Notify listeners that the active step has changed.
Parameters:
  step - The new step



fireWizardCancelled
final protected void fireWizardCancelled()(Code)
Notify listeners that the wizard is finished.



fireWizardFinished
final protected void fireWizardFinished()(Code)
Notify listeners that the wizard is finished.



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



isCancelVisible
public boolean isCancelVisible()(Code)
Gets whether cancel functionality is available. Whether cancel functionality is available



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



isLastStep
public boolean isLastStep(IWizardStep step)(Code)

See Also:   wicket.extensions.wizard.IWizardModel.isLastStep(wicket.extensions.wizard.IWizardStep)



isLastVisible
public boolean isLastVisible()(Code)
Checks if the last button should be displayed. This method should only return true if the WizardModel.isLastAvailable will return true at any point. Returning false will prevent the last button from appearing on the wizard at all. true if the previou last should be displayed,false otherwise.



isNextAvailable
final public boolean isNextAvailable()(Code)
Checks if the next button should be enabled. true if the next button should be enabled,false otherwise.



isPreviousAvailable
final public boolean isPreviousAvailable()(Code)
Checks if the previous button should be enabled. true if the previous button should be enabled,false otherwise.



lastStep
public void lastStep()(Code)

See Also:   wicket.extensions.wizard.IWizardModel.lastStep



next
public void next()(Code)

See Also:   wicket.extensions.wizard.IWizardModel.next



previous
public void previous()(Code)

See Also:   wicket.extensions.wizard.IWizardModel.previous



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



reset
public void reset()(Code)

See Also:   wicket.extensions.wizard.IWizardModel.reset



setActiveStep
public void setActiveStep(IWizardStep step)(Code)
Sets the active step.
Parameters:
  step - the new active step step.



setCancelVisible
public void setCancelVisible(boolean cancelVisible)(Code)
Sets whether cancel functionality is available.
Parameters:
  cancelVisible - Whether cancel functionality is available



setLastVisible
public void setLastVisible(boolean lastVisible)(Code)
Configures if the last button should be displayed.
Parameters:
  lastVisible - true to display the last button, falseotherwise.
See Also:   WizardModel.isLastVisible



stepIterator
final public Iterator stepIterator()(Code)

See Also:   wicket.extensions.wizard.IWizardModel.stepIterator



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.