|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextObject
This interface is used to manipulate the TextObject
.
The TextObject
represents a text object that is
found in a report. This interface enables you to retrieve
and set options for a text object in your report.
Method Summary | |
---|---|
boolean |
getEnableSuppressIfDuplicated()
|
IFontColor |
getFontColor()
Returns the color of the font for the first element of the first paragraph. |
int |
getMaxNumberOfLines()
Returns the maximum number of lines in the field as an int . |
Paragraphs |
getParagraphs()
Returns the paragraph object of the text field. |
ReadingOrder |
getReadingOrder()
Returns the reading order for the text field. |
boolean |
getSuppressEmbeddedFieldBlankLines()
|
java.lang.String |
getText()
Returns the text content of the text field. |
void |
setEnableSuppressIfDuplicated(boolean bSuppressIfDuplicated)
|
void |
setFontColor(IFontColor fontColor)
Sets the color of the font for the first element of the first paragraph. |
void |
setMaxNumberOfLines(int maxNumberOfLines)
Sets the maximum number of lines in the field. |
void |
setParagraphs(Paragraphs paragraphs)
Sets the paragraph object of the text field. |
void |
setReadingOrder(ReadingOrder readingOrder)
Sets the reading order for the text field. |
void |
setSuppressEmbeddedFieldBlankLines(boolean bSuppressEmbeddedFieldBlankLines)
|
Methods inherited from interface com.crystaldecisions.sdk.occa.report.definition.IReportObject |
---|
getBorder, getBorderMargins, getFormat, getHeight, getKind, getLeft, getLinkedURI, getName, getReplacementConditionFormulas, getReportPartBookmark, getSectionCode, getSectionName, getTop, getWidth, setBorder, setFormat, setHeight, setLeft, setLinkedURI, setName, setReplacementConditionFormulas, setReportPartBookmark, setSectionCode, setSectionName, setTop, setWidth |
Method Detail |
---|
IFontColor getFontColor()
Returns the color of the font for the first element of the first paragraph.
IFontColor
.setFontColor(com.crystaldecisions.sdk.occa.report.definition.IFontColor)
int getMaxNumberOfLines()
Returns the maximum number of lines in the field as an int
.
int
.Paragraphs getParagraphs()
Returns the paragraph object of the text field.
Paragraphs
.java.lang.String getText()
Returns the text content of the text field.
String
.boolean getEnableSuppressIfDuplicated()
boolean getSuppressEmbeddedFieldBlankLines()
void setFontColor(IFontColor fontColor)
Sets the color of the font for the first element of
the first paragraph. For this change to be persistent, use
IParagraphElement.setFontColor(IFontColor fontColor)
.
In order to set the font color, you will need to use syntax like:
ITextObject newText = (ITextObject) oldText.clone(true);
IFontColor fc = newText.getFontColor();
fc.setColor(java.awt.Color.red);
newText.setFontColor(fc);
objectController.modify(oldText, newText);
fontColor
- The color of the font for the first element of
the first paragraph as IFontColor
.void setMaxNumberOfLines(int maxNumberOfLines)
Sets the maximum number of lines in the field.
maxNumberOfLines
- The maximum number of lines in the field as an int
.void setParagraphs(Paragraphs paragraphs)
Sets the paragraph object of the text field.
paragraphs
- The paragraph object of the text field as Paragraphs
.ReadingOrder getReadingOrder()
Returns the reading order for the text field. Reading order can be either left to right, or right to left.
ReadingOrder
.void setReadingOrder(ReadingOrder readingOrder)
Sets the reading order for the text field. Reading order can be either left to right, or right to left.
readingOrder
- The reading order as ReadingOrder
.void setEnableSuppressIfDuplicated(boolean bSuppressIfDuplicated)
void setSuppressEmbeddedFieldBlankLines(boolean bSuppressEmbeddedFieldBlankLines)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |