com.java4less.rreport
Class RCombo

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

public class RCombo
extends RObject

Class for printing a string or image base on a key. see also RObject.


Field Summary
 int Align
          Valid values are ALIGN_LEFT, ALIGN_RIGHT and ALIGN_CENTER.
 java.awt.Color FontColor
          color of the value
 java.awt.Font FontType
          font of the value
 java.awt.Color KeyFontColor
          color of the key
 java.awt.Font KeyFontType
          font of the key
 java.lang.String[] Keys
          key used to select the value from the "Values" array.
 java.lang.String lastPrintedValue
          internal use.
 boolean printKey
          If false, the key will not be printed, only the value assigned to it.
 java.lang.Object[] Values
          values to ne painted, can contain strings, numbers and images (or RImageFile)
 
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
RCombo()
           
RCombo(java.lang.String[] pKeys, java.lang.Object[] pValues)
          The pValues parameter can be an array of strings or images.
 
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)
          prints object at px,py using Value as runtime 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

Values

public java.lang.Object[] Values
values to ne painted, can contain strings, numbers and images (or RImageFile)

Keys

public java.lang.String[] Keys
key used to select the value from the "Values" array.

FontType

public java.awt.Font FontType
font of the value

FontColor

public java.awt.Color FontColor
color of the value

KeyFontType

public java.awt.Font KeyFontType
font of the key

KeyFontColor

public java.awt.Color KeyFontColor
color of the key

printKey

public boolean printKey
If false, the key will not be printed, only the value assigned to it.

Align

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

lastPrintedValue

public java.lang.String lastPrintedValue
internal use.
Constructor Detail

RCombo

public RCombo()

RCombo

public RCombo(java.lang.String[] pKeys,
              java.lang.Object[] pValues)
The pValues parameter can be an array of strings or images.
Method Detail

canHTML

public boolean canHTML()
supports HTML?
Overrides:
canHTML 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)
prints object at px,py using Value as runtime value
Overrides:
print 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