Java Doc for FormulaField.java in  » Report » datavision-1.1.0 » jimm » datavision » field » 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 » datavision 1.1.0 » jimm.datavision.field 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.Observable
      jimm.datavision.Element
         jimm.datavision.field.Field
            jimm.datavision.field.FormulaField

FormulaField
public class FormulaField extends Field implements Observer(Code)
A formula field represents a formula calculated on-the-fly. The value of a formula field holds a Formula object. (In the XML, the formula field's value is the id of the formula.)
author:
   Jim Menard, jimm@io.com


Field Summary
protected  Formulaformula
    

Constructor Summary
public  FormulaField(Long id, Report report, Section section, Object value, boolean visible)
     Constructs a formula field with the specified id in the specified report section whose Formula 's id is value.

Method Summary
public  booleancanBeAggregated()
     This override returns true if this formula is in a detail section.
public  CollectioncolumnsUsed()
     Returns a collection of the columns used in the formula.
public  StringdesignLabel()
    
public  StringdragString()
     Not really used; we drag formulas, not formula fields.
protected  voidfinalize()
    
public  StringformulaString()
    
public  FormulagetFormula()
     Returns the formula.
public  ObjectgetValue()
     Returns the value of this field.
public  FieldWidgetmakeWidget(SectionWidget sw)
    
public  booleanrefersTo(Field f)
    
public  booleanrefersTo(Formula f)
    
public  booleanrefersTo(UserColumn uc)
    
public  booleanrefersTo(Parameter p)
    
public  voidsetFormula(Formula newFormula)
     Sets the formula.
public  StringtypeString()
    
public  voidupdate(Observable o, Object arg)
    
public  CollectionuserColumnsUsed()
     Returns a collection of the user columns used in the formula.

Field Detail
formula
protected Formula formula(Code)




Constructor Detail
FormulaField
public FormulaField(Long id, Report report, Section section, Object value, boolean visible)(Code)
Constructs a formula field with the specified id in the specified report section whose Formula 's id is value.
Parameters:
  id - the new field's id
Parameters:
  report - the report containing this element
Parameters:
  section - the report section in which the field resides
Parameters:
  value - the id of a formula
Parameters:
  visible - show/hide flag




Method Detail
canBeAggregated
public boolean canBeAggregated()(Code)
This override returns true if this formula is in a detail section. We don't really know that this formula returns a number, so we'll err on the side of allowing aggregation. true if this field can be aggregated



columnsUsed
public Collection columnsUsed()(Code)
Returns a collection of the columns used in the formula. This is used by the report's query when it is figuring out what columns and tables are used by the report. Calls Formula.columnsUsed . a possibly empty collection of database columns
See Also:   jimm.datavision.source.Query.findSelectablesUsed



designLabel
public String designLabel()(Code)



dragString
public String dragString()(Code)
Not really used; we drag formulas, not formula fields.



finalize
protected void finalize() throws Throwable(Code)



formulaString
public String formulaString()(Code)



getFormula
public Formula getFormula()(Code)
Returns the formula. the formula



getValue
public Object getValue()(Code)
Returns the value of this field. For formula fields, this is the value generated by evaluating the Formula . the result of evaluating the formula



makeWidget
public FieldWidget makeWidget(SectionWidget sw)(Code)



refersTo
public boolean refersTo(Field f)(Code)



refersTo
public boolean refersTo(Formula f)(Code)



refersTo
public boolean refersTo(UserColumn uc)(Code)



refersTo
public boolean refersTo(Parameter p)(Code)



setFormula
public void setFormula(Formula newFormula)(Code)
Sets the formula.
Parameters:
  newFormula - the new formula



typeString
public String typeString()(Code)



update
public void update(Observable o, Object arg)(Code)



userColumnsUsed
public Collection userColumnsUsed()(Code)
Returns a collection of the user columns used in the formula. This is used by the report's query when it is figuring out what columns, tables, and user columns are used by the report. Calls Formula.userColumnsUsed . a possibly empty collection of user columns
See Also:   jimm.datavision.source.Query.findSelectablesUsed



Fields inherited from jimm.datavision.field.Field
final public static double DEFAULT_HEIGHT(Code)(Java Doc)
final public static double DEFAULT_WIDTH(Code)(Java Doc)
protected Border border(Code)(Java Doc)
protected Rectangle bounds(Code)(Java Doc)
protected FormattedValueCache cache(Code)(Java Doc)
protected Format format(Code)(Java Doc)
protected Long id(Code)(Java Doc)
static Long maxIdSeen(Code)(Java Doc)
protected Object value(Code)(Java Doc)

Methods inherited from jimm.datavision.field.Field
public boolean canBeAggregated()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public static Field create(Long id, Report report, Section section, String type, Object value, boolean visible)(Code)(Java Doc)
public static Field createFromDragString(Report report, String str)(Code)(Java Doc)
public String designLabel()(Code)(Java Doc)
abstract public String dragString()(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
abstract public String formulaString()(Code)(Java Doc)
public Border getBorder()(Code)(Java Doc)
public Border getBorderOrDefault()(Code)(Java Doc)
public Rectangle getBounds()(Code)(Java Doc)
public Format getFormat()(Code)(Java Doc)
public Object getId()(Code)(Java Doc)
public double getOutputHeight()(Code)(Java Doc)
public Object getValue()(Code)(Java Doc)
public FieldWidget makeWidget(SectionWidget sw)(Code)(Java Doc)
public boolean refersTo(Field f)(Code)(Java Doc)
public boolean refersTo(Formula f)(Code)(Java Doc)
public boolean refersTo(UserColumn uc)(Code)(Java Doc)
public boolean refersTo(Parameter p)(Code)(Java Doc)
public void setBorder(Border newBorder)(Code)(Java Doc)
public void setBounds(Rectangle newBounds)(Code)(Java Doc)
public void setFormat(Format newFormat)(Code)(Java Doc)
public void setValue(Object newValue)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
abstract public String typeString()(Code)(Java Doc)
public void update(Observable o, Object arg)(Code)(Java Doc)
protected void writeFieldGuts(XMLWriter out)(Code)(Java Doc)
public void writeXML(XMLWriter out)(Code)(Java Doc)

Fields inherited from jimm.datavision.Element
protected Report report(Code)(Java Doc)
protected Section section(Code)(Java Doc)
protected boolean visible(Code)(Java Doc)

Methods inherited from jimm.datavision.Element
public Report getReport()(Code)(Java Doc)
public Section getSection()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void setSection(Section s)(Code)(Java Doc)
public void setVisible(boolean newVisible)(Code)(Java Doc)
public void update(Observable o, Object arg)(Code)(Java Doc)
abstract public void writeXML(XMLWriter out)(Code)(Java Doc)

Methods inherited from java.util.Observable
public synchronized void addObserver(Observer o)(Code)(Java Doc)
protected synchronized void clearChanged()(Code)(Java Doc)
public synchronized int countObservers()(Code)(Java Doc)
public synchronized void deleteObserver(Observer o)(Code)(Java Doc)
public synchronized void deleteObservers()(Code)(Java Doc)
public synchronized boolean hasChanged()(Code)(Java Doc)
public void notifyObservers()(Code)(Java Doc)
public void notifyObservers(Object arg)(Code)(Java Doc)
protected synchronized void setChanged()(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.