Source Code Cross Referenced for OptionsPanelController.java in  » IDE-Netbeans » options.api » org » netbeans » spi » options » 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 » options.api » org.netbeans.spi.options 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.netbeans.spi.options;
002:
003:        import java.beans.PropertyChangeListener;
004:        import javax.swing.JComponent;
005:        import org.openide.util.HelpCtx;
006:        import org.openide.util.Lookup;
007:
008:        /**
009:         * PanelController creates visual representation of one Options Dialog
010:         * category, and manages communication between Options Dialog and this
011:         * panel.
012:         */
013:        public abstract class OptionsPanelController {
014:
015:            /**
016:             * Property name constant.
017:             */
018:            public static final String PROP_VALID = "valid";
019:
020:            /**
021:             * Property name constant.
022:             */
023:            public static final String PROP_CHANGED = "changed";
024:
025:            /**
026:             * Property name constant.
027:             */
028:            public static final String PROP_HELP_CTX = "helpCtx";
029:
030:            /**
031:             * Component should load its data here. You should not do any 
032:             * time-consuming operations inside the constructor, because it 
033:             * blocks initialization of OptionsDialog. Initialization 
034:             * should be implemented in update method.
035:             * This method is called after {@link #getComponent} method.
036:             * Update method can be called more than one time for the same instance 
037:             * of JComponent obtained from {@link #getComponent} call.
038:             */
039:            public abstract void update();
040:
041:            /**
042:             * This method is called when Options Dialog "OK" button is pressed.
043:             */
044:            public abstract void applyChanges();
045:
046:            /**
047:             * This method is called when Options Dialog "Cancel" button is pressed.
048:             */
049:            public abstract void cancel();
050:
051:            /**
052:             * Should return <code>true</code> if some option value in this 
053:             * category is valid.
054:             * 
055:             * 
056:             * @return <code>true</code> if some option value in this 
057:             * category is valid
058:             */
059:            public abstract boolean isValid();
060:
061:            /**
062:             * Should return <code>true</code> if some option value in this 
063:             * category has been changed.
064:             * 
065:             * 
066:             * @return <code>true</code> if some option value in this 
067:             * category has been changed
068:             */
069:            public abstract boolean isChanged();
070:
071:            /**
072:             * Each option category can provide some lookup. Options Dialog master
073:             * lookup is composed from these individual lookups. Master lookup
074:             * can be obtained from {@link #getComponent} call. This lookup is designed
075:             * to support communication anong individual panels in one Options
076:             * Dialog.
077:             * 
078:             * There is no guarantee that this method will be called from AWT thread.
079:             * 
080:             * @return lookup provided by this Options Dialog panel
081:             */
082:            public Lookup getLookup() {
083:                return Lookup.EMPTY;
084:            }
085:
086:            /**
087:             * Returns visual component representing this options category.
088:             * This method is called before {@link #update} method.
089:             * 
090:             * @param masterLookup master lookup composed from lookups provided by 
091:             *        individual OptionsPanelControllers 
092:             *        - {@link OptionsPanelController#getLookup}
093:             * @return visual component representing this options category
094:             */
095:            public abstract JComponent getComponent(Lookup masterLookup);
096:
097:            /**
098:             * 
099:             * Get current help context asociated with this panel.
100:             * 
101:             * 
102:             * @return current help context
103:             */
104:            public abstract HelpCtx getHelpCtx();
105:
106:            /**
107:             * Registers new listener.
108:             * 
109:             * 
110:             * @param l a new listener
111:             */
112:            public abstract void addPropertyChangeListener(
113:                    PropertyChangeListener l);
114:
115:            /**
116:             * Unregisters given listener.
117:             * 
118:             * 
119:             * @param l a listener to be removed
120:             */
121:            public abstract void removePropertyChangeListener(
122:                    PropertyChangeListener l);
123:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.