Java Doc for Wizard.java in  » Database-Client » DBBrowser » com » nexes » 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 » Database Client » DBBrowser » com.nexes.wizard 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.event.WindowAdapter
      com.nexes.wizard.Wizard

Wizard
public class Wizard extends WindowAdapter implements PropertyChangeListener(Code)
This class implements a basic wizard dialog, where the programmer can insert one or more Components to act as panels. These panels can be navigated through arbitrarily using the 'Next' or 'Back' buttons, or the dialog itself can be closed using the 'Cancel' button. Note that even though the dialog uses a CardLayout manager, the order of the panels is not linear. Each panel determines at runtime what its next and previous panel will be.


Field Summary
final public static  StringBACK_BUTTON_ACTION_COMMAND
     The String-based action command for the 'Back' button.
static  IconBACK_ICON
    
static  StringBACK_TEXT
    
final public static  StringCANCEL_BUTTON_ACTION_COMMAND
     The String-based action command for the 'Cancel' button.
static  IconCANCEL_ICON
    
final public static  intCANCEL_RETURN_CODE
     Indicates that the 'Cancel' button was pressed to close the dialog, or the user pressed the close box in the corner of the window.
static  StringCANCEL_TEXT
    
final public static  intERROR_RETURN_CODE
     Indicates that the dialog closed due to an internal error.
static  IconFINISH_ICON
    
final public static  intFINISH_RETURN_CODE
     Indicates that the 'Finish' button was pressed to close the dialog.
static  StringFINISH_TEXT
    
final public static  StringNEXT_BUTTON_ACTION_COMMAND
     The String-based action command for the 'Next' button.
static  IconNEXT_ICON
    
static  StringNEXT_TEXT
    

Constructor Summary
public  Wizard()
     Default constructor.
public  Wizard(Dialog owner)
     This method accepts a java.awt.Dialog object as the javax.swing.JDialog's parent.
public  Wizard(Frame owner)
     This method accepts a java.awt.Frame object as the javax.swing.JDialog's parent.

Method Summary
 voidclose(int code)
     Closes the dialog and sets the return code to the integer parameter.
public  booleangetBackButtonEnabled()
     Mirrors the WizardModel method of the same name.
public  booleangetCancelButtonEnabled()
     Mirrors the WizardModel method of the same name.
public  JDialoggetDialog()
     Returns an instance of the JDialog that this class created.
public  WizardModelgetModel()
     Returns the current model of the wizard dialog.
public  booleangetNextFinishButtonEnabled()
     Mirrors the WizardModel method of the same name.
public  ComponentgetOwner()
     Returns the owner of the generated javax.swing.JDialog.
public  intgetReturnCode()
     Retrieves the last return code set by the dialog. An integer that identifies how the dialog was closed.
public  StringgetTitle()
     Returns the current title of the generated dialog.
public  booleanisModal()
     Returns the modality of the dialog.
public  voidpropertyChange(PropertyChangeEvent evt)
     Method used to listen for property change events from the model and update the dialog's graphical components as necessary.
public  voidregisterWizardPanel(Object id, WizardPanelDescriptor panel)
     Add a Component as a panel for the wizard dialog by registering its WizardPanelDescriptor object.
public  voidsetBackButtonEnabled(boolean newValue)
     Mirrors the WizardModel method of the same name.
public  voidsetCancelButtonEnabled(boolean newValue)
     Mirrors the WizardModel method of the same name.
public  voidsetCurrentPanel(Object id)
     Displays the panel identified by the object passed in.
public  voidsetModal(boolean b)
     Sets the modality of the generated javax.swing.JDialog.
public  voidsetNextFinishButtonEnabled(boolean newValue)
     Mirrors the WizardModel method of the same name.
public  voidsetTitle(String s)
     Sets the title of the generated javax.swing.JDialog.
public  intshowModalDialog()
     Convienence method that displays a modal wizard dialog and blocks until the dialog has completed. Indicates how the dialog was closed.
public  voidwindowClosing(WindowEvent e)
     If the user presses the close box on the dialog's window, treat it as a cancel.

Field Detail
BACK_BUTTON_ACTION_COMMAND
final public static String BACK_BUTTON_ACTION_COMMAND(Code)
The String-based action command for the 'Back' button.



BACK_ICON
static Icon BACK_ICON(Code)



BACK_TEXT
static String BACK_TEXT(Code)



CANCEL_BUTTON_ACTION_COMMAND
final public static String CANCEL_BUTTON_ACTION_COMMAND(Code)
The String-based action command for the 'Cancel' button.



CANCEL_ICON
static Icon CANCEL_ICON(Code)



CANCEL_RETURN_CODE
final public static int CANCEL_RETURN_CODE(Code)
Indicates that the 'Cancel' button was pressed to close the dialog, or the user pressed the close box in the corner of the window.



CANCEL_TEXT
static String CANCEL_TEXT(Code)



ERROR_RETURN_CODE
final public static int ERROR_RETURN_CODE(Code)
Indicates that the dialog closed due to an internal error.



FINISH_ICON
static Icon FINISH_ICON(Code)



FINISH_RETURN_CODE
final public static int FINISH_RETURN_CODE(Code)
Indicates that the 'Finish' button was pressed to close the dialog.



FINISH_TEXT
static String FINISH_TEXT(Code)



NEXT_BUTTON_ACTION_COMMAND
final public static String NEXT_BUTTON_ACTION_COMMAND(Code)
The String-based action command for the 'Next' button.



NEXT_ICON
static Icon NEXT_ICON(Code)



NEXT_TEXT
static String NEXT_TEXT(Code)




Constructor Detail
Wizard
public Wizard()(Code)
Default constructor. This method creates a new WizardModel object and passes it into the overloaded constructor.



Wizard
public Wizard(Dialog owner)(Code)
This method accepts a java.awt.Dialog object as the javax.swing.JDialog's parent.
Parameters:
  owner - The java.awt.Dialog object that is the owner of this dialog.



Wizard
public Wizard(Frame owner)(Code)
This method accepts a java.awt.Frame object as the javax.swing.JDialog's parent.
Parameters:
  owner - The java.awt.Frame object that is the owner of the javax.swing.JDialog.




Method Detail
close
void close(int code)(Code)
Closes the dialog and sets the return code to the integer parameter.
Parameters:
  code - The return code.



getBackButtonEnabled
public boolean getBackButtonEnabled()(Code)
Mirrors the WizardModel method of the same name. A boolean indicating if the button is enabled.



getCancelButtonEnabled
public boolean getCancelButtonEnabled()(Code)
Mirrors the WizardModel method of the same name. A boolean indicating if the button is enabled.



getDialog
public JDialog getDialog()(Code)
Returns an instance of the JDialog that this class created. This is useful in the event that you want to change any of the JDialog parameters manually. The JDialog instance that this class created.



getModel
public WizardModel getModel()(Code)
Returns the current model of the wizard dialog. A WizardModel instance, which serves as the model for the wizard dialog.



getNextFinishButtonEnabled
public boolean getNextFinishButtonEnabled()(Code)
Mirrors the WizardModel method of the same name. A boolean indicating if the button is enabled.



getOwner
public Component getOwner()(Code)
Returns the owner of the generated javax.swing.JDialog. The owner (java.awt.Frame or java.awt.Dialog) of the javax.swing.JDialog generatedby this class.



getReturnCode
public int getReturnCode()(Code)
Retrieves the last return code set by the dialog. An integer that identifies how the dialog was closed. See the *_RETURN_CODEconstants of this class for possible values.



getTitle
public String getTitle()(Code)
Returns the current title of the generated dialog. The String-based title of the generated dialog.



isModal
public boolean isModal()(Code)
Returns the modality of the dialog. A boolean indicating whether or not the generated javax.swing.JDialog is modal.



propertyChange
public void propertyChange(PropertyChangeEvent evt)(Code)
Method used to listen for property change events from the model and update the dialog's graphical components as necessary.
Parameters:
  evt - PropertyChangeEvent passed from the model to signal that one of its properties has changed value.



registerWizardPanel
public void registerWizardPanel(Object id, WizardPanelDescriptor panel)(Code)
Add a Component as a panel for the wizard dialog by registering its WizardPanelDescriptor object. Each panel is identified by a unique Object-based identifier (often a String), which can be used by the setCurrentPanel() method to display the panel at runtime.
Parameters:
  id - An Object-based identifier used to identify the WizardPanelDescriptor object.
Parameters:
  panel - The WizardPanelDescriptor object which contains helpful information about the panel.



setBackButtonEnabled
public void setBackButtonEnabled(boolean newValue)(Code)
Mirrors the WizardModel method of the same name. boolean newValue The new enabled status of the button.



setCancelButtonEnabled
public void setCancelButtonEnabled(boolean newValue)(Code)
Mirrors the WizardModel method of the same name. boolean newValue The new enabled status of the button.



setCurrentPanel
public void setCurrentPanel(Object id)(Code)
Displays the panel identified by the object passed in. This is the same Object-based identified used when registering the panel.
Parameters:
  id - The Object-based identifier of the panel to be displayed.



setModal
public void setModal(boolean b)(Code)
Sets the modality of the generated javax.swing.JDialog.
Parameters:
  b - the modality of the dialog



setNextFinishButtonEnabled
public void setNextFinishButtonEnabled(boolean newValue)(Code)
Mirrors the WizardModel method of the same name. boolean newValue The new enabled status of the button.



setTitle
public void setTitle(String s)(Code)
Sets the title of the generated javax.swing.JDialog.
Parameters:
  s - The title of the dialog.



showModalDialog
public int showModalDialog()(Code)
Convienence method that displays a modal wizard dialog and blocks until the dialog has completed. Indicates how the dialog was closed. Compare this value against the RETURN_CODEconstants at the beginning of the class.



windowClosing
public void windowClosing(WindowEvent e)(Code)
If the user presses the close box on the dialog's window, treat it as a cancel.
Parameters:
  WindowEvent - The event passed in from AWT.



Methods inherited from java.awt.event.WindowAdapter
public void windowActivated(WindowEvent e)(Code)(Java Doc)
public void windowClosed(WindowEvent e)(Code)(Java Doc)
public void windowClosing(WindowEvent e)(Code)(Java Doc)
public void windowDeactivated(WindowEvent e)(Code)(Java Doc)
public void windowDeiconified(WindowEvent e)(Code)(Java Doc)
public void windowGainedFocus(WindowEvent e)(Code)(Java Doc)
public void windowIconified(WindowEvent e)(Code)(Java Doc)
public void windowLostFocus(WindowEvent e)(Code)(Java Doc)
public void windowOpened(WindowEvent e)(Code)(Java Doc)
public void windowStateChanged(WindowEvent e)(Code)(Java Doc)

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.