Java Doc for WizardComponent.java in  » IDE-Netbeans » nbi » org » netbeans » installer » wizard » components » 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 » IDE Netbeans » nbi » org.netbeans.installer.wizard.components 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.installer.wizard.components.WizardComponent

All known Subclasses:   org.netbeans.installer.wizard.components.WizardAction,  org.netbeans.installer.wizard.components.WizardPanel,  org.netbeans.installer.wizard.components.WizardSequence,
WizardComponent
abstract public class WizardComponent (Code)
This class represents a single unit of a Wizard sequence. It is a logical abstraction of a wizard step, should normally be accompanied by a WizardUi instance.

This class provides a bunch of methods which are used by the wizard in order to execute the component, devise whether is can be executed or can be skipped, whether the user is allowed to skip the component, etc.

The basic infrastructure used by the concrete implementations of the WizardComponent class is also defined here: support for child components and properties.
author:
   Kirill Sorokin
since:
   1.0


Inner Class :public static class WizardComponentUi implements WizardUi
Inner Class :public static class WizardComponentSwingUi extends SwingUi

Field Summary
final public static  StringBACK_BUTTON_TEXT_PROPERTY
     Name of the property, which contains the text for the standard 'Back' button.
final public static  StringCANCEL_BUTTON_TEXT_PROPERTY
     Name of the property, which contains the text for the standard 'Cancel' button.
final public static  StringDESCRIPTION_PROPERTY
     Name of the property, which contains the component's description.
final public static  StringFINISH_BUTTON_TEXT_PROPERTY
     Name of the property, which contains the text for the standard 'Finish' button.
final public static  StringHELP_BUTTON_TEXT_PROPERTY
     Name of the property, which contains the text for the standard 'Help' button.
final public static  StringNEXT_BUTTON_TEXT_PROPERTY
     Name of the property, which contains the text for the standard 'Next' button.
final public static  StringRESOURCE_CANCEL_DIALOG_TEXT
     Name of a resource bundle entry.
final public static  StringRESOURCE_CANCEL_DIALOG_TITLE
     Name of a resource bundle entry.
final public static  StringTITLE_PROPERTY
     Name of the property, which contains the component's title.

Constructor Summary
protected  WizardComponent()
     Creates a new instance of WizardComponent .

Method Summary
final public  voidaddChild(WizardComponent component)
     Registers a new child for this component.
final public  voidaddChildren(List<WizardComponent> components)
     Registers several children for this component.
public  booleancanExecuteBackward()
     This method is called by the wizard in order to find out whether this component can be reached via Wizard.previous .
public  booleancanExecuteForward()
     This method is called by the wizard in order to find out whether this component can be reached via Wizard.next .
abstract public  voidexecuteBackward()
     This method is called when the component was reached with the Wizard.previous method.
abstract public  voidexecuteForward()
     This method is called when the component was reached with the Wizard.next method.
final public  List<WizardComponent>getChildren()
     Returns the list of currently registered child components.
final public  NbiPropertiesgetProperties()
     Returns the properties of this component.
final public  StringgetProperty(String name)
     Returns the value of the component's property with the specified name.
final public  StringgetProperty(String name, boolean resolve)
     Returns the value of the specified property.
final protected  InputStreamgetResource(String path)
     A helper method - calls ResourceUtils.getResource(StringClassLoader) supplying Wizard.getClassLoader as the class loader value.
Parameters:
  path - Path to the resource which should be obtained.
final protected  StringgetString(String baseName, String key)
     A helper method - calls ResourceUtils.getString(StringStringClassLoader) , supplying Wizard.getClassLoader as the class loader value.
Parameters:
  baseName - Resource bundle base name.
Parameters:
  key - Name of the key whose value needs to be obtained.
final protected  StringgetString(String baseName, String key, Object... arguments)
     A helper method - calls ResourceUtils.getString(StringStringClassLoaderObject[]) , supplying Wizard.getClassLoader as the class loader value.
Parameters:
  baseName - Resource bundle base name.
Parameters:
  key - Name of the key whose value needs to be obtained.
Parameters:
  arguments - Objects which should be used to substitute wildcards in thekey value.
final public  WizardgetWizard()
     Returns the Wizard which currently executes this component.
abstract public  WizardUigetWizardUi()
     Returns the WizardUi object for this component.
abstract public  voidinitialize()
     This method is called every time a wizard reaches this component.
public  booleanisPointOfNoReturn()
     This method is called by the wizard in order to find out whether it is allowed to execute any components before this via the Wizard.previous method.
final public  voidremoveChild(WizardComponent component)
     Unregisters a child component.
final protected  FileresolvePath(String path)
     A helper method - calls SystemUtils.resolvePath(StringClassLoader) supplying Wizard.getClassLoader as the class loader value.
Parameters:
  path - Path to be resolved as a String.
final protected  StringresolveString(String string)
     A helper method - calls SystemUtils.resolveString(StringClassLoader) supplying Wizard.getClassLoader as the class loader value.
Parameters:
  string - String to be resolved.
final public  voidsetProperty(String name, String value)
     Sets the specified property to the specified value.
final public  voidsetWizard(Wizard wizard)
     Sets the Wizard which currently executes this component.

Field Detail
BACK_BUTTON_TEXT_PROPERTY
final public static String BACK_BUTTON_TEXT_PROPERTY(Code)
Name of the property, which contains the text for the standard 'Back' button.



CANCEL_BUTTON_TEXT_PROPERTY
final public static String CANCEL_BUTTON_TEXT_PROPERTY(Code)
Name of the property, which contains the text for the standard 'Cancel' button.



DESCRIPTION_PROPERTY
final public static String DESCRIPTION_PROPERTY(Code)
Name of the property, which contains the component's description.



FINISH_BUTTON_TEXT_PROPERTY
final public static String FINISH_BUTTON_TEXT_PROPERTY(Code)
Name of the property, which contains the text for the standard 'Finish' button.



HELP_BUTTON_TEXT_PROPERTY
final public static String HELP_BUTTON_TEXT_PROPERTY(Code)
Name of the property, which contains the text for the standard 'Help' button.



NEXT_BUTTON_TEXT_PROPERTY
final public static String NEXT_BUTTON_TEXT_PROPERTY(Code)
Name of the property, which contains the text for the standard 'Next' button.



RESOURCE_CANCEL_DIALOG_TEXT
final public static String RESOURCE_CANCEL_DIALOG_TEXT(Code)
Name of a resource bundle entry.



RESOURCE_CANCEL_DIALOG_TITLE
final public static String RESOURCE_CANCEL_DIALOG_TITLE(Code)
Name of a resource bundle entry.



TITLE_PROPERTY
final public static String TITLE_PROPERTY(Code)
Name of the property, which contains the component's title.




Constructor Detail
WizardComponent
protected WizardComponent()(Code)
Creates a new instance of WizardComponent . This is the default protected constructor which must be called by the concrete implementations. It initializes the fields above and sets some default properties.




Method Detail
addChild
final public void addChild(WizardComponent component)(Code)
Registers a new child for this component.
Parameters:
  component - New child component which should be registered.



addChildren
final public void addChildren(List<WizardComponent> components)(Code)
Registers several children for this component.
Parameters:
  components - List of child components which should beregistered.



canExecuteBackward
public boolean canExecuteBackward()(Code)
This method is called by the wizard in order to find out whether this component can be reached via Wizard.previous .

It's important to note that if this method returns false, the wizard will not assume that it cannot proceed, but will skip this component altogether. true if the component can be executed,false if the component should be skipped.




canExecuteForward
public boolean canExecuteForward()(Code)
This method is called by the wizard in order to find out whether this component can be reached via Wizard.next .

It's important to note that if this method returns false, the wizard will not assume that it cannot proceed, but will skip this component altogether. true if the component can be executed,false if the component should be skipped.




executeBackward
abstract public void executeBackward()(Code)
This method is called when the component was reached with the Wizard.previous method. It is meant to perform the operations required by the concrete component, such as perform a search of some sort, etc.

This method is called after WizardComponent.setWizard(Wizard) , WizardComponent.initialize() and WizardComponent.getWizardUi() , thus it is safe to assume that the wizard field has been correctly initialized and the UI (if it exists) was shown.




executeForward
abstract public void executeForward()(Code)
This method is called when the component was reached with the Wizard.next method. It is meant to perform the operations required by the concrete component, such as perform a search of some sort, etc.

This method is called after WizardComponent.setWizard(Wizard) , WizardComponent.initialize() and WizardComponent.getWizardUi() , thus it is safe to assume that the wizard field has been correctly initialized and the UI (if it exists) was shown.




getChildren
final public List<WizardComponent> getChildren()(Code)
Returns the list of currently registered child components. It is not guaranteed that operating on this list directly will affect the actual children. List of the registered child components.



getProperties
final public NbiProperties getProperties()(Code)
Returns the properties of this component. The values of the properties will not be parsed. It is not guaranteed that operating on the return value of this method will affect the actual properties of the component. Component's properties.



getProperty
final public String getProperty(String name)(Code)
Returns the value of the component's property with the specified name. This method attempts to parse the property value using the SystemUtils.parseString(StringClassLoader) method and supplying Wizard.getClassLoader as the class loader value.
Parameters:
  name - Name of the property whose value should be returned. Value of the specified property, parsed viaSystemUtils.parseString(StringClassLoader).



getProperty
final public String getProperty(String name, boolean resolve)(Code)
Returns the value of the specified property. Thsi method can either attempt to resolve the value, or return it as is.
Parameters:
  name - Name of the property whose value needs to be returned.
Parameters:
  resolve - Whether to resolve the property value or not. Value of the specified property, either parsed or not.



getResource
final protected InputStream getResource(String path)(Code)
A helper method - calls ResourceUtils.getResource(StringClassLoader) supplying Wizard.getClassLoader as the class loader value.
Parameters:
  path - Path to the resource which should be obtained. InputStream from the resource, or null if it wasnot found.



getString
final protected String getString(String baseName, String key)(Code)
A helper method - calls ResourceUtils.getString(StringStringClassLoader) , supplying Wizard.getClassLoader as the class loader value.
Parameters:
  baseName - Resource bundle base name.
Parameters:
  key - Name of the key whose value needs to be obtained. Value of the specified key from the specified bundle.



getString
final protected String getString(String baseName, String key, Object... arguments)(Code)
A helper method - calls ResourceUtils.getString(StringStringClassLoaderObject[]) , supplying Wizard.getClassLoader as the class loader value.
Parameters:
  baseName - Resource bundle base name.
Parameters:
  key - Name of the key whose value needs to be obtained.
Parameters:
  arguments - Objects which should be used to substitute wildcards in thekey value. Value of the specified key from the specified bundle with itswildcards resolved using the supplied arguments.



getWizard
final public Wizard getWizard()(Code)
Returns the Wizard which currently executes this component. Wizard which currently executes this component.



getWizardUi
abstract public WizardUi getWizardUi()(Code)
Returns the WizardUi object for this component. WizardUi object for this component.



initialize
abstract public void initialize()(Code)
This method is called every time a wizard reaches this component. Unlike the WizardComponent.executeForward() and WizardComponent.executeBackward() methods this one is called before the UI is shown and thus is intended to be used to prepare the model or data for use by the UI.

This method is called after WizardComponent.setWizard(Wizard) , thus it is safe to assume that the wizard field has been correctly initialized.




isPointOfNoReturn
public boolean isPointOfNoReturn()(Code)
This method is called by the wizard in order to find out whether it is allowed to execute any components before this via the Wizard.previous method. If this method returns true it will be illegal to call Wizard.previous if the current component is active. true is the component is the point of no return,false otherwise.



removeChild
final public void removeChild(WizardComponent component)(Code)
Unregisters a child component. If it was not previously registered, no action is taken.
Parameters:
  component - Child component which should be unregistered.



resolvePath
final protected File resolvePath(String path)(Code)
A helper method - calls SystemUtils.resolvePath(StringClassLoader) supplying Wizard.getClassLoader as the class loader value.
Parameters:
  path - Path to be resolved as a String. Resolved path as a File.



resolveString
final protected String resolveString(String string)(Code)
A helper method - calls SystemUtils.resolveString(StringClassLoader) supplying Wizard.getClassLoader as the class loader value.
Parameters:
  string - String to be resolved. Resolved string.



setProperty
final public void setProperty(String name, String value)(Code)
Sets the specified property to the specified value. If such property does not exist - it is created.
Parameters:
  name - Name of the property whose value needs to be set.
Parameters:
  value - Value of the property.



setWizard
final public void setWizard(Wizard wizard)(Code)
Sets the Wizard which currently executes this component.
Parameters:
  wizard - Wizard which currently executes this component.



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.