Java Doc for Customizer2.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » designtime » 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 » visualweb.api.designer » com.sun.rave.designtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.rave.designtime.Customizer2

All known Subclasses:   com.sun.rave.designtime.impl.BasicCustomizer2,
Customizer2
public interface Customizer2 extends DisplayItem(Code)

The Customizer2 interface describes a context-aware customizer for a JavaBean. A component author may wish to supply a customizer for their JavaBean, which is a dialog that pops up and provides a rich set of UI controls to manipulate the configuration of the entire JavaBean. This type of Customizer has significantly more access to the context that the JavaBean is being designed in, and thus allows for much greater functionality.

The dialog title and icon will use the values from 'getDisplayName()' and 'getSmallIcon()' respectively.

If a Customizer2 is apply capable (isApplyCapable() returns true), the host dialog will have three buttons: "OK", "Apply", and "Cancel" (and possibly "Help" if there is a helpKey). The 'isModified' method will be called each time a PropertyChangeEvent is fired to check if the "Apply" button should be enabled. When the user clicks "OK" or "Apply", the 'applyChanges' method is called. This implies that manipulations in the dialog are not directly affecting the DesignBean. The DesignBean should not be touched until 'applyChanges' has been called.

If a Customizer2 is NOT apply capable (isApplyCapable() returns false), the host dialog will only have one button: "Done" (and possibly "Help" if there is a helpKey). The DesignBean may be manipulated at will in this dialog, as it is considered to be non-stateful. When the user clicks "Done", the 'applyChanges' method will be called.

IMPLEMENTED BY THE COMPONENT AUTHOR - This interface is designed to be implemented by the component (bean) author.


author:
   Joe Nuxoll
version:
   1.0
See Also:   java.beans.Customizer




Method Summary
public  voidaddPropertyChangeListener(PropertyChangeListener listener)
     Standard propertyChange events - 'null' property name indicates that the bean changed in some other way than just a property.
public  ResultapplyChanges()
     Notifies the customizer that the user has clicked "OK" or "Apply" and the customizer should commit it's changes to the DesignBean.
public  ComponentgetCustomizerPanel(DesignBean designBean)
     Returns a UI panel (should be lightweight) to be displayed to the user.
public  PropertyChangeListener[]getPropertyChangeListeners()
     Standard propertyChange events - 'null' property name indicates that the bean changed in some other way than just a property.
public  booleanisApplyCapable()
    

If a Customizer2 is apply capable (isApplyCapable() returns true), the host dialog will have three buttons: "OK", "Apply", and "Cancel" (and possibly "Help" if there is a helpKey). The 'isModified' method will be called each time a PropertyChangeEvent is fired to check if the "Apply" button should be enabled.

public  booleanisModified()
     Returns true if the customizer is in an edited state - to notify the customizer dialog that the "Apply" button should be activated.
public  voidremovePropertyChangeListener(PropertyChangeListener listener)
     Standard propertyChange events - 'null' property name indicates that the bean changed in some other way than just a property.



Method Detail
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)
Standard propertyChange events - 'null' property name indicates that the bean changed in some other way than just a property. An apply capable Customizer2 can use this as a hook to notify the host dialog that the 'modified' state has changed.
Parameters:
  listener - The PropertyChangeListener to add



applyChanges
public Result applyChanges()(Code)
Notifies the customizer that the user has clicked "OK" or "Apply" and the customizer should commit it's changes to the DesignBean. A Result object, indicating success or failure, and optionally including messagesfor the user



getCustomizerPanel
public Component getCustomizerPanel(DesignBean designBean)(Code)
Returns a UI panel (should be lightweight) to be displayed to the user. The passed in DesignBean is the design-time proxy representing the JavaBean being customized. This method will be called *every* time the Customizer2 is invoked.
Parameters:
  designBean - the DesignBean to be customized a lightweight panel to display to the user



getPropertyChangeListeners
public PropertyChangeListener[] getPropertyChangeListeners()(Code)
Standard propertyChange events - 'null' property name indicates that the bean changed in some other way than just a property. An apply capable Customizer2 can use this as a hook to notify the host dialog that the 'modified' state has changed. An array of PropertyChangeListener representing all the current listeners



isApplyCapable
public boolean isApplyCapable()(Code)

If a Customizer2 is apply capable (isApplyCapable() returns true), the host dialog will have three buttons: "OK", "Apply", and "Cancel" (and possibly "Help" if there is a helpKey). The 'isModified' method will be called each time a PropertyChangeEvent is fired to check if the "Apply" button should be enabled. When the user clicks "OK" or "Apply", the 'applyChanges' method is called. This implies that manipulations in the dialog are not directly affecting the DesignBean. The DesignBean should not be touched until 'applyChanges' has been called.

If a Customizer2 is NOT apply capable (isApplyCapable() returns false), the host dialog will only have one button: "Done" (and possibly "Help" if there is a helpKey). The DesignBean may be manipulated at will in this dialog, as it is considered to be non-stateful. When the user clicks "Done", the 'applyChanges' method will be called.

returns true if the customizer is stateful and is capable of handlingan apply operation
See Also:    isModified()
See Also:    applyChanges()



isModified
public boolean isModified()(Code)
Returns true if the customizer is in an edited state - to notify the customizer dialog that the "Apply" button should be activated. returns true if the customizer is in an edited state, falseif not



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)
Standard propertyChange events - 'null' property name indicates that the bean changed in some other way than just a property. An apply capable Customizer2 can use this as a hook to notify the host dialog that the 'modified' state has changed.
Parameters:
  listener - The PropertyChangeListener to remove



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