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


java.lang.Object
   org.jfree.report.Group

Group
public class Group implements Serializable,Cloneable,Comparable(Code)
A report group. Reports can contain any number of (nested) groups. The order of the fields is not important. If the group does not contain any fields, the group spans the whole report from the first to the last row (such a group is called the default group).

The group's field list should not be modified after the group was added to the group list, or the results are undefined.

Groups of the same GroupList must have a subgroup relation. The designated child group must contain all fields of the direct parent plus at least one new field. There is no requirement, that the referenced field actually exists, if it doesn't, null is assumed as field value.

It is recommended that the name of the group is unique within the report. The name will not be used internally to identify the group, but most functions depend on a recognizable group name to identify the group to be processed.
author:
   David Gilbert
author:
   Thomas Morgner
See Also:   GroupList



Field Summary
final public static  StringANONYMOUS_GROUP_PREFIX
     The internal constant to mark anonymous group names.

Constructor Summary
public  Group()
     Constructs a group with no fields, and an empty header and footer.

Method Summary
public  voidaddField(String name)
     Adds a field to the group.
public  Objectclone()
     Clones this Element.
public  intcompareTo(Object o)
     Compares two objects (required to be instances of the Group class).
public  booleanequals(Object obj)
     Checks, whether the group is equal.
public  ListgetFields()
     Returns the list of fields for this group.
public  String[]getFieldsArray()
     Returns the group fields as array.
public  GroupFootergetFooter()
     Returns the group footer.
public  GroupHeadergetHeader()
     Returns the group header.
public  StringgetName()
     Returns the name of the group.
public  ReportDefinitiongetReportDefinition()
     Returns the assigned report definition of the group.
public  inthashCode()
     Computes a hashcode for this group.
public  voidsetFields(List c)
     Sets the fields for this group.
public  voidsetFooter(GroupFooter footer)
     Sets the footer for the group.
public  voidsetHeader(GroupHeader header)
     Sets the header for the group.
public  voidsetName(String name)
     Defines the name for this group.
public  voidsetReportDefinition(ReportDefinition reportDefinition)
     Assigns the report definition to the group and all bands in that group.
public  StringtoString()
     Returns a string representation of the group (useful for debugging).

Field Detail
ANONYMOUS_GROUP_PREFIX
final public static String ANONYMOUS_GROUP_PREFIX(Code)
The internal constant to mark anonymous group names.




Constructor Detail
Group
public Group()(Code)
Constructs a group with no fields, and an empty header and footer.




Method Detail
addField
public void addField(String name)(Code)
Adds a field to the group. The field names must correspond to the column names in the report's TableModel.
Parameters:
  name - the field name (null not permitted).
throws:
  NullPointerException - if the name is null



clone
public Object clone() throws CloneNotSupportedException(Code)
Clones this Element. a clone of this element.
throws:
  CloneNotSupportedException - should never be thrown.



compareTo
public int compareTo(Object o)(Code)
Compares two objects (required to be instances of the Group class). The group's field lists are compared, order of the fields does not matter.
Parameters:
  o - the to be compared object. an integer indicating the relative ordering of the two groups.



equals
public boolean equals(Object obj)(Code)
Checks, whether the group is equal. A group is considered equal to another group, if it defines the same fields as the other group.
Parameters:
  obj - the object to be checked true, if the object is a group instance with the same fields, falseotherwise.



getFields
public List getFields()(Code)
Returns the list of fields for this group. a list (unmodifiable) of fields for the group.



getFieldsArray
public String[] getFieldsArray()(Code)
Returns the group fields as array. The array must not be modified. the fields as string array.



getFooter
public GroupFooter getFooter()(Code)
Returns the group footer. the footer.



getHeader
public GroupHeader getHeader()(Code)
Returns the group header.

The group header is a report band that contains elements that should be printed at the start of a group. the group header.




getName
public String getName()(Code)
Returns the name of the group. This will never be null. the group name.



getReportDefinition
public ReportDefinition getReportDefinition()(Code)
Returns the assigned report definition of the group. the report definition (maybe null).



hashCode
public int hashCode()(Code)
Computes a hashcode for this group. the hashcode.



setFields
public void setFields(List c)(Code)
Sets the fields for this group. The given list must contain Strings defining the needed fields from the DataRow. Don't reference Function-Fields here, functions are not supported in th groupfield definition.
Parameters:
  c - the list containing strings.
throws:
  NullPointerException - if the given list is null or the list containsnull-values.



setFooter
public void setFooter(GroupFooter footer)(Code)
Sets the footer for the group.
Parameters:
  footer - the footer (null not permitted).
throws:
  NullPointerException - if the given footer is null.



setHeader
public void setHeader(GroupHeader header)(Code)
Sets the header for the group.
Parameters:
  header - the header (null not permitted).
throws:
  NullPointerException - if the given header is null



setName
public void setName(String name)(Code)
Defines the name for this group. The name must not be null.
Parameters:
  name - the group name (null not permitted).



setReportDefinition
public void setReportDefinition(ReportDefinition reportDefinition)(Code)
Assigns the report definition to the group and all bands in that group.
Parameters:
  reportDefinition - the report definition (maybe null).



toString
public String toString()(Code)
Returns a string representation of the group (useful for debugging). A string.



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.