|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crystaldecisions.sdk.occa.report.data.Field
public abstract class Field
This object represents a report field in general.
| Constructor Summary | |
|---|---|
Field()
|
|
| 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)
|
void |
endElement(java.lang.String eleName,
java.util.Map objState)
|
PropertyBag |
getAttributes()
For internal use only. |
java.lang.String |
getDescription()
Returns a description of the field. |
java.lang.String |
getDisplayName(FieldDisplayNameType displayName,
java.util.Locale locale)
Returns the name of the field that has been formatted according to the value of the parameter displayNameType. |
java.lang.String |
getFormulaForm()
Returns the name of the field as it will be used in a formula. |
java.lang.String |
getHeadingText()
Returns the text used as a heading when the field is added to the report. |
boolean |
getIsPrintTime()
|
boolean |
getIsRecurring()
Returns true if the field is recurring, and false otherwise. |
int |
getLength()
Returns the maximum length the field's data may be (in bytes). |
java.lang.String |
getLongName(java.util.Locale locale)
Returns the fully qualified name of the field. |
java.lang.String |
getName()
Returns the name of the field. |
java.lang.String |
getShortName(java.util.Locale locale)
Returns the short name of the field. |
FieldValueType |
getType()
Returns what type of field this is. |
FieldValueType |
getValueTypeForFormatOption()
For internal use only |
boolean |
hasContent(java.lang.Object srcField)
|
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
|
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
|
void |
save(XMLWriter writer,
XMLSerializationContext ctxt)
|
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
|
void |
setAttributes(PropertyBag attr)
For internal use only. |
void |
setDescription(java.lang.String description)
Sets the description of the field. |
void |
setHeadingText(java.lang.String headingText)
Sets the text used as a heading when the field is added to the report. |
void |
setLength(int length)
Sets the maximum length the field's data may be (in bytes). |
void |
setName(java.lang.String name)
Sets the name of the field. |
void |
setType(FieldValueType valueType)
Sets what type of field this is. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
|
| 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.data.IField |
|---|
getKind |
| Constructor Detail |
|---|
public Field()
| Method Detail |
|---|
public java.lang.Object clone(boolean deepClone)
public void copyTo(java.lang.Object destObject,
boolean deepCopy)
public java.lang.Object createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
public void endElement(java.lang.String eleName,
java.util.Map objState)
public java.lang.String getDescription()
IFieldReturns a description of the field.
getDescription in interface IFieldString containing a description of the field.
public java.lang.String getDisplayName(FieldDisplayNameType displayName,
java.util.Locale locale)
IField
Returns the name of the field that has been formatted according to the value of the parameter
displayNameType.
getDisplayName in interface IFielddisplayName - Indicates how the display text should be formatted. It may be one of
the values listed under FieldDisplayNameType.locale - Formats the string according to a locale.
String containing the name of the field that has been formatted
according to the value of the parameter displayNameType.public java.lang.String getFormulaForm()
IFieldReturns the name of the field as it will be used in a formula. This is a unique identifier to avoid ambiguity in formula code. It is the same value as the one used in the CRW formula editor.
getFormulaForm in interface IFieldString containing the name of the field as it will be used in a
formula.public java.lang.String getHeadingText()
IFieldReturns the text used as a heading when the field is added to the report.
getHeadingText in interface IFieldString containing the text used as a heading when the field is added
to the report.public boolean getIsRecurring()
IField
Returns true if the field is recurring, and false otherwise. A
field is recurring if its contents change during the formatting of a report. A constant field
(not recurring) is one that doesn't change. The special field "Page Number," for example, is
a recurring field, while the special field "Report Title" is not.
getIsRecurring in interface IFieldtrue if the field is recurring, and false otherwise.public boolean getIsPrintTime()
public int getLength()
IFieldReturns the maximum length the field's data may be (in bytes).
getLength in interface IFieldString containing the maximum length the field's data may be (in
bytes).public java.lang.String getLongName(java.util.Locale locale)
IFieldReturns the fully qualified name of the field.
getLongName in interface IFieldlocale - The locale that will be used to localize the field.
String containing the fully qualified name of the field.public java.lang.String getName()
IField
Returns the name of the field. For DBField objects, the value returned by this
method is equivalent to the
IField.getDisplayName(FieldDisplayNameType, java.util.Locale) method.
getName in interface IFieldString containing the name of the field.public java.lang.String getShortName(java.util.Locale locale)
IFieldReturns the short name of the field.
getShortName in interface IFieldlocale - The locale that will be used to localize the field name.
String containing the short name of the field.public FieldValueType getType()
IFieldReturns what type of field this is. Do not confuse this property with Kind. Kind identifies what sort of report field this is, while Type identifies what data it stores. For example, a bitmap, string, 8 bit integer, chart, etc.
getType in interface IFieldFieldValueType object that specifies what type of field this is.public PropertyBag getAttributes()
For internal use only.
public boolean hasContent(java.lang.Object srcField)
public void readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
public void save(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOException
public void save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOException
public void saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOExceptionpublic void setDescription(java.lang.String description)
IFieldSets the description of the field.
setDescription in interface IFielddescription - A String containing a description of the field.public void setHeadingText(java.lang.String headingText)
IFieldSets the text used as a heading when the field is added to the report.
setHeadingText in interface IFieldheadingText - A String containing the text used as a heading when the
field is added to the report.public void setLength(int length)
IFieldSets the maximum length the field's data may be (in bytes).
setLength in interface IFieldlength - A String containing the maximum length the field's data may be
(in bytes).public void setName(java.lang.String name)
IField
Sets the name of the field. For DBField objects, the value returned by this
method is equivalent to the
IField.getDisplayName(FieldDisplayNameType, java.util.Locale) method.
setName in interface IFieldname - A String containing the name of the field.public void setType(FieldValueType valueType)
IFieldSets what type of field this is. Do not confuse this property with Kind. Kind identifies what sort of report field this is, while Type identifies what data it stores. For example, a bitmap, string, 8 bit integer, chart, etc.
setType in interface IFieldvalueType - A FieldValueType object that specifies what type of field
this is.public void setAttributes(PropertyBag attr)
For internal use only.
public void startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
public FieldValueType getValueTypeForFormatOption()
getValueTypeForFormatOption in interface IField
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||