public class FieldElement extends AbstractValueElement implements ParagraphProperties, TextProperties, TextInterpretationProperties, com.inet.report.ReferenceHolder, HyperlinkProperties, BorderProperties
FieldElement is an object like a label but the content of it comes dynamically from a field, i.e. a DatabaseField, FormulaField,
PromptField etc. With this class you can add a dynamic content into a section of your report. Add an instance of this class with method
Section.addFieldElement(Field, int, int, int, int) in class Section. If you want to insert a field into a Text using this class is wrong, use
FieldPart.
Fields fields = engine.getFields();
Area area = engine.getArea("D");
Section section = area.getSection(0);
FieldElement fElem = section.addFieldElement(fields.getDatabaseField(0),0,0,1000,220);
code example: get existing FieldElements and change the property color
Area area = engine.getArea("D");
Section section = area.getSection(0);
Vector elementsV = section.getElementsV();
for(int i=0;i< elementsV.size();i++){
Element elem = (Element)elementsV.elementAt(i);
if(elem instanceof FieldElement){
FieldElement fElem = (FieldElement)elem;
fElem.setFontColor(CoderXML.COLOR_RED);
}
}
If you need a destined FieldElement you have to check some properties, to be sure having the right one.BOX, CHART, CROSSTAB, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, FORMFIELD, INTERACTIVE_SORTING, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPARTINDENT_DEFAULT, LINE_SPACING_ABSOLUTE, LINE_SPACING_RELATIVEGLYPH_DEFAULT, GLYPH_DOWN, GLYPH_LEFT, GLYPH_RIGHT, GLYPH_UP, ROTATE_0, ROTATE_180, ROTATE_270, ROTATE_90ADVANCED_HTML_TEXT, HTML_TEXT, PLAIN_TEXT, RTF_TEXTLINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SINGLE, NO_LINEAM_PM_AFTER, AM_PM_BEFORE, BRACKETED, DATE_ONLY_ORDER, DATE_TIME_ORDER, DAY_MONTH_YEAR, DAY_OF_WEEK_ENCLOSURE_ANGLE, DAY_OF_WEEK_ENCLOSURE_NONE, DAY_OF_WEEK_ENCLOSURE_PARENTHESIS, DAY_OF_WEEK_ENCLOSURE_SQUARED, FIXED_SYMBOL, FLOATING_SYMBOL, GREGORIAN_CALENDAR, GREGORIAN_US_CALENDAR, HIJRI_CALENDAR, JAPANESE_CALENDAR, KOREAN_CALENDAR, LEADING_CURRENCY_INSIDE_NEGATIVE, LEADING_CURRENCY_OUTSIDE_NEGATIVE, LEADING_DAY_OF_WEEK, LEADING_MINUS, LEADING_ZERO_NUMERIC_DAY, LEADING_ZERO_NUMERIC_MONTH, LONG_DAY_OF_WEEK, LONG_ERA, LONG_MONTH, LONG_YEAR, MONTH_DAY_YEAR, NOT_NEGATIVE, NOT_USING_SYSTEM_DEFAULTS, NO_DAY, NO_DAY_OF_WEEK, NO_ERA, NO_HOUR, NO_MINUTE, NO_MONTH, NO_SYMBOL, NO_YEAR, NUMBER_FORMAT_CURRENCY, NUMBER_FORMAT_FRACTIONAL, NUMBER_FORMAT_INTEGER, NUMBER_FORMAT_PERCENT, NUMERAL_LANGUAGE_ARABIC, NUMERAL_LANGUAGE_BENGALI, NUMERAL_LANGUAGE_DEVANAGARI, NUMERAL_LANGUAGE_EASTERN_ARABIC, NUMERAL_LANGUAGE_ETHIOPIC, NUMERAL_LANGUAGE_EUROPEAN, NUMERAL_LANGUAGE_GUJARATI, NUMERAL_LANGUAGE_GURMUKHI, NUMERAL_LANGUAGE_KANNADA, NUMERAL_LANGUAGE_KHMER, NUMERAL_LANGUAGE_LAO, NUMERAL_LANGUAGE_MALAYALAM, NUMERAL_LANGUAGE_MONGOLIAN, NUMERAL_LANGUAGE_MYANMAR, NUMERAL_LANGUAGE_ORIYA, NUMERAL_LANGUAGE_TAMIL, NUMERAL_LANGUAGE_TELUGU, NUMERAL_LANGUAGE_THAI, NUMERAL_LANGUAGE_TIBETAN, NUMERIC_DAY, NUMERIC_HOUR, NUMERIC_HOUR_NO_LEADING_ZERO, NUMERIC_MINUTE, NUMERIC_MINUTE_NO_LEADING_ZERO, NUMERIC_MONTH, NUMERIC_NO_LEADING_ZERO, NUMERIC_NO_SECOND, NUMERIC_SECOND, ONE_OR_ZERO, ROUND_CEILING, ROUND_DOWN, ROUND_FLOOR, ROUND_HALF_DOWN, ROUND_HALF_EVEN, ROUND_HALF_UP, ROUND_UP, SHORT_DAY_OF_WEEK, SHORT_ERA, SHORT_MONTH, SHORT_YEAR, TAIWANESE_CALENDAR, THAI_CALENDAR, TIME_DATE_ORDER, TIME_ONLY_ORDER, TRAILING_CURRENCY_INSIDE_NEGATIVE, TRAILING_CURRENCY_OUTSIDE_NEGATIVE, TRAILING_DAY_OF_WEEK, TRAILING_MINUS, TRUE_OR_FALSE, TWELVE_HOURS, TWENTY_FOUR_HOURS, T_OR_F, USE_CUSTOM_FORMAT, USE_SYSTEM_LONG_DATE, USE_SYSTEM_LONG_TIME, USE_SYSTEM_MEDIUM_DATE, USE_SYSTEM_MEDIUM_TIME, USE_SYSTEM_SHORT_DATE, USE_SYSTEM_SHORT_TIME, YEAR_MONTH_DAY, YES_OR_NO, Y_OR_NFONT_DIALOG, FONT_MONOSPACED, FONT_SANS_SERIF, FONT_SERIF, FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_STRIKETHROUGH, FONT_STYLE_UNDERLINEALIGN_HORIZONTAL_CENTER, ALIGN_HORIZONTAL_DEFAULT, ALIGN_HORIZONTAL_JUSTIFIED, ALIGN_HORIZONTAL_LEFT, ALIGN_HORIZONTAL_RIGHT| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
copy()
Creates a serializable copy of this Element.
|
java.lang.String |
getBaseUrl()
Returns the currently set base URL for relative URLs.
|
FormulaField |
getBaseUrlFormula()
Returns the property formula set for the base URL property.
|
int |
getFirstLineIndent()
Returns the value of the property 'first line indent'.
|
FormulaField |
getFirstLineIndentFormula()
Returns the formula whose return value determines the property 'first line indent'.
|
int |
getGlyphOrientation()
Returns the glyph orientation.
|
FormulaField |
getGlyphOrientationFormula()
Returns the formula whose return value determines the glyph orientation.
|
int |
getLeftIndent()
Returns the value of the property 'left indent'.
|
FormulaField |
getLeftIndentFormula()
Returns the formula whose return value determines the property 'left indent'.
|
int |
getLineSpacingAbsolute()
Returns the absolute distance between baselines of the lines in this paragraph, measured in
twips.
|
FormulaField |
getLineSpacingAbsoluteFormula()
Returns the formula whose return value determines the absolute distance between baselines of the lines in this paragraph, measured in
twips.
|
double |
getLineSpacingRelative()
Returns the factor by which the default line spacing is to be multiplied for this paragraph.
|
FormulaField |
getLineSpacingRelativeFormula()
Returns the formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph.
|
java.util.List<FormulaField> |
getPropertyFormulas()
Returns a list with all property formulas that are set for this report element.
|
int |
getRightIndent()
Returns the value of the property 'rightIndent'.
|
FormulaField |
getRightIndentFormula()
Returns the formula whose return value determines the property 'right indent'.
|
java.util.List<? extends ReportComponent> |
getSubComponents()
Returns all
ReportComponents that are descendants of this one. |
int |
getTextInterpretation()
Returns the type of text interpretation.
|
FormulaField |
getTextInterpretationFormula()
Sets the formula for the type of text interpretation.
|
int |
getTextRotation()
Returns the value of the property 'text rotation'.
|
FormulaField |
getTextRotationFormula()
Returns the formula whose return value determines the property 'text rotation'.
|
java.lang.String |
paramString()
Create a string representation of this class for debugging.
|
void |
setBaseUrl(java.lang.String base)
Sets the base URL for relative URLs.
|
void |
setBaseUrlFormula(FormulaField newFormula)
Sets a property formula for the base URL property.
|
void |
setCanGrow(boolean canGrow)
Number and Currency Field Elements can be set can grow, however they then always have a maximum limit of 1 line, i.e.
|
void |
setCanGrowCount(int limit)
Number and Currency Field Elements can only be set to a can grow maximum limit of 1.
|
void |
setFirstLineIndent(int newValue)
Sets the value of the property 'first line indent'.
|
void |
setFirstLineIndentFormula(FormulaField formula)
Sets the formula whose return value determines the property 'first line indent'.
|
void |
setGlyphOrientation(int orientation)
Sets the orientation of the glyphs.
|
void |
setGlyphOrientationFormula(FormulaField formula)
Sets the formula whose return value determines the glyph orientation.
|
void |
setLeftIndent(int newLeftIndent)
Sets the value of the property 'left indent'.
|
void |
setLeftIndentFormula(FormulaField formula)
Sets the formula whose return value determines the property 'left indent'.
|
void |
setLineSpacingAbsolute(int lineSpacingAbsolute)
Sets the absolute distance between baselines of the lines in this paragraph, measured in
twips.
|
void |
setLineSpacingAbsoluteFormula(FormulaField formula)
Sets the formula whose return value determines the absolute distance between baselines of the lines in this paragraph, measured in
twips.
|
void |
setLineSpacingRelative(double lineSpacingRelative)
Sets the factor by which the default line spacing is to be multiplied for this paragraph.
|
void |
setLineSpacingRelativeFormula(FormulaField formula)
Sets the formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph.
|
void |
setRightIndent(int newRightIndent)
Sets the value of the property 'rightIndent'.
|
void |
setRightIndentFormula(FormulaField formula)
Sets the formula whose return value determines the property 'right indent'.
|
void |
setTextInterpretation(int interpretation)
Sets the type of text interpretation for the data of the field.
|
void |
setTextInterpretationFormula(FormulaField newFormula)
Sets the formula for the type of text interpretation.
|
void |
setTextRotation(int rotation)
Sets the value of the property 'text rotation'.
|
void |
setTextRotationFormula(FormulaField formula)
Sets the formula whose return value determines the property 'text rotation'.
|
getAllowFieldClippingFormula, getAmPmOrder, getAmPmOrderFormula, getAmString, getAmStringFormula, getBooleanFormatOutputType, getBooleanFormatOutputTypeFormula, getCurrencyPosition, getCurrencyPositionFormula, getCurrencySeparator, getCurrencySeparatorFormula, getCurrencySymbol, getCurrencySymbolFormula, getCurrencySymbolType, getCurrencySymbolTypeFormula, getDateCalendarType, getDateCalendarTypeFormula, getDateEraType, getDateEraTypeFormula, getDateFirstSeparator, getDateFirstSeparatorFormula, getDateFormatType, getDateFormatTypeFormula, getDateOrder, getDateOrderFormula, getDatePrefixSeparator, getDatePrefixSeparatorFormula, getDateSecondSeparator, getDateSecondSeparatorFormula, getDateSuffixSeparator, getDateSuffixSeparatorFormula, getDateTimeOrder, getDateTimeOrderFormula, getDateTimeSeparator, getDateTimeSeparatorFormula, getDayOfWeekEnclosure, getDayOfWeekEnclosureFormula, getDayOfWeekPosition, getDayOfWeekPositionFormula, getDayOfWeekSeparator, getDayOfWeekSeparatorFormula, getDayOfWeekType, getDayOfWeekTypeFormula, getDayType, getDayTypeFormula, getDecimalSeparatorSymbol, getDecimalSeparatorSymbolFormula, getHourMinuteSeparator, getHourMinuteSeparatorFormula, getHourType, getHourTypeFormula, getManualFormatFormula, getMinuteSecondSeparator, getMinuteSecondSeparatorFormula, getMinuteType, getMinuteTypeFormula, getMonthType, getMonthTypeFormula, getNDecimalPlaces, getNDecimalPlacesFormula, getNegativeType, getNegativeTypeFormula, getNumberFormatType, getNumberFormatTypeFormula, getNumeralLanguage, getPmString, getPmStringFormula, getReverseSignForDisplayFormula, getRounding, getRoundingFormula, getRoundingMode, getRoundingModeFormula, getSecondType, getSecondTypeFormula, getSuppressIfZero, getSuppressIfZeroFormula, getThousandsSeparatorSymbol, getThousandsSeparatorSymbolFormula, getTimeBase, getTimeBaseFormula, getTimeFormatType, getTimeFormatTypeFormula, getUseLeadingZero, getUseLeadingZeroFormula, getUseOneCurrencySymbolPerPage, getUseOneCurrencySymbolPerPageFormula, getUseThousandsSeparator, getUseThousandsSeparatorFormula, getYearType, getYearTypeFormula, getZeroValueString, isAllowFieldClipping, isReverseSignForDisplay, setAllowFieldClipping, setAllowFieldClippingFormula, setAmPmOrder, setAmPmOrderFormula, setAmString, setAmStringFormula, setBooleanFormatOutputType, setBooleanFormatOutputTypeFormula, setCurrencyPosition, setCurrencyPositionFormula, setCurrencySeparator, setCurrencySeparatorFormula, setCurrencySymbol, setCurrencySymbolFormula, setCurrencySymbolType, setCurrencySymbolTypeFormula, setDateCalendarType, setDateCalendarTypeFormula, setDateEraType, setDateEraTypeFormula, setDateFirstSeparator, setDateFirstSeparatorFormula, setDateFormatType, setDateFormatTypeFormula, setDateOrder, setDateOrderFormula, setDatePrefixSeparator, setDatePrefixSeparatorFormula, setDateSecondSeparator, setDateSecondSeparatorFormula, setDateSuffixSeparator, setDateSuffixSeparatorFormula, setDateTimeOrder, setDateTimeOrderFormula, setDateTimeSeparator, setDateTimeSeparatorFormula, setDayOfWeekEnclosure, setDayOfWeekEnclosureFormula, setDayOfWeekPosition, setDayOfWeekPositionFormula, setDayOfWeekSeparator, setDayOfWeekSeparatorFormula, setDayOfWeekType, setDayOfWeekTypeFormula, setDayType, setDayTypeFormula, setDecimalSeparatorSymbol, setDecimalSeparatorSymbolFormula, setField, setHourMinuteSeparator, setHourMinuteSeparatorFormula, setHourType, setHourTypeFormula, setManualFormatFormula, setMinuteSecondSeparator, setMinuteSecondSeparatorFormula, setMinuteType, setMinuteTypeFormula, setMonthType, setMonthTypeFormula, setNDecimalPlaces, setNDecimalPlacesFormula, setNegativeType, setNegativeTypeFormula, setNumberFormatType, setNumberFormatTypeFormula, setNumeralLanguage, setPmString, setPmStringFormula, setReverseSignForDisplay, setReverseSignForDisplayFormula, setRounding, setRoundingFormula, setRoundingMode, setRoundingModeFormula, setSecondType, setSecondTypeFormula, setSuppressIfZero, setSuppressIfZeroFormula, setThousandsSeparatorSymbol, setThousandsSeparatorSymbolFormula, setTimeBase, setTimeBaseFormula, setTimeFormatType, setTimeFormatTypeFormula, setUseLeadingZero, setUseLeadingZeroFormula, setUseOneCurrencySymbolPerPage, setUseOneCurrencySymbolPerPageFormula, setUseThousandsSeparator, setUseThousandsSeparatorFormula, setYearType, setYearTypeFormula, setZeroValueStringgetFontColor, getFontColorFormula, getFontName, getFontNameFormula, getFontSize, getFontSizeFormula, getFontSizeTwips, getFontStyle, getFontStyleFormula, getStrikeoutFormula, getUnderlineFormula, isBold, isItalic, isStrikeout, isUnderline, setBold, setFontColor, setFontColorFormula, setFontName, setFontNameFormula, setFontSize, setFontSizeFormula, setFontSizeTwips, setFontStyle, setFontStyleFormula, setItalic, setStrikeout, setStrikeoutFormula, setUnderline, setUnderlineFormulaaddListener, getBottomLineStyle, getBottomLineStyleFormula, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getEngine, getField, getForeColor, getForeColorFormula, getHorAlign, getHorAlignFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyle, getLeftLineStyleFormula, getParent, getRightLineStyle, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyle, getTopLineStyleFormula, indexOf, isCanGrow, isCloseBorderOnPageBreak, isDropShadow, isSuppressIfDuplicated, isTightHorizontal, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setForeColor, setForeColorFormula, setHorAlign, setHorAlignFormula, setHyperlinkUrl, setHyperlinkUrlFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setRightLineStyle, setRightLineStyleFormula, setSuppressIfDuplicated, setSuppressIfDuplicatedFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormulagetBackColor, getBackColorFormula, getHeight, getKeepTogetherFormula, getSuppressFormula, getType, getWidth, getX, getY, isKeepTogether, isSuppress, setBackColor, setBackColorFormula, setHeight, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula, setWidth, setX, setYgetHyperlinkUrl, getHyperlinkUrlFormula, setHyperlinkUrl, setHyperlinkUrlFormulagetBackColor, getBackColorFormula, getBottomLineStyle, getBottomLineStyleFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getForeColor, getForeColorFormula, getLeftLineStyle, getLeftLineStyleFormula, getRightLineStyle, getRightLineStyleFormula, getTightHorizontalFormula, getTopLineStyle, getTopLineStyleFormula, isCloseBorderOnPageBreak, isDropShadow, isTightHorizontal, setBackColor, setBackColorFormula, setBottomLineStyle, setBottomLineStyleFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setForeColor, setForeColorFormula, setLeftLineStyle, setLeftLineStyleFormula, setRightLineStyle, setRightLineStyleFormula, setTightHorizontal, setTightHorizontalFormula, setTopLineStyle, setTopLineStyleFormulagetKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormulaisDOMParser, parseDOM, parseElement, parseEndElement, parseTextpublic java.lang.Object copy()
throws ReportException
copy in class ElementReportException - If accessing properties of this Element causes any errors.Section.pasteElement(java.lang.Object)public int getFirstLineIndent()
getFirstLineIndent in interface ParagraphPropertiespublic void setFirstLineIndent(int newValue)
setFirstLineIndent in interface ParagraphPropertiesnewValue - The new value of the property 'first line indent'. May be negative (which would cause the first line to be left
of the left margin).public int getLeftIndent()
getLeftIndent in interface ParagraphPropertiespublic void setLeftIndent(int newLeftIndent)
setLeftIndent in interface ParagraphPropertiesnewLeftIndent - The new value of the property 'left indent'.public int getRightIndent()
getRightIndent in interface ParagraphPropertiespublic void setRightIndent(int newRightIndent)
setRightIndent in interface ParagraphPropertiesnewRightIndent - The new value of the property 'rightIndent'.public void setLineSpacingAbsolute(int lineSpacingAbsolute)
setLineSpacingAbsolute in interface ParagraphPropertieslineSpacingAbsolute - Absolute distance between baselines in this paragraph, measured in twips, or
LINE_SPACING_RELATIVE in order to restore the default setting.ParagraphProperties.getLineSpacingAbsolute(),
ParagraphProperties.LINE_SPACING_RELATIVEpublic int getLineSpacingAbsolute()
getLineSpacingAbsolute in interface ParagraphPropertiesParagraphProperties.setLineSpacingAbsolute(int),
ParagraphProperties.LINE_SPACING_RELATIVEpublic void setLineSpacingRelative(double lineSpacingRelative)
setLineSpacingRelative in interface ParagraphPropertieslineSpacingRelative - Factor by which the default line spacing is to be multiplied for this paragraph,
or LINE_SPACING_ABSOLUTE if the default value is to be set (equivalent to "1")ParagraphProperties.LINE_SPACING_ABSOLUTE,
ParagraphProperties.getLineSpacingRelative()public double getLineSpacingRelative()
getLineSpacingRelative in interface ParagraphPropertiesParagraphProperties.LINE_SPACING_ABSOLUTE,
ParagraphProperties.getLineSpacingRelative()public int getTextInterpretation()
getTextInterpretation in interface TextInterpretationPropertiesTextInterpretationProperties.PLAIN_TEXT,
TextInterpretationProperties.RTF_TEXT,
TextInterpretationProperties.HTML_TEXTpublic void setTextInterpretation(int interpretation)
setTextInterpretation in interface TextInterpretationPropertiesinterpretation - the new text interpretation to set. must be one of TextInterpretationProperties.PLAIN_TEXT, TextInterpretationProperties.RTF_TEXT, TextInterpretationProperties.HTML_TEXT or TextInterpretationProperties.ADVANCED_HTML_TEXTTextInterpretationProperties.getTextInterpretation(),
TextInterpretationProperties.PLAIN_TEXT,
TextInterpretationProperties.RTF_TEXT,
TextInterpretationProperties.HTML_TEXTpublic FormulaField getTextInterpretationFormula()
getTextInterpretationFormula in interface TextInterpretationPropertiesnull if none has been setTextInterpretationProperties.setTextInterpretation(int),
TextInterpretationProperties.getTextInterpretation(),
TextInterpretationProperties.setTextInterpretationFormula(com.inet.report.FormulaField),
TextInterpretationProperties.PLAIN_TEXT,
TextInterpretationProperties.RTF_TEXT,
TextInterpretationProperties.HTML_TEXTpublic void setTextInterpretationFormula(FormulaField newFormula)
setTextInterpretationFormula in interface TextInterpretationPropertiesnewFormula - the formula to set for text interpretation or null if no formula should be setTextInterpretationProperties.setTextInterpretation(int),
TextInterpretationProperties.getTextInterpretation(),
TextInterpretationProperties.getTextInterpretationFormula(),
TextInterpretationProperties.PLAIN_TEXT,
TextInterpretationProperties.RTF_TEXT,
TextInterpretationProperties.HTML_TEXTpublic java.lang.String getBaseUrl()
getBaseUrl in interface TextInterpretationPropertiesDocument.StreamDescriptionPropertypublic FormulaField getBaseUrlFormula()
getBaseUrlFormula in interface TextInterpretationPropertiesDocument.StreamDescriptionPropertypublic void setBaseUrl(java.lang.String base)
setBaseUrl in interface TextInterpretationPropertiesbase - Base URL to use for relative URLsDocument.StreamDescriptionPropertypublic void setBaseUrlFormula(FormulaField newFormula)
setBaseUrlFormula in interface TextInterpretationPropertiesnewFormula - formula field for the property formula for the base URL property, or nullDocument.StreamDescriptionPropertypublic java.lang.String paramString()
paramString in class Elementpublic java.util.List<FormulaField> getPropertyFormulas()
ReportComponent
of this one. To get the property formulas for descendant ReportComponent use ReportComponent.getSubComponents()getPropertyFormulas in class AbstractValueElementpublic int getGlyphOrientation()
getGlyphOrientation in interface TextPropertiesTextProperties.setGlyphOrientation(int),
TextProperties.GLYPH_DEFAULT,
TextProperties.GLYPH_UP,
TextProperties.GLYPH_DOWN,
TextProperties.GLYPH_RIGHT,
TextProperties.GLYPH_LEFTpublic void setGlyphOrientation(int orientation)
setGlyphOrientation in interface TextPropertiesorientation - Orientation to be set for the glyphs (i.e. the rotation of every individual character of the line of text)TextProperties.getGlyphOrientation(),
TextProperties.GLYPH_DEFAULT,
TextProperties.GLYPH_UP,
TextProperties.GLYPH_DOWN,
TextProperties.GLYPH_RIGHT,
TextProperties.GLYPH_LEFTpublic void setGlyphOrientationFormula(FormulaField formula)
setGlyphOrientationFormula in interface TextPropertiesformula - the formula whose return value determines the glyph orientationpublic FormulaField getGlyphOrientationFormula()
getGlyphOrientationFormula in interface TextPropertiespublic void setTextRotation(int rotation)
setTextRotation in interface TextPropertiesrotation - The new value of the property 'text rotation'. Rotation is done counter-clockwise.TextProperties.ROTATE_0,
TextProperties.ROTATE_90,
TextProperties.ROTATE_180,
TextProperties.ROTATE_270public int getTextRotation()
getTextRotation in interface TextPropertiesTextProperties.ROTATE_0,
TextProperties.ROTATE_90,
TextProperties.ROTATE_180,
TextProperties.ROTATE_270public FormulaField getTextRotationFormula()
getTextRotationFormula in interface TextPropertiesTextProperties.getTextRotation(),
TextProperties.setTextRotation(int)public void setTextRotationFormula(FormulaField formula)
setTextRotationFormula in interface TextPropertiesformula - formula whose return value determines the property 'text rotation'.TextProperties.getTextRotation(),
TextProperties.setTextRotation(int)public void setCanGrow(boolean canGrow)
setCanGrow in interface GeneralPropertiessetCanGrow in class ElementcanGrow - whether or not this element should be able to "grow" vertically if its content exceeds its available space.Element.setCanGrow(boolean)public void setCanGrowCount(int limit)
setCanGrowCount in interface GeneralPropertiessetCanGrowCount in class Elementlimit - maximum "can grow" limitjava.lang.IllegalArgumentException - if this Element is a Number or Currency FieldElement and newFormula is not 1Element.setCanGrow(boolean)public FormulaField getFirstLineIndentFormula()
getFirstLineIndentFormula in interface ParagraphPropertiespublic FormulaField getLeftIndentFormula()
getLeftIndentFormula in interface ParagraphPropertiespublic FormulaField getLineSpacingAbsoluteFormula()
getLineSpacingAbsoluteFormula in interface ParagraphPropertiesParagraphProperties.setLineSpacingAbsolute(int)public FormulaField getLineSpacingRelativeFormula()
getLineSpacingRelativeFormula in interface ParagraphPropertiesParagraphProperties.getLineSpacingRelative()public FormulaField getRightIndentFormula()
getRightIndentFormula in interface ParagraphPropertiespublic void setFirstLineIndentFormula(FormulaField formula)
setFirstLineIndentFormula in interface ParagraphPropertiesformula - The formula whose return value determines the property 'first line indent'.public void setLeftIndentFormula(FormulaField formula)
setLeftIndentFormula in interface ParagraphPropertiesformula - The formula whose return value determines the property 'left indent'.public void setLineSpacingAbsoluteFormula(FormulaField formula)
setLineSpacingAbsoluteFormula in interface ParagraphPropertiesformula - formula whose return value determines the absolute distance between baselines in this paragraph, measured in twipsParagraphProperties.setLineSpacingAbsolute(int)public void setLineSpacingRelativeFormula(FormulaField formula)
setLineSpacingRelativeFormula in interface ParagraphPropertiesformula - formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraphParagraphProperties.setLineSpacingRelative(double)public void setRightIndentFormula(FormulaField formula)
setRightIndentFormula in interface ParagraphPropertiesformula - The formula whose return value determines the property 'right indent'.public java.util.List<? extends ReportComponent> getSubComponents()
ReportComponents that are descendants of this one. E.G. this will return all Element
of a Section. But it's as well useful for CrossTabs or Text elements which have
additional elements.getSubComponents in class ReportComponentnull if the component has no descendantsCopyright © 1999-2020 by i-net software GmbH