Java Doc for ScalarPropertyAccessor.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) 


java.lang.Object
   net.sf.jmoney.model2.PropertyAccessor
      net.sf.jmoney.model2.ScalarPropertyAccessor

ScalarPropertyAccessor
public class ScalarPropertyAccessor extends PropertyAccessor (Code)



Constructor Summary
public  ScalarPropertyAccessor(Class<V> classOfValueObject, PropertySet<E> propertySet, String localName, String displayName, int weight, int minimumWidth, IPropertyControlFactory<V> propertyControlFactory, IPropertyDependency<E> propertyDependency)
    

Method Summary
public  IPropertyControlcreatePropertyControl(Composite parent)
     Create a Control object that edits the property.
public  MethodfindMethod(String prefix, String propertyName, Class[] parameters)
    
public  StringformatValueForMessage(ExtendableObject object)
     Format the value of a property so it can be embedded into a message. The returned value will look sensible when embedded in a message. Therefore null values and empty values are returned as non-empty text such as "none" or "empty".
public  StringformatValueForTable(ExtendableObject object)
     Format the value of a property as appropriate for displaying in a table. The returned value is expected to be displayed in a table or some similar view.
public  Class<V>getClassOfValueObject()
     Returns the class for the values of this property.
public  ClassgetClassOfValueType()
     Returns the class for the values of this property.
public  Comparator<ExtendableObject>getComparator()
     Return a comparator to be used to compare two extendable objects based on the value of this property.
public  VgetDefaultValue()
     The default value for a property is suitable for uses such as: - setting the default columnn value in a database - providing values when the value is missing from an XML file It is expected that this value is constant (the same value is always returned for a given property).
public  intgetIndexIntoScalarProperties()
     It is often useful to have an array of property values of an extendable object.
public  intgetMinimumWidth()
     The minimum width to be used when this property is displayed in a table or a grid.
public  intgetWeight()
     The width weighting to be used when this property is displayed in a table or a grid.
public  VinvokeGetMethod(Object invocationTarget)
    
public  voidinvokeSetMethod(Object invocationTarget, V value)
    
public  booleanisEditable()
     Indicates whether the property may be edited by the user.
public  booleanisList()
     Indicates if the property is a list of objects.
public  booleanisNullAllowed()
     Indicates whether the property may take null values. All properties may take null values except properties whose values are the intrinsic types (int, long, boolean, char).
public  booleanisPropertyApplicable(ExtendableObject containingObject)
     Indicates if this property is applicable.
public  booleanisSortable()
     Indicates whether users are able to sort views based on this property.
public  voidsetIndexIntoScalarProperties(int indexIntoScalarProperties)
    


Constructor Detail
ScalarPropertyAccessor
public ScalarPropertyAccessor(Class<V> classOfValueObject, PropertySet<E> propertySet, String localName, String displayName, int weight, int minimumWidth, IPropertyControlFactory<V> propertyControlFactory, IPropertyDependency<E> propertyDependency)(Code)




Method Detail
createPropertyControl
public IPropertyControl createPropertyControl(Composite parent)(Code)
Create a Control object that edits the property.
Parameters:
  parent - An interface to a wrapper class.



findMethod
public Method findMethod(String prefix, String propertyName, Class[] parameters)(Code)



formatValueForMessage
public String formatValueForMessage(ExtendableObject object)(Code)
Format the value of a property so it can be embedded into a message. The returned value will look sensible when embedded in a message. Therefore null values and empty values are returned as non-empty text such as "none" or "empty". Text values are placed in quotes unless sure that only a single word will be returned that would be readable without quotes. The value of the property formatted as appropriate.



formatValueForTable
public String formatValueForTable(ExtendableObject object)(Code)
Format the value of a property as appropriate for displaying in a table. The returned value is expected to be displayed in a table or some similar view. Null and empty values are therefore returned as empty strings. Text values are not quoted. The value of the property formatted as appropriate.



getClassOfValueObject
public Class<V> getClassOfValueObject()(Code)
Returns the class for the values of this property. This is usually the class that is returned by the getter method, but if the getter method returns int, long, boolean, or char then this method will return Integer.class, Long.class, Boolean.class, or Character.class. the class of the property values (if the method signatures show int,long, boolean, or char, this field will be Integer.class, Long.class,Boolean.class, or Character.class)



getClassOfValueType
public Class getClassOfValueType()(Code)
Returns the class for the values of this property. This is the class that is returned by the getter method. the class of the property values (if the method signatures show int,long, boolean, or char, this field will be int.class, long.class,boolean.class, or char.class)



getComparator
public Comparator<ExtendableObject> getComparator()(Code)
Return a comparator to be used to compare two extendable objects based on the value of this property. This method looks to the comparator, if any, provided by the IPropertyControlFactory implementation. The ordering is thus defined by the plug-in that added this property. a comparator, or null if no comparator was providedfor use with this property



getDefaultValue
public V getDefaultValue()(Code)
The default value for a property is suitable for uses such as: - setting the default columnn value in a database - providing values when the value is missing from an XML file It is expected that this value is constant (the same value is always returned for a given property). The results will be unpredicable if this is not the case. the default value to use for this property, which maybe null if the property is of a nullable type



getIndexIntoScalarProperties
public int getIndexIntoScalarProperties()(Code)
It is often useful to have an array of property values of an extendable object. This array contains all scalar properties in the extendable object, including extension properties and properties from any base property sets.

In these arrays, the properties (including extension properties) from the base property sets are put first in the array. This means a given property will always be at the same index in the array regardless of the actual derived property set.

This index is guaranteed to match the order in which properties are returned by the PropertySet.getPropertyIterator_Scalar3(). i.e. if this method returns n then in every case where the collection returned by getPropertyIterator_Scalar3 contains this property, this property will be returned as the (n+1)'th element in the collection. the index of this property in the list of scalarproperties for the class. This method returns zerofor the first scalar property returned byPropertySet.getPropertyIterator3() and so on.




getMinimumWidth
public int getMinimumWidth()(Code)
The minimum width to be used when this property is displayed in a table or a grid.



getWeight
public int getWeight()(Code)
The width weighting to be used when this property is displayed in a table or a grid. If the width available for the table or grid is more than the sum of the minimum widths then the excess width is distributed across the columns. This weight indicates how much the property can benefit from being given excess width. For example a property containing a description can benefit, whereas a property containing a date cannot.



invokeGetMethod
public V invokeGetMethod(Object invocationTarget)(Code)



invokeSetMethod
public void invokeSetMethod(Object invocationTarget, V value)(Code)



isEditable
public boolean isEditable()(Code)
Indicates whether the property may be edited by the user.



isList
public boolean isList()(Code)
Indicates if the property is a list of objects.



isNullAllowed
public boolean isNullAllowed()(Code)
Indicates whether the property may take null values. All properties may take null values except properties whose values are the intrinsic types (int, long, boolean, char). Properties of type Integer, Long, Boolean, and Character may take null values.



isPropertyApplicable
public boolean isPropertyApplicable(ExtendableObject containingObject)(Code)
Indicates if this property is applicable. An instance of an object containing this property is passed. This method should look to the values of the other properties in the object to determine if this property is applicable. If the property is not applicable then the UI should not show a value for this property nor allow it to be updated.



isSortable
public boolean isSortable()(Code)
Indicates whether users are able to sort views based on this property.



setIndexIntoScalarProperties
public void setIndexIntoScalarProperties(int indexIntoScalarProperties)(Code)



Fields inherited from net.sf.jmoney.model2.PropertyAccessor
protected String displayName(Code)(Java Doc)
protected int indexIntoConstructorParameters(Code)(Java Doc)
protected String localName(Code)(Java Doc)
protected PropertySet propertySet(Code)(Java Doc)

Methods inherited from net.sf.jmoney.model2.PropertyAccessor
public String getDisplayName()(Code)(Java Doc)
public int getIndexIntoConstructorParameters()(Code)(Java Doc)
public String getLocalName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public PropertySet getPropertySet()(Code)(Java Doc)
abstract public boolean isList()(Code)(Java Doc)
public boolean isScalar()(Code)(Java Doc)
public void setIndexIntoConstructorParameters(int indexIntoConstructorParameters)(Code)(Java Doc)

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.