Source Code Cross Referenced for IPropertySetInfo.java in  » ERP-CRM-Financial » jmoney » net » sf » jmoney » model2 » 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 » ERP CRM Financial » jmoney » net.sf.jmoney.model2 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *
003:         *  JMoney - A Personal Finance Manager
004:         *  Copyright (c) 2004 Nigel Westbury <westbury@users.sourceforge.net>
005:         *
006:         *
007:         *  This program is free software; you can redistribute it and/or modify
008:         *  it under the terms of the GNU General Public License as published by
009:         *  the Free Software Foundation; either version 2 of the License, or
010:         *  (at your option) any later version.
011:         *
012:         *  This program is distributed in the hope that it will be useful,
013:         *  but WITHOUT ANY WARRANTY; without even the implied warranty of
014:         *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
015:         *  GNU General Public License for more details.
016:         *
017:         *  You should have received a copy of the GNU General Public License
018:         *  along with this program; if not, write to the Free Software
019:         *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
020:         *
021:         */
022:        package net.sf.jmoney.model2;
023:
024:        /**
025:         * This interface must be implemented by all classes that implement
026:         * an extension to the net.sf.jmoney.fields extension point.
027:         * (All classes referenced by the info-class attribute in the
028:         * extensions must implement this interface).
029:         * <P>
030:         * Implementations of this interface provide detailed information
031:         * about the properties in the property set.
032:         * 
033:         * @author Nigel Westbury
034:         */
035:        public interface IPropertySetInfo {
036:
037:            // TODO: This comment is WAY out of date (written in early prototyping days) and needs updating....
038:            /**
039:             * This method is the first method called by the framework.
040:             * This method registers all the extension properties by calling
041:             * into the supplied IPropertyRegistrar interface.
042:             * <P>
043:             * The framework calls this method to get information on extension
044:             * properties.
045:             * Properties may be applicable only in certain conditions.
046:             * For example, the properties that relate to a stock account
047:             * such as the commission rates should not be shown unless
048:             * the account type has been set to 'stock'.
049:             * Only two forms are condition are supported:
050:             * - a boolean property is set to true
051:             * - an enumerated property is set to a particular value
052:             * <P>
053:             * The applicability of a property in one bookkeeping object class may 
054:             * depend on the value of a property in a different bookkeeping
055:             * object class.  For example, the applicability of the indicator 
056:             * in an entry as to 
057:             * whether an entry has been reconciled may depend on whether
058:             * the check box in the account properties has been set to allow
059:             * reconciliation.  The table is as follows:
060:             * - entry can depend on entry, transaction, commodity or account.
061:             * - transaction can depend on transaction only.
062:             * - account can depend on account only.
063:             * - commodity can depend on commodity only.
064:             * <P>
065:             * We also support custom dependencies.  The EnumerationAccessor
066:             * class and the PropertyAccessor_Boolean class implement the
067:             * IPropertyDependency interface which contains the isSelected 
068:             * method.  A property is set to be conditional by passing an 
069:             * IPropertyDependency interface.  The property
070:             * is applicable if the isSelected method returns true.
071:             * <P>
072:             * When a property is registered, a PropertyAccessor object is
073:             * returned.  The PropertyAccessor object must be used later on if
074:             * there are other properties that depend on this property.
075:             * <P>
076:             * Properties may depend on properties defined in other plug-ins.  
077:             * In that
078:             * case a PropertyAccessor object can be obtained by giving the fully
079:             * qualified name of the property.  The framework will be sure to first
080:             * call the registerProperties method for any plug-ins on which
081:             * this plug-in depends.
082:             * <P>
083:             * Properties may depend on properties defined elsewhere in this
084:             * same plug-in.  For example, an entry property may depend on
085:             * a property of the account in which the entry occurs.
086:             * The framework will always call registerProperties for
087:             * classes in the order:
088:             * <UL>
089:             * <LI>Commodity</LI>
090:             * <LI>CapitalAccount</LI>
091:             * <LI>Transaction</LI>
092:             * <LI>Entry</LI>
093:             * </UL>
094:             * <P>
095:             * The dependencies can only occur in this order, so we are safe.
096:             *  
097:             * @param propertySet the property set object being initialized by this call.
098:             * 		The property set object is not in an initialized state when it is
099:             * 		passed to this method so this method must not call any methods on
100:             * 		the property set object.  However, implementations of this method
101:             * 		are encouraged to save the reference in a static member in order to
102:             * 		provide quick reference to the PropertySet object.
103:             */
104:            PropertySet registerProperties();
105:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.