com.java4less.rreport
Class RCheck

java.lang.Object
  |
  +--com.java4less.rreport.RObject
        |
        +--com.java4less.rreport.RPicture
              |
              +--com.java4less.rreport.RCheck
All Implemented Interfaces:
java.awt.image.ImageObserver

public class RCheck
extends RPicture
implements java.awt.image.ImageObserver

Class for printing a boolean value. See also RObject.


Field Summary
 java.lang.String imageHTMLFalse
          Image for FALSE false.
 java.lang.String imageHTMLTrue
          Image for TRUE false.
 
Fields inherited from class com.java4less.rreport.RPicture
currentImage, ImageHTMLAddress, scale
 
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
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
RCheck()
          uses the default images.
RCheck(RImageFile TrueImage, RImageFile FalseImage)
          Uses the images you pass as parameters to display the value.
 
Method Summary
 boolean canHTML()
          supports HTML?
 RImageFile getFalseImage()
           
 RImageFile getTrueImage()
           
 boolean imageUpdate(java.awt.Image I, int infoflags, int x, int y, int w, int h)
          method of java.awt.image.ImageObserver interface
 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)
          see RObject
 void setFalseImage(RImageFile f)
           
 void setTrueImage(RImageFile f)
           
 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

imageHTMLTrue

public java.lang.String imageHTMLTrue
Image for TRUE false. Url used for exorting to HTML.

imageHTMLFalse

public java.lang.String imageHTMLFalse
Image for FALSE false. Url used for exorting to HTML.
Constructor Detail

RCheck

public RCheck()
uses the default images. If the value is false nothing is displayed, if the value is true a tick is displayed.

RCheck

public RCheck(RImageFile TrueImage,
              RImageFile FalseImage)
Uses the images you pass as parameters to display the value.
Method Detail

canHTML

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

imageUpdate

public boolean imageUpdate(java.awt.Image I,
                           int infoflags,
                           int x,
                           int y,
                           int w,
                           int h)
Description copied from class: RPicture
method of java.awt.image.ImageObserver interface
Specified by:
imageUpdate in interface java.awt.image.ImageObserver
Overrides:
imageUpdate in class RPicture

toHTML

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

print

public void print(java.awt.Graphics g,
                  double px,
                  double py,
                  java.lang.Object Value)
Description copied from class: RPicture
see RObject
Overrides:
print in class RPicture

setTrueImage

public void setTrueImage(RImageFile f)

setFalseImage

public void setFalseImage(RImageFile f)

getTrueImage

public RImageFile getTrueImage()

getFalseImage

public RImageFile getFalseImage()

importLine

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