|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.crystaldecisions.sdk.occa.report.definition.ReportObject
com.crystaldecisions.sdk.occa.report.definition.TextObject
public class TextObject
This object represents a text object that is
found in a report. This object enables you to retrieve
and set options for a text object in your report.When possible, use the
ITextObject
interface to manipulate this object.
Constructor Summary | |
---|---|
TextObject()
|
|
TextObject(ITextObject src)
|
|
TextObject(java.lang.String text)
|
Method Summary | |
---|---|
java.lang.Object |
clone(boolean deepClone)
|
void |
copyTo(java.lang.Object destObject,
boolean deepCopy)
|
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only. |
void |
disconnect()
|
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
void |
enumerateMembers(IMemberVisitor visitor)
For internal use only. |
com.crystaldecisions.sdk.occa.report.definition.EmbeddedContentType |
getEmbeddedContentType()
For internal use only. |
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. |
boolean |
hasContent(java.lang.Object srcTextObject)
|
boolean |
isConnected()
|
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only. |
void |
refresh()
|
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
For internal use only. |
void |
save(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
setEmbeddedContentType(com.crystaldecisions.sdk.occa.report.definition.EmbeddedContentType embeddedContentType)
For internal use only. |
void |
setEnableSuppressIfDuplicated(boolean bEnableSuppressIfDuplicated)
|
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 newReadingOrder)
Sets the reading order for the text field. |
void |
setSuppressEmbeddedFieldBlankLines(boolean bSuppressEmbeddedFieldBlankLines)
|
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
Methods inherited from class com.crystaldecisions.sdk.occa.report.definition.ReportObject |
---|
doControllerModification, getBorder, getBorderMargins, getControllableMixin, getFormat, getHeight, getKind, getLeft, getLinkedURI, getName, getReplacementConditionFormulas, getReportPartBookmark, getSectionCode, getSectionName, getTop, getVersion, getWidth, isDirectlyControllable, setBorder, setFormat, setHeight, setKind, setLeft, setLinkedURI, setName, setReplacementConditionFormulas, setReportPartBookmark, setSectionCode, setSectionName, setTop, setVersion, setWidth |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Constructor Detail |
---|
public TextObject(ITextObject src)
public TextObject()
public TextObject(java.lang.String text)
Method Detail |
---|
public java.lang.Object clone(boolean deepClone)
clone
in class ReportObject
public void copyTo(java.lang.Object destObject, boolean deepCopy)
copyTo
in class ReportObject
public java.lang.Object createMember(java.lang.String eleName, org.xml.sax.Attributes attrs, XMLSerializationContext ctxt, java.util.Map objState, boolean[] bLoaded)
createMember
in class ReportObject
public void endElement(java.lang.String eleName, java.util.Map objState)
ReportObject
For internal use only.
endElement
in class ReportObject
public ReadingOrder getReadingOrder()
ITextObject
Returns the reading order for the text field. Reading order can be either left to right, or right to left.
getReadingOrder
in interface ITextObject
ReadingOrder
.public IFontColor getFontColor()
ITextObject
Returns the color of the font for the first element of the first paragraph.
getFontColor
in interface ITextObject
IFontColor
.ITextObject.setFontColor(com.crystaldecisions.sdk.occa.report.definition.IFontColor)
public int getMaxNumberOfLines()
ITextObject
Returns the maximum number of lines in the field as an int
.
getMaxNumberOfLines
in interface ITextObject
int
.public Paragraphs getParagraphs()
ITextObject
Returns the paragraph object of the text field.
getParagraphs
in interface ITextObject
Paragraphs
.public java.lang.String getText()
ITextObject
Returns the text content of the text field.
getText
in interface ITextObject
String
.public boolean getEnableSuppressIfDuplicated()
getEnableSuppressIfDuplicated
in interface ITextObject
public boolean getSuppressEmbeddedFieldBlankLines()
getSuppressEmbeddedFieldBlankLines
in interface ITextObject
public com.crystaldecisions.sdk.occa.report.definition.EmbeddedContentType getEmbeddedContentType()
public boolean hasContent(java.lang.Object srcTextObject)
hasContent
in class ReportObject
public void readElement(java.lang.String eleName, java.lang.String sVal, org.xml.sax.Attributes attrs, java.util.Map objState)
readElement
in class ReportObject
public void save(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
save
in class ReportObject
java.io.IOException
public void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt) throws java.io.IOException
save
in class ReportObject
java.io.IOException
public void saveContents(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
saveContents
in class ReportObject
java.io.IOException
public void setFontColor(IFontColor fontColor)
ITextObject
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);
setFontColor
in interface ITextObject
fontColor
- The color of the font for the first element of
the first paragraph as IFontColor
.public void setMaxNumberOfLines(int maxNumberOfLines)
ITextObject
Sets the maximum number of lines in the field.
setMaxNumberOfLines
in interface ITextObject
maxNumberOfLines
- The maximum number of lines in the field as an int
.public void setReadingOrder(ReadingOrder newReadingOrder)
ITextObject
Sets the reading order for the text field. Reading order can be either left to right, or right to left.
setReadingOrder
in interface ITextObject
newReadingOrder
- The reading order as ReadingOrder
.public void setParagraphs(Paragraphs paragraphs)
ITextObject
Sets the paragraph object of the text field.
setParagraphs
in interface ITextObject
paragraphs
- The paragraph object of the text field as Paragraphs
.public void setEnableSuppressIfDuplicated(boolean bEnableSuppressIfDuplicated)
setEnableSuppressIfDuplicated
in interface ITextObject
public void setSuppressEmbeddedFieldBlankLines(boolean bSuppressEmbeddedFieldBlankLines)
setSuppressEmbeddedFieldBlankLines
in interface ITextObject
public void setEmbeddedContentType(com.crystaldecisions.sdk.occa.report.definition.EmbeddedContentType embeddedContentType)
public void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
startElement
in class ReportObject
public boolean isConnected()
public void disconnect()
public void refresh()
public void enumerateMembers(IMemberVisitor visitor)
enumerateMembers
in class ReportObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |