|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.java4less.rreport.RObject | +--com.java4less.rreport.RField
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 |
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. |
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, 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 |
public java.awt.Font FontType
public java.awt.Color FontColor
public boolean Expand
public boolean Compress
public int Align
public java.lang.String format
public java.lang.String dateFormat
public boolean multiLine
public int maxChars
Constructor Detail |
public RField()
Method Detail |
public boolean canHTML()
canHTML
in class RObject
public void importLine(java.lang.String key, java.lang.String val)
importLine
in class RObject
public java.lang.String toHTML(java.lang.Object Value)
toHTML
in class RObject
public void print(java.awt.Graphics g, double px, double py, java.lang.Object Value)
RObject
print
in class RObject
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |