Java Doc for ExtendablePropertySet.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 Reference  Class Diagram Java Document (Java Doc) 


net.sf.jmoney.model2.ExtendablePropertySet

ExtendablePropertySet
public class ExtendablePropertySet extends PropertySet (Code)


Field Summary
 ExtendablePropertySet<? super E>basePropertySet
    
 IExtendableObjectConstructors<E>constructors
     An interface that can be used to construct implementation objects, or null if this is an abstract property set.
protected  booleanderivable
     true if further property sets must be derived from this property set, false if property sets cannot be derived from this property set.
 Map<String, ExtensionPropertySet<?>>extensionPropertySets
    
protected  StringiconFileName
    
protected  StringobjectDescription
     Localized text describing the type of object represented by this property set.

Constructor Summary
protected  ExtendablePropertySet(Class<E> classOfObject, String objectDescription, ExtendablePropertySet<? super E> basePropertySet, IExtendableObjectConstructors<E> constructors)
     Constructs a property set object.

Method Summary
public  voidaddPage(PageEntry newPage)
    
public  EconstructDefaultImplementationObject(IObjectKey objectKey, ListKey<? super E> parentKey)
     This method should be used only by plug-ins that implement a datastore. A newly constructed object, constructed from the givenparameters.
public  EconstructImplementationObject(IObjectKey objectKey, ListKey<? super E> parentKey, IValues values)
     This method should be used only by plug-ins that implement a datastore.
Parameters:
  constructorParameters - an array of values to be passed tothe constructor.
public  ExtendablePropertySet<? extends E>getActualPropertySet(Class<? extends E> classOfObject)
     Given a class of an object, returns the property set for that object.
public  ExtendablePropertySet<? super E>getBasePropertySet()
    
public  Collection<ExtendablePropertySet<? extends E>>getDerivedPropertySets()
    
public  Collection<ExtensionPropertySet<?>>getDirectExtensionPropertySets()
     Gets a list of all property sets that extend the given property set.
public  Collection<ExtendablePropertySet<? extends E>>getDirectlyDerivedPropertySets()
     Gets the set of all property sets that are directly derived from this property set.
public  Collection<ExtensionPropertySet<?>>getExtensionPropertySets()
     Gets a list of all property sets that extend the given property set.
public  ImagegetIcon()
     This method creates the image on first call.
 StringgetIconFileName()
    
protected  EgetImplementationObject(ExtendableObject extendableObject)
    
public  Collection<ListPropertyAccessor>getListProperties2()
     Returns the set of all list properties (i.e.
public  Collection<ListPropertyAccessor>getListProperties3()
     Returns the same set of properties as the getProperties3 method but the returned collection includes only the list properties (i.e.
public  ListPropertyAccessorgetListProperty(String listPropertyId)
     Utility method to find a property among all properties supported by objects of this class.
public  StringgetObjectDescription()
    
public  Vector<PageEntry>getPageFactories()
     Returns the set of tabbed pages that are to be shown in the editor associated with extendable objects of this property set.
public  Collection<PropertyAccessor>getProperties3()
     Returns the set of all properties of the given set of property sets, including properties in the extendable object, properties in extension property sets, and all properties in the base property sets including all extension properties to the base property sets.

This is the set of properties that can be set against an object that implements this property set.

Properties are returned with the properties from the base-most class first, then properties from the class immediately derived from the base-most class, and so on with the properties from this property set being last.

public  PropertyAccessorgetPropertyAccessorGivenLocalNameAndExcludingExtensions(String localPropertyName)
     Gets the accessor for a property given the local name of the property. This method searches only this property set and any base property sets.
public  Collection<ScalarPropertyAccessor>getScalarProperties2()
     Returns the set of all scalar properties (i.e.
public  Collection<ScalarPropertyAccessor>getScalarProperties3()
     Returns the same set of properties as the getProperties3 method but the returned collection includes only the scalar properties (i.e.
public  ScalarPropertyAccessorgetScalarProperty(String scalarPropertyId)
     Utility method to find a property among all properties supported by objects of this class.
public  voidinitProperties(String propertySetId)
    
public  voidinitPropertiesPass2()
    
public  booleanisDerivable()
    
public  voidsetIcon(String iconFileName)
     Set an icon that is to be shown for objects of this class.

Field Detail
basePropertySet
ExtendablePropertySet<? super E> basePropertySet(Code)



constructors
IExtendableObjectConstructors<E> constructors(Code)
An interface that can be used to construct implementation objects, or null if this is an abstract property set.



derivable
protected boolean derivable(Code)
true if further property sets must be derived from this property set, false if property sets cannot be derived from this property set.



extensionPropertySets
Map<String, ExtensionPropertySet<?>> extensionPropertySets(Code)



iconFileName
protected String iconFileName(Code)
This field is valid for extendable property sets only



objectDescription
protected String objectDescription(Code)
Localized text describing the type of object represented by this property set. This property is never null.




Constructor Detail
ExtendablePropertySet
protected ExtendablePropertySet(Class<E> classOfObject, String objectDescription, ExtendablePropertySet<? super E> basePropertySet, IExtendableObjectConstructors<E> constructors)(Code)
Constructs a property set object.
Parameters:
  classOfObject - the class of the implementation object
Parameters:
  objectDescription - a localized description of this object class, suitable for usein the UI
Parameters:
  basePropertySet - the property set from which this property set is derived, ornull if we are constructing a base property set
Parameters:
  constructors - an interface containing methods for constructingimplementation objects, or null if this is an abstractproperty set




Method Detail
addPage
public void addPage(PageEntry newPage)(Code)

Parameters:
  pageEntry -



constructDefaultImplementationObject
public E constructDefaultImplementationObject(IObjectKey objectKey, ListKey<? super E> parentKey)(Code)
This method should be used only by plug-ins that implement a datastore. A newly constructed object, constructed from the givenparameters. This object may be an ExtendableObject ormay be an ExtensionObject.



constructImplementationObject
public E constructImplementationObject(IObjectKey objectKey, ListKey<? super E> parentKey, IValues values)(Code)
This method should be used only by plug-ins that implement a datastore.
Parameters:
  constructorParameters - an array of values to be passed tothe constructor. If an extendable object is being constructedthen the first three elements of this array must be theobject key, the extension map, and the parent object key. A newly constructed object, constructed from the givenparameters. This object may be an ExtendableObject ormay be an ExtensionObject.



getActualPropertySet
public ExtendablePropertySet<? extends E> getActualPropertySet(Class<? extends E> classOfObject)(Code)
Given a class of an object, returns the property set for that object. The class passed to this method must be the class of an ExtendableObject that either is the implementation object for this property set or is extended from the implemetation class. The class must be a final class (i.e. a class of an actual object instance, not an abstract class). If this property set is a final property set then this method will always return this object. the final property set



getBasePropertySet
public ExtendablePropertySet<? super E> getBasePropertySet()(Code)
If this property set is derived from another propertyset then the base property set is returned, otherwisenull is returned.



getDerivedPropertySets
public Collection<ExtendablePropertySet<? extends E>> getDerivedPropertySets()(Code)
the set of all property setsthat are derived from this property set andthat are themselves not derivable



getDirectExtensionPropertySets
public Collection<ExtensionPropertySet<?>> getDirectExtensionPropertySets()(Code)
Gets a list of all property sets that extend the given property set. This method is used by the Propagator class only.

Note: This method does not return derived property sets. This method does not return property sets that extend any property sets from which this property set is derived. the extension property sets that extend this propertyset




getDirectlyDerivedPropertySets
public Collection<ExtendablePropertySet<? extends E>> getDirectlyDerivedPropertySets()(Code)
Gets the set of all property sets that are directly derived from this property set. This set does not include property sets that are derived from property sets that are in turn derived from this property set. This set includes both property sets that are derivable and property sets that are final. This method is useful when the caller needs to know the actual tree structure of the derived property sets or needs to know about the intermediate (non-final) property sets. Callers generally would call this method in a recursive manner. If a caller just needs a list of the final property sets, getDerivedPropertySets() is simpler to use.



getExtensionPropertySets
public Collection<ExtensionPropertySet<?>> getExtensionPropertySets()(Code)
Gets a list of all property sets that extend the given property set. Property sets that extend any base property sets are also included. Note: This method does not return derived property sets. the extension property sets that extend this property set



getIcon
public Image getIcon()(Code)
This method creates the image on first call. It is very important that the image is not created when the this PropertySet object is initialized. The reason is that this PropertySet is initialized by a different thread than the UI thread. Images must be created by UI thread.

This method is valid for extendable property sets only. the icon associated with objects that implementthis property set.




getIconFileName
String getIconFileName()(Code)
used internally



getImplementationObject
protected E getImplementationObject(ExtendableObject extendableObject)(Code)



getListProperties2
public Collection<ListPropertyAccessor> getListProperties2()(Code)
Returns the set of all list properties (i.e. scalar properties are excluded) of the given set of property sets, including both properties in the extendable object and properties in extension property sets.

Properties from base property sets and properties from derived property sets are not returned. a collection of PropertyAccessor objects




getListProperties3
public Collection<ListPropertyAccessor> getListProperties3()(Code)
Returns the same set of properties as the getProperties3 method but the returned collection includes only the list properties (i.e. scalar properties are excluded).



getListProperty
public ListPropertyAccessor getListProperty(String listPropertyId)(Code)
Utility method to find a property among all properties supported by objects of this class.
Parameters:
  listPropertyId -



getObjectDescription
public String getObjectDescription()(Code)
localized text describing the type of objectrepresented by this property set



getPageFactories
public Vector<PageEntry> getPageFactories()(Code)
Returns the set of tabbed pages that are to be shown in the editor associated with extendable objects of this property set.

This method is valid only for non-derivable extendable property sets. a set of objects of type PageEntry




getProperties3
public Collection<PropertyAccessor> getProperties3()(Code)
Returns the set of all properties of the given set of property sets, including properties in the extendable object, properties in extension property sets, and all properties in the base property sets including all extension properties to the base property sets.

This is the set of properties that can be set against an object that implements this property set.

Properties are returned with the properties from the base-most class first, then properties from the class immediately derived from the base-most class, and so on with the properties from this property set being last. This order gives the most intuitive order from the user's perspective. This order also ensures that a property in a base class has the same index in the returned order, regardless of the actual derived property set.




getPropertyAccessorGivenLocalNameAndExcludingExtensions
public PropertyAccessor getPropertyAccessorGivenLocalNameAndExcludingExtensions(String localPropertyName) throws PropertyNotFoundException(Code)
Gets the accessor for a property given the local name of the property. This method searches only this property set and any base property sets. No extensions are searched.

This method is used when a column name is persisted in, say, a file and we are keen to keep the data in the file as simple and short as possible. We therefore allow local names only to be specified. Local names may not be unique when extensions are included, so we must require fully qualified names for extensions.
Parameters:
  name - The local property name




getScalarProperties2
public Collection<ScalarPropertyAccessor> getScalarProperties2()(Code)
Returns the set of all scalar properties (i.e. list properties are excluded) of the given set of property sets, including both properties in the extendable object and properties in extension property sets.

Properties from base property sets and properties from derived property sets are not returned. a collection of PropertyAccessor objects




getScalarProperties3
public Collection<ScalarPropertyAccessor> getScalarProperties3()(Code)
Returns the same set of properties as the getProperties3 method but the returned collection includes only the scalar properties (i.e. list properties are excluded).



getScalarProperty
public ScalarPropertyAccessor getScalarProperty(String scalarPropertyId)(Code)
Utility method to find a property among all properties supported by objects of this class.
Parameters:
  scalarPropertyId -



initProperties
public void initProperties(String propertySetId)(Code)



initPropertiesPass2
public void initPropertiesPass2()(Code)



isDerivable
public boolean isDerivable()(Code)
True if this property set can only be used byderiving another property set from it, falseif property sets cannot be derived from thisproperty set.



setIcon
public void setIcon(String iconFileName)(Code)
Set an icon that is to be shown for objects of this class. If no icon is set then the icon for the base class will be used or, if there is no base class, no icon will be shown for objects of this class.
Parameters:
  iconFileName -



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