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, TEXTPART
INDENT_DEFAULT, LINE_SPACING_ABSOLUTE, LINE_SPACING_RELATIVE
GLYPH_DEFAULT, GLYPH_DOWN, GLYPH_LEFT, GLYPH_RIGHT, GLYPH_UP, ROTATE_0, ROTATE_180, ROTATE_270, ROTATE_90
ADVANCED_HTML_TEXT, HTML_TEXT, PLAIN_TEXT, RTF_TEXT
LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SINGLE, NO_LINE
AM_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_N
FONT_DIALOG, FONT_MONOSPACED, FONT_SANS_SERIF, FONT_SERIF, FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_STRIKETHROUGH, FONT_STYLE_UNDERLINE
ALIGN_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
ReportComponent s 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, setZeroValueString
getFontColor, 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, setUnderlineFormula
addListener, 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, setTopLineStyleFormula
getBackColor, getBackColorFormula, getHeight, getKeepTogetherFormula, getSuppressFormula, getType, getWidth, getX, getY, isKeepTogether, isSuppress, setBackColor, setBackColorFormula, setHeight, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula, setWidth, setX, setY
getHyperlinkUrl, getHyperlinkUrlFormula, setHyperlinkUrl, setHyperlinkUrlFormula
getBackColor, 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, setTopLineStyleFormula
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula
isDOMParser, parseDOM, parseElement, parseEndElement, parseText
public java.lang.Object copy() throws ReportException
copy
in class Element
ReportException
- If accessing properties of this Element causes any errors.Section.pasteElement(java.lang.Object)
public int getFirstLineIndent()
getFirstLineIndent
in interface ParagraphProperties
public void setFirstLineIndent(int newValue)
setFirstLineIndent
in interface ParagraphProperties
newValue
- 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 ParagraphProperties
public void setLeftIndent(int newLeftIndent)
setLeftIndent
in interface ParagraphProperties
newLeftIndent
- The new value of the property 'left indent'.public int getRightIndent()
getRightIndent
in interface ParagraphProperties
public void setRightIndent(int newRightIndent)
setRightIndent
in interface ParagraphProperties
newRightIndent
- The new value of the property 'rightIndent'.public void setLineSpacingAbsolute(int lineSpacingAbsolute)
setLineSpacingAbsolute
in interface ParagraphProperties
lineSpacingAbsolute
- 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_RELATIVE
public int getLineSpacingAbsolute()
getLineSpacingAbsolute
in interface ParagraphProperties
ParagraphProperties.setLineSpacingAbsolute(int)
,
ParagraphProperties.LINE_SPACING_RELATIVE
public void setLineSpacingRelative(double lineSpacingRelative)
setLineSpacingRelative
in interface ParagraphProperties
lineSpacingRelative
- 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 ParagraphProperties
ParagraphProperties.LINE_SPACING_ABSOLUTE
,
ParagraphProperties.getLineSpacingRelative()
public int getTextInterpretation()
getTextInterpretation
in interface TextInterpretationProperties
TextInterpretationProperties.PLAIN_TEXT
,
TextInterpretationProperties.RTF_TEXT
,
TextInterpretationProperties.HTML_TEXT
public void setTextInterpretation(int interpretation)
setTextInterpretation
in interface TextInterpretationProperties
interpretation
- the new text interpretation to set. must be one of TextInterpretationProperties.PLAIN_TEXT
, TextInterpretationProperties.RTF_TEXT
, TextInterpretationProperties.HTML_TEXT
or TextInterpretationProperties.ADVANCED_HTML_TEXT
TextInterpretationProperties.getTextInterpretation()
,
TextInterpretationProperties.PLAIN_TEXT
,
TextInterpretationProperties.RTF_TEXT
,
TextInterpretationProperties.HTML_TEXT
public FormulaField getTextInterpretationFormula()
getTextInterpretationFormula
in interface TextInterpretationProperties
null
if none has been setTextInterpretationProperties.setTextInterpretation(int)
,
TextInterpretationProperties.getTextInterpretation()
,
TextInterpretationProperties.setTextInterpretationFormula(com.inet.report.FormulaField)
,
TextInterpretationProperties.PLAIN_TEXT
,
TextInterpretationProperties.RTF_TEXT
,
TextInterpretationProperties.HTML_TEXT
public void setTextInterpretationFormula(FormulaField newFormula)
setTextInterpretationFormula
in interface TextInterpretationProperties
newFormula
- 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_TEXT
public java.lang.String getBaseUrl()
getBaseUrl
in interface TextInterpretationProperties
Document.StreamDescriptionProperty
public FormulaField getBaseUrlFormula()
getBaseUrlFormula
in interface TextInterpretationProperties
Document.StreamDescriptionProperty
public void setBaseUrl(java.lang.String base)
setBaseUrl
in interface TextInterpretationProperties
base
- Base URL to use for relative URLsDocument.StreamDescriptionProperty
public void setBaseUrlFormula(FormulaField newFormula)
setBaseUrlFormula
in interface TextInterpretationProperties
newFormula
- formula field for the property formula for the base URL property, or nullDocument.StreamDescriptionProperty
public java.lang.String paramString()
paramString
in class Element
public java.util.List<FormulaField> getPropertyFormulas()
ReportComponent
of this one. To get the property formulas for descendant ReportComponent
use ReportComponent.getSubComponents()
getPropertyFormulas
in class AbstractValueElement
public int getGlyphOrientation()
getGlyphOrientation
in interface TextProperties
TextProperties.setGlyphOrientation(int)
,
TextProperties.GLYPH_DEFAULT
,
TextProperties.GLYPH_UP
,
TextProperties.GLYPH_DOWN
,
TextProperties.GLYPH_RIGHT
,
TextProperties.GLYPH_LEFT
public void setGlyphOrientation(int orientation)
setGlyphOrientation
in interface TextProperties
orientation
- 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_LEFT
public void setGlyphOrientationFormula(FormulaField formula)
setGlyphOrientationFormula
in interface TextProperties
formula
- the formula whose return value determines the glyph orientationpublic FormulaField getGlyphOrientationFormula()
getGlyphOrientationFormula
in interface TextProperties
public void setTextRotation(int rotation)
setTextRotation
in interface TextProperties
rotation
- The new value of the property 'text rotation'. Rotation is done counter-clockwise.TextProperties.ROTATE_0
,
TextProperties.ROTATE_90
,
TextProperties.ROTATE_180
,
TextProperties.ROTATE_270
public int getTextRotation()
getTextRotation
in interface TextProperties
TextProperties.ROTATE_0
,
TextProperties.ROTATE_90
,
TextProperties.ROTATE_180
,
TextProperties.ROTATE_270
public FormulaField getTextRotationFormula()
getTextRotationFormula
in interface TextProperties
TextProperties.getTextRotation()
,
TextProperties.setTextRotation(int)
public void setTextRotationFormula(FormulaField formula)
setTextRotationFormula
in interface TextProperties
formula
- formula whose return value determines the property 'text rotation'.TextProperties.getTextRotation()
,
TextProperties.setTextRotation(int)
public void setCanGrow(boolean canGrow)
setCanGrow
in interface GeneralProperties
setCanGrow
in class Element
canGrow
- 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 GeneralProperties
setCanGrowCount
in class Element
limit
- 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 ParagraphProperties
public FormulaField getLeftIndentFormula()
getLeftIndentFormula
in interface ParagraphProperties
public FormulaField getLineSpacingAbsoluteFormula()
getLineSpacingAbsoluteFormula
in interface ParagraphProperties
ParagraphProperties.setLineSpacingAbsolute(int)
public FormulaField getLineSpacingRelativeFormula()
getLineSpacingRelativeFormula
in interface ParagraphProperties
ParagraphProperties.getLineSpacingRelative()
public FormulaField getRightIndentFormula()
getRightIndentFormula
in interface ParagraphProperties
public void setFirstLineIndentFormula(FormulaField formula)
setFirstLineIndentFormula
in interface ParagraphProperties
formula
- The formula whose return value determines the property 'first line indent'.public void setLeftIndentFormula(FormulaField formula)
setLeftIndentFormula
in interface ParagraphProperties
formula
- The formula whose return value determines the property 'left indent'.public void setLineSpacingAbsoluteFormula(FormulaField formula)
setLineSpacingAbsoluteFormula
in interface ParagraphProperties
formula
- 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 ParagraphProperties
formula
- 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 ParagraphProperties
formula
- The formula whose return value determines the property 'right indent'.public java.util.List<? extends ReportComponent> getSubComponents()
ReportComponent
s that are descendants of this one. E.G. this will return all Element
of a Section
. But it's as well useful for CrossTab
s or Text
elements which have
additional elements.getSubComponents
in class ReportComponent
null
if the component has no descendantsCopyright © 1999-2020 by i-net software GmbH