Class ReportRTFObject
java.lang.Object
quadbase.reportdesigner.ReportElements.ReportElement
quadbase.reportdesigner.ReportElements.ReportCell
quadbase.reportdesigner.ReportElements.ReportRTFObject
- All Implemented Interfaces:
Serializable
This object is used to display a stream of data in RTF. This object has multi-page support.
- See Also:
-
Field Summary
FieldsFields inherited from class quadbase.reportdesigner.ReportElements.ReportElement
bgColor, borderColor, CHART, COLUMN, COLUMNHEADER, FORMULA, GRID, height, ID_TYPE, IMAGE, isLocked, LABEL, LINE, min_height, min_width, NONE, rotate_angle, ROTATE_CLOCKWISE, ROTATE_COUNTERCLOCKWISE, ROTATE_NONE, roundCornerRadius, roundCornersArray, RTFOBJECT, SECTION, securityMap, snap, SORT_X, SORT_Y, SORT_Z, SUBREPORT, TABLE, TABLEOFCONTENTS, TITLE, visible, vsnap, width, x -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a format to the available list of formats that can be used by formulas.voidapplyTemplate(ReportRTFObject _cell) Does nothingvoidcopy(ReportRTFObject _source) voidcopyTemplate(ReportRTFObject _cell) For internal use only.static ReportRTFObjectcreateReportRTFObject(DataInput in, int version) For internal use only.static ReportRTFObjectcreateReportRTFObject(Node node, int version) For internal use only.voiddeepCopy(ReportRTFObject _source) intFor internal use only.shortgetAlign()Get the horizontal alignment of this element.intdoubledoublebyte[]getData()Get the content as a byte array.Object[]getFullText(quadbase.reportdesigner.report.Report report, ReportTable tbl) booleanvoidFor internal use only.voidFor internal use onlyvoidremoveFormat(String formatName) Remove the format with the specific name.voidsetBorderClosed(boolean state) voidsetColumnCount(int columnC) Set the number of columns to display the content.voidsetColumnSpacing(double space) Set the spacing between columns if there are more than one columns.voidsetData(byte[] d) Same as setData(d, (Vector)null).voidvoidSet the content of this rich text field.voidsetFormats(Vector<Object[]> f) voidsetHTMLParameters(String dirLocation, String url, String prefix) API only feature to set export location and reference URL for images.voidwrite(DataOutput out) For internal use only.voidFor internal use onlyMethods inherited from class quadbase.reportdesigner.ReportElements.ReportCell
applyStyle, applyStyleButNotWH, applyStyleButNotWHCopyScripts, applyTemplate, applyTemplate, clone, copy, copyTemplate, createCell, createCell, createFormulaObject, createFormulaObjectFromName, createFormulaObjectFromText, deepCopy, equals, formulaReferenced, getColIndex, getColumn, getDataFormat, getEntry, getFormula, getFormulaName, getFormulaObj, getScriptedValue, getSQLType, setColumn, setDataFormat, setEntry, setFormula, setFormulaObj, setScriptedValueMethods inherited from class quadbase.reportdesigner.ReportElements.ReportElement
addSecurityLevel, applyImageTemplate, applyImageTemplateExceptBound, applySecurity, applyStyle, applyStyleButNotWH, applyTemplate, applyTemplate, applyTemplate, contains, contains, containsX, containsY, copy, copyStyleWithScriptsButNotWH, copyTemplate, createScriptObject, createScriptObjectFromName, deepCopy, doesElementSupportRoundCorners, equals, findElementsAbove, findElementsBelow, findElementsToLeft, findElementsToRight, findElementsToRight, findElementType, findGroupElementType, findMaxXr, findMaxYd, findMinX, findMinY, findSpecificElements, getAllColors, getBgColor, getBookmark, getBorder, getBorderColor, getBorderThickness, getBottomBorder, getCustomID, getDrawX, getDrawX, getDrawY, getDrawY, getDrillDownName, getElementType, getElementTypeName, getFirst2RowOfColumns, getFirst2RowOfColumns, getFont, getFontColor, getHeight, getHeight, getHeightOfElement, getHeightOfElement, getHeightToPoints, getHint, getID, getLeftBorder, getLink, getMaxXr, getMin_Height, getMin_Width, getMinX, getRefFont, getRefFontToDraw, getRightBorder, getRotateAngle, getRoundCornerRadius, getRoundCornersArray, getScript, getScriptName, getScriptObj, getSecuredScripts, getSecurityLevel, getSecurityLevels, getSecurityMap, getSnap, getStyleName, getTarget, getText, getTopBorder, getVAlign, getVSnap, getWidth, getWidth, getWidthOfElement, getWidthOfElement, getWidthToPoints, getX, getX, getXPos, getXPos, getXToPoints, getY, getY, getYPos, getYPos, getYToPoints, getZ, hasBorder, inBottomHalf, inLeftEnd, inLeftHalf, inRightEnd, inRightHalf, inTopHalf, isCrossTabElt, isDrawAgain, isLocked, isNoWrap, isResizeToFitContent, isSecurityLevelDefined, isSecurityTextScript, isShiftSecuredColX, isShiftSecuredColXIncludeHeaderAndFooter, isSnapToGrid, isUnderline, isVisible, moveForCrossTabFixedField, moveForCrossTabFixedField, newArrayX, newArrayY, removeScriptReferenced, removeSecurityLevel, renameSecurityLevel, resize, resizeForCrossTabFixedField, resizeForCrossTabFixedField, scriptReferenced, securityScriptReferenced, setAlign, setBgColor, setBookmark, setBorder, setBorderColor, setBorderThickness, setBorderThickness, setBorderThickness, setBorderThickness, setBottomBorder, setCustomID, setDrawAgain, setDrawX, setDrawX, setDrawY, setDrawY, setDrillDownName, setFont, setFontColor, setHeight, setHeight, setHint, setID, setID, setInchGridSpace, setLeftBorder, setLink, setLocked, setMinHeight, setMinWidth, setNoWrap, setResizeToFitContent, setRightBorder, setRotateAngle, setRotateAngle, setRoundCornerRadius, setRoundCornersArray, setScript, setScriptName, setScriptObj, setScriptObjNull, setSecurityLevelProperties, setSecurityMap, setSecurityTextScript, setShiftSecuredColX, setShiftSecuredColXIncludeHeaderAndFooter, setSnap, setSnapToGrid, setSnapToGrid, setStyleName, setTarget, setText, setTopBorder, setUnderline, setVAlign, setVisible, setVSnap, setWidth, setWidth, setX, setX, setXX, setXX, setY, setY, setYY, setYY, setZ, shift, shiftObjectsOnMove, shiftOnMove, sortElement, sortElement, sortElementHorizontally, sortElementInXYOrder, sortElementVertically, swapElements, switchSecurityProperties
-
Field Details
-
XMLTAG
- See Also:
-
-
Constructor Details
-
ReportRTFObject
public ReportRTFObject(byte[] d) -
ReportRTFObject
public ReportRTFObject()
-
-
Method Details
-
setData
-
getFullText
-
copy
-
deepCopy
-
copyTemplate
For internal use only. -
applyTemplate
Does nothing- Parameters:
_cell- the SubReportObject object being emulated
-
write
For internal use only.- Overrides:
writein classReportCell- Throws:
IOException
-
writeXML
Description copied from class:ReportCellFor internal use only- Overrides:
writeXMLin classReportCell- Throws:
IOException
-
createReportRTFObject
For internal use only.- Throws:
Exception
-
readXML
Description copied from class:ReportCellFor internal use only- Overrides:
readXMLin classReportCell- Throws:
Exception
-
createReportRTFObject
For internal use only.- Throws:
Exception
-
read
For internal use only.- Overrides:
readin classReportCell- Throws:
Exception
-
getFormats
-
setFormats
-
setData
public void setData(byte[] d) Same as setData(d, (Vector)null). -
setData
Set the content of this rich text field. If the text contains formulas, a vector of format names can be supplied will the content bytes to indicate the format to be used with each formula. See 'addFormat' to find out how to associate a format name to the actual IFormat object.- Parameters:
d- The byte array from an RTF file or an RTF formated stream.f- A vector of format names to be used for each formula in the embedded text.
-
addFormat
Add a format to the available list of formats that can be used by formulas. If a format with the same name already exists, the new format will over write the old. See 'setData' to find out to specify a format for each embedded formula.- Parameters:
formatName- The name of the format. The user can associate this name to any formula.format- The actual format.type- The type of the formula. STRING, LOGICAL, NUMERIC or TIMESTAMP.
-
removeFormat
Remove the format with the specific name. -
getData
public byte[] getData()Get the content as a byte array. -
isBorderClosed
public boolean isBorderClosed() -
setBorderClosed
public void setBorderClosed(boolean state) -
setColumnSpacing
Set the spacing between columns if there are more than one columns. The unit is inches. The default value is 0.25. The argument cannot be less than 0.- Throws:
IllegalArgumentException
-
getColumnSpacing
public double getColumnSpacing() -
setColumnCount
Set the number of columns to display the content. The value must be between 1 and 4 inclusive. The default number is 1.- Throws:
IllegalArgumentException
-
getColumnCount
public int getColumnCount() -
getActualColumnCount
public int getActualColumnCount()For internal use only. Determine the actual column count. This is the actual number of columns that can fit within this object. Each column is expected to have a width of at least 1 inch. Therefore, if columnCount + ((columnCount - 1) * columnSpacing is greater the width of this object, the column count must be reduced. This test is repeated until the number of columns can fit within this object. The acutal column count will be between 1 and columnCount inclusive. -
getColumnWidth
public double getColumnWidth() -
getFormatMap
-
setHTMLParameters
API only feature to set export location and reference URL for images. This method is only relevant when the report is exported to an output stream in HTML or DHTML format. When the report is exported, images within this rich text field will be saved in the specified location and named with the specific prefix. These images are referenced by the specific URL in the exported HTML stream.- Parameters:
dirLocation- The directory for saving the images.url- The URL directory to reference the images.prefix- The prefix for the generated image file names.
-
getSavedFileLocation
-
getSavedFileURL
-
getAlign
public short getAlign()Description copied from class:ReportElementGet the horizontal alignment of this element. Returns alignment constants as listed in IAlignConstants.- Overrides:
getAlignin classReportElement- See Also:
-