Java Doc for ReportProperties.java in  » Report » pentaho-report » org » jfree » report » util » 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 » Report » pentaho report » org.jfree.report.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.report.util.ReportProperties

ReportProperties
public class ReportProperties implements Serializable,Cloneable(Code)
The report properties is a hashtable with string keys. ReportProperties are bound to a report as a general purpose storage. ReportProperties bound to a JFreeReport object are visible to all generated report-state chains. A ReportState will inherit all ReportProperties bound to the JFreeReport-object when the ReportState.StartState object is created. Properties bound to the report definition after the report state is created are not visible to the ReportState and its children.

ReportProperties bound to a ReportState are not visible to the report definition (the JFreeReport object), but are visible to all ReportStates of that ReportState-chain. So when you add a property at the end of a report run to a ReportState, the value of this property will be visible to all ReportStates when the report is restarted at a certain point.

ReportProperties can be seen as a stateless shared report internal storage area. All functions have access to the properties by using the ReportState.getProperty() and ReportState.setProperty() functions.

For a list of defined default properties, have a look at the org.jfree.report.JFreeReport class.
author:
   Thomas Morgner




Constructor Summary
public  ReportProperties(ReportProperties props)
     Copy constructor.
public  ReportProperties()
     Default constructor.

Method Summary
public  voidclear()
     Removes all properties stored in this collection.
public  Objectclone()
     Clones the properties.
public  booleancontainsKey(String key)
     Checks whether the given key is stored in this collection of ReportProperties.
Parameters:
  key - the property key.
public  booleancontainsMarkedProperties()
     Returns true, if there is at least one marked property.
public  Objectget(String key)
     Retrieves the value stored for a key in this properties collection.
Parameters:
  key - the property key.
public  Objectget(String key, Object defaultValue)
     Retrieves the value stored for a key in this properties collection, and returning the default value if the key was not stored in this properties collection.
Parameters:
  key - the property key.
Parameters:
  defaultValue - the default value to be returned when the key is not stored inthis properties collection.
public  ReportPropertiesgetMasterProperties()
     Returns the fall-back property-collection.
public  booleanisMarked(String property)
     Returns true if the specified property is marked, and false otherwise.
Parameters:
  property - the property key.
public  String[]keyArray()
     Returns all defined keys as string-array.
public  Iteratorkeys()
     Returns all property keys as enumeration.
public  IteratormarkedKeys()
     Marks a property.
public  voidput(String key, Object value)
     Adds a property to this properties collection.
public  voidsetMarked(String property, boolean marked)
     Marks a property.
public  voidsetMasterProperties(ReportProperties masterProperties)
     Defines the fall-back property-collection.
public  intsize()
     Returns the number of entries in this collection.


Constructor Detail
ReportProperties
public ReportProperties(ReportProperties props)(Code)
Copy constructor.
Parameters:
  props - an existing ReportProperties instance.



ReportProperties
public ReportProperties()(Code)
Default constructor.




Method Detail
clear
public void clear()(Code)
Removes all properties stored in this collection.



clone
public Object clone() throws CloneNotSupportedException(Code)
Clones the properties. a copy of this ReportProperties object.
throws:
  CloneNotSupportedException - this should never happen.



containsKey
public boolean containsKey(String key)(Code)
Checks whether the given key is stored in this collection of ReportProperties.
Parameters:
  key - the property key. true, if the given key is known.



containsMarkedProperties
public boolean containsMarkedProperties()(Code)
Returns true, if there is at least one marked property. true, if there are some properties marked, false otherwise.



get
public Object get(String key)(Code)
Retrieves the value stored for a key in this properties collection.
Parameters:
  key - the property key. The stored value, or null if the key does not exist in thiscollection.



get
public Object get(String key, Object defaultValue)(Code)
Retrieves the value stored for a key in this properties collection, and returning the default value if the key was not stored in this properties collection.
Parameters:
  key - the property key.
Parameters:
  defaultValue - the default value to be returned when the key is not stored inthis properties collection. The stored value, or the default value if the key does not exist in thiscollection.



getMasterProperties
public ReportProperties getMasterProperties()(Code)
Returns the fall-back property-collection. If defined, this collection will be used if a queried property is not defined in this collection. the fall-back collection.



isMarked
public boolean isMarked(String property)(Code)
Returns true if the specified property is marked, and false otherwise.
Parameters:
  property - the property key. true for marked properties, false otherwise.



keyArray
public String[] keyArray()(Code)
Returns all defined keys as string-array. the keys as array.



keys
public Iterator keys()(Code)
Returns all property keys as enumeration. an enumeration of the property keys.



markedKeys
public Iterator markedKeys()(Code)
Marks a property. Marking was a historical process that made the property available in the report's datarow. Since version 0.8.9, all properties are part of the data-row by default. all keys



put
public void put(String key, Object value)(Code)
Adds a property to this properties collection. If a property with the given name exist, the property will be replaced with the new value. If the value is null, the property will be removed.
Parameters:
  key - the property key.
Parameters:
  value - the property value.



setMarked
public void setMarked(String property, boolean marked)(Code)
Marks a property.
Parameters:
  property - the property key.
Parameters:
  marked - boolean.



setMasterProperties
public void setMasterProperties(ReportProperties masterProperties)(Code)
Defines the fall-back property-collection. If defined, this collection will be used if a queried property is not defined in this collection.
Parameters:
  masterProperties - the fall-back collection.



size
public int size()(Code)
Returns the number of entries in this collection. the number of properties defined here.



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.