com.java4less.rreport
Class RField

java.lang.Object
  |
  +--com.java4less.rreport.RObject
        |
        +--com.java4less.rreport.RField

public class RField
extends RObject

RField will paint, dates, numbers and strings. See also RObject
Note: you can set myField.setConstant(true) and use following system values

[Page] : for current page (only in page header and footer pages)
[Pages] : for number of pages (only in page header and footer pages)
* [Date] : for current Date. See also RReport.setDateFormat() to change the date format.


Field Summary
 int Align
          Valid values are ALIGN_LEFT, ALIGN_RIGHT and ALIGN_CENTER.
 boolean Compress
          the field will shrink if
 java.lang.String dateFormat
          Format string used for dates.Examples: "dd/MM/yyyy"
 boolean evaluateExpression
          evaluation expresions?
 boolean Expand
          the field will increase its size if the data requires it
 java.awt.Color FontColor
          color of the font
 java.awt.Font FontType
          font to be used
 java.lang.String format
          Format string used for dates and numbers.Examples: "dd/MM/yyyy" for a date or "#####.00" for a number.
 int maxChars
          maximum number of character per line
 boolean multiLine
          if true the words the text will be printed in several lines if needed.
 int rotation
          rotate text
static int TOTAL_DEFAULT
           
static int TOTAL_GROUP
           
static int TOTAL_PAGE
           
static int TOTAL_REPORT
           
 int totalFunctionsScope
          how are the total functions (sum, avg, min and max) going to be applied
 
Fields inherited from class com.java4less.rreport.RObject
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, constant, DHTMLLink, fieldName, height, name, selectable, tooltip, triggerAction, visible, width, x, xPath, y
 
Constructor Summary
RField()
           
 
Method Summary
 boolean canHTML()
          supports HTML?
 void importLine(java.lang.String key, java.lang.String val)
          load properties from definition file.
 void print(java.awt.Graphics g, double px, double py, java.lang.Object Value)
          print object at the specified location (in pixels) using the specified value.
 java.lang.String toHTML(java.lang.Object Value)
          convert value to HTML
 
Methods inherited from class com.java4less.rreport.RObject
convertColor, convertDoubleList, convertFont, convertList, convertToCM, convertToPixels, createFile, getActivateAction, getdefaultValue, getruntimeValue, isConstant, isVisible, setActivateAction, setConstant, setdefaultValue, setruntimeValue, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FontType

public java.awt.Font FontType
font to be used

FontColor

public java.awt.Color FontColor
color of the font

Expand

public boolean Expand
the field will increase its size if the data requires it

totalFunctionsScope

public int totalFunctionsScope
how are the total functions (sum, avg, min and max) going to be applied

TOTAL_DEFAULT

public static int TOTAL_DEFAULT

TOTAL_REPORT

public static int TOTAL_REPORT

TOTAL_PAGE

public static int TOTAL_PAGE

TOTAL_GROUP

public static int TOTAL_GROUP

rotation

public int rotation
rotate text

evaluateExpression

public boolean evaluateExpression
evaluation expresions? expresiona must start with "=". For example =3+4.

Compress

public boolean Compress
the field will shrink if

Align

public int Align
Valid values are ALIGN_LEFT, ALIGN_RIGHT and ALIGN_CENTER.

format

public java.lang.String format
Format string used for dates and numbers.Examples: "dd/MM/yyyy" for a date or "#####.00" for a number. Dates a formatted using the java.text. SimpleDateFormat and numbers using the java.text.DecimalFormat

dateFormat

public java.lang.String dateFormat
Format string used for dates.Examples: "dd/MM/yyyy"

multiLine

public boolean multiLine
if true the words the text will be printed in several lines if needed. All lines must however fit into the current page.

maxChars

public int maxChars
maximum number of character per line
Constructor Detail

RField

public RField()
Method Detail

canHTML

public boolean canHTML()
supports HTML?
Overrides:
canHTML in class RObject

importLine

public void importLine(java.lang.String key,
                       java.lang.String val)
load properties from definition file. Used by RReportImp.
Overrides:
importLine in class RObject

toHTML

public java.lang.String toHTML(java.lang.Object Value)
convert value to HTML
Overrides:
toHTML in class RObject

print

public void print(java.awt.Graphics g,
                  double px,
                  double py,
                  java.lang.Object Value)
Description copied from class: RObject
print object at the specified location (in pixels) using the specified value.
Overrides:
print in class RObject