i-net Clear Reports

com.inet.report
Class FieldElement

java.lang.Object
  extended by com.inet.report.ReportComponent
      extended by com.inet.report.Element
          extended by com.inet.report.AbstractFontElement
              extended by com.inet.report.AbstractValueElement
                  extended by com.inet.report.FieldElement
All Implemented Interfaces:
BorderProperties, FontProperties, GeneralProperties, HyperlinkProperties, ParagraphProperties, NodeParser, com.inet.report.ReferenceHolder, TextInterpretationProperties, TextProperties, ValueProperties, java.io.Serializable, java.lang.Cloneable

public class FieldElement
extends AbstractValueElement
implements ParagraphProperties, TextProperties, TextInterpretationProperties, com.inet.report.ReferenceHolder, HyperlinkProperties, BorderProperties

A 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.

code example: adding a dynamic content to the detail section

 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.
Note that the properties for number and currency formats does not take effect when the property 'use system default format' is set. Changes at properties for date/time/datetime does not take effect when the property 'date windows default type' is set to a short or long default format.

This class is part of the RDC.

See Also:
Engine.getFields(), Fields, FieldPart, Section.addFieldElement(Field, int, int, int, int), Section.remove(Element), Section.getElements(), Section.getElementsV(), Serialized Form

Field Summary
 
Fields inherited from class com.inet.report.Element
BOX, CHART, CROSSTAB, CROSSTABCELL, CROSSTABCOLUMN, CROSSTABROW, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, FORMFIELD, INTERACTIVE_SORTING, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPART
 
Fields inherited from interface com.inet.report.ParagraphProperties
INDENT_DEFAULT, LINE_SPACING_ABSOLUTE, LINE_SPACING_RELATIVE
 
Fields inherited from interface com.inet.report.TextProperties
GLYPH_DEFAULT, GLYPH_DOWN, GLYPH_LEFT, GLYPH_RIGHT, GLYPH_UP, ROTATE_0, ROTATE_180, ROTATE_270, ROTATE_90
 
Fields inherited from interface com.inet.report.TextInterpretationProperties
ADVANCED_HTML_TEXT, HTML_TEXT, PLAIN_TEXT, RTF_TEXT
 
Fields inherited from interface com.inet.report.BorderProperties
LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SINGLE, NO_LINE
 
Fields inherited from interface com.inet.report.ValueProperties
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_TO_BILLIONTH, ROUND_TO_HUNDRED, ROUND_TO_HUNDRED_MILLIONTH, ROUND_TO_HUNDRED_THOUSAND, ROUND_TO_HUNDRED_THOUSANDTH, ROUND_TO_HUNDRETH, ROUND_TO_MILLION, ROUND_TO_MILLIONTH, ROUND_TO_TEN, ROUND_TO_TENTH, ROUND_TO_TEN_BILLIONTH, ROUND_TO_TEN_MILLIONTH, ROUND_TO_TEN_THOUSAND, ROUND_TO_TEN_THOUSANDTH, ROUND_TO_THOUSAND, ROUND_TO_THOUSANDTH, ROUND_TO_UNIT, 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
 
Fields inherited from interface com.inet.report.FontProperties
FONT_DIALOG, FONT_MONOSPACED, FONT_SANS_SERIF, FONT_SERIF, FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_STRIKETHROUGH, FONT_STYLE_UNDERLINE
 
Fields inherited from interface com.inet.report.GeneralProperties
ALIGN_HORIZONTAL_CENTER, ALIGN_HORIZONTAL_DEFAULT, ALIGN_HORIZONTAL_JUSTIFIED, ALIGN_HORIZONTAL_LEFT, ALIGN_HORIZONTAL_RIGHT
 
Method Summary
 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 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'.
 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 parseEndElement(com.inet.report.parser.XMLTag group, java.lang.String tag, java.util.Map parserMap)
          FOR INTERNAL USE ONLY Internal method for reading report XML Receive notification of the end of an XML tag.
 void parseText(java.lang.String text, java.util.Map parserMap)
          FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XML This method is called if text was encountered in the context of this node.
 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'.
 
Methods inherited from class com.inet.report.AbstractValueElement
getAllowFieldClippingFormula, getAmPmOrder, getAmPmOrderFormula, getAmString, getAmStringFormula, getBooleanFormatOutputType, getBooleanFormatOutputTypeFormula, getBooleanFormatTypeFormula, 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, getRoundingDigits, getRoundingFormula, getRoundingMode, getRoundingModeFormula, getRoundingType, getRoundingTypeFormula, 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, setRoundingDigits, setRoundingFormula, setRoundingMode, setRoundingModeFormula, setRoundingType, setRoundingTypeFormula, setSecondType, setSecondTypeFormula, setSuppressIfZero, setSuppressIfZeroFormula, setThousandsSeparatorSymbol, setThousandsSeparatorSymbolFormula, setTimeBase, setTimeBaseFormula, setTimeFormatType, setTimeFormatTypeFormula, setUseLeadingZero, setUseLeadingZeroFormula, setUseOneCurrencySymbolPerPage, setUseOneCurrencySymbolPerPageFormula, setUseThousandsSeparator, setUseThousandsSeparatorFormula, setYearType, setYearTypeFormula, setZeroValueString
 
Methods inherited from class com.inet.report.AbstractFontElement
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
 
Methods inherited from class com.inet.report.Element
addListener, copy, 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
 
Methods inherited from class com.inet.report.ReportComponent
getBackColor, getBackColorFormula, getHeight, getKeepTogetherFormula, getSuppressFormula, getType, getWidth, getX, getY, isKeepTogether, isSuppress, setBackColor, setBackColorFormula, setHeight, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula, setWidth, setX, setY
 
Methods inherited from interface com.inet.report.HyperlinkProperties
getHyperlinkUrl, getHyperlinkUrlFormula, setHyperlinkUrl, setHyperlinkUrlFormula
 
Methods inherited from interface com.inet.report.BorderProperties
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
 
Methods inherited from interface com.inet.report.GeneralProperties
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula
 
Methods inherited from interface com.inet.report.parser.NodeParser
isDOMParser, parseDOM, parseElement
 

Method Detail

getFirstLineIndent

public int getFirstLineIndent()
Returns the value of the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).

Specified by:
getFirstLineIndent in interface ParagraphProperties
Returns:
The value of the property 'first line indent'.

setFirstLineIndent

public void setFirstLineIndent(int newValue)
Sets the value of the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).

Specified by:
setFirstLineIndent in interface ParagraphProperties
Parameters:
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).

getLeftIndent

public int getLeftIndent()
Returns the value of the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).

Specified by:
getLeftIndent in interface ParagraphProperties
Returns:
The value of the property 'left indent'.

setLeftIndent

public void setLeftIndent(int newLeftIndent)
Sets the value of the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).

Specified by:
setLeftIndent in interface ParagraphProperties
Parameters:
newLeftIndent - The new value of the property 'left indent'.

getRightIndent

public int getRightIndent()
Returns the value of the property 'rightIndent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).

Specified by:
getRightIndent in interface ParagraphProperties
Returns:
The current value of the property 'rightIndent'. 

setRightIndent

public void setRightIndent(int newRightIndent)
Sets the value of the property 'rightIndent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).

Specified by:
setRightIndent in interface ParagraphProperties
Parameters:
newRightIndent - The new value of the property 'rightIndent'.

setLineSpacingAbsolute

public void setLineSpacingAbsolute(int lineSpacingAbsolute)
Sets the absolute distance between baselines of the lines in this paragraph, measured in twips. It is also possible to set LINE_SPACING_RELATIVE, which restores the default setting.

Specified by:
setLineSpacingAbsolute in interface ParagraphProperties
Parameters:
lineSpacingAbsolute - Absolute distance between baselines in this paragraph, measured in twips, or LINE_SPACING_RELATIVE in order to restore the default setting.
See Also:
ParagraphProperties.getLineSpacingAbsolute(), ParagraphProperties.LINE_SPACING_RELATIVE

getLineSpacingAbsolute

public int getLineSpacingAbsolute()
Returns the absolute distance between baselines of the lines in this paragraph, measured in twips. If a relative factor has been set, this will return the constant LINE_SPACING_RELATIVE.

Specified by:
getLineSpacingAbsolute in interface ParagraphProperties
Returns:
Absolute distance between baselines in this paragraph, measured in twips, or LINE_SPACING_RELATIVE
See Also:
ParagraphProperties.setLineSpacingAbsolute(int), ParagraphProperties.LINE_SPACING_RELATIVE

setLineSpacingRelative

public void setLineSpacingRelative(double lineSpacingRelative)
Sets the factor by which the default line spacing is to be multiplied for this paragraph. The default line spacing is determined by font and font size, and is then multiplied by this number. Setting LINE_SPACING_ABSOLUTE will cause the value to be reset to its default, which is "1".

Specified by:
setLineSpacingRelative in interface ParagraphProperties
Parameters:
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")
See Also:
ParagraphProperties.LINE_SPACING_ABSOLUTE, ParagraphProperties.getLineSpacingRelative()

getLineSpacingRelative

public double getLineSpacingRelative()
Returns the factor by which the default line spacing is to be multiplied for this paragraph. The default line spacing is determined by font and font size, and is then multiplied by this number. If an absolute value has been set, this will return LINE_SPACING_ABSOLUTE instead.

Specified by:
getLineSpacingRelative in interface ParagraphProperties
Returns:
Factor by which the default line spacing is to be multiplied for this paragraph, or LINE_SPACING_ABSOLUTE if an absolute line spacing distance has been set.
See Also:
ParagraphProperties.LINE_SPACING_ABSOLUTE, ParagraphProperties.getLineSpacingRelative()

getTextInterpretation

public int getTextInterpretation()
Returns the type of text interpretation.

Specified by:
getTextInterpretation in interface TextInterpretationProperties
Returns:
one of the constants PLAIN_TEXT, RTF_TEXT or HTML_TEXT.
See Also:
TextInterpretationProperties.PLAIN_TEXT, TextInterpretationProperties.RTF_TEXT, TextInterpretationProperties.HTML_TEXT

setTextInterpretation

public void setTextInterpretation(int interpretation)
Sets the type of text interpretation for the data of the field.

Specified by:
setTextInterpretation in interface TextInterpretationProperties
Parameters:
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
See Also:
TextInterpretationProperties.getTextInterpretation(), TextInterpretationProperties.PLAIN_TEXT, TextInterpretationProperties.RTF_TEXT, TextInterpretationProperties.HTML_TEXT

getTextInterpretationFormula

public FormulaField getTextInterpretationFormula()
Sets the formula for the type of text interpretation.

Specified by:
getTextInterpretationFormula in interface TextInterpretationProperties
Returns:
the formula set for text interpretation or null if none has been set
See Also:
TextInterpretationProperties.setTextInterpretation(int), TextInterpretationProperties.getTextInterpretation(), TextInterpretationProperties.setTextInterpretationFormula(com.inet.report.FormulaField), TextInterpretationProperties.PLAIN_TEXT, TextInterpretationProperties.RTF_TEXT, TextInterpretationProperties.HTML_TEXT

setTextInterpretationFormula

public void setTextInterpretationFormula(FormulaField newFormula)
Sets the formula for the type of text interpretation.

Specified by:
setTextInterpretationFormula in interface TextInterpretationProperties
Parameters:
newFormula - the formula to set for text interpretation or null if no formula should be set
See Also:
TextInterpretationProperties.setTextInterpretation(int), TextInterpretationProperties.getTextInterpretation(), TextInterpretationProperties.getTextInterpretationFormula(), TextInterpretationProperties.PLAIN_TEXT, TextInterpretationProperties.RTF_TEXT, TextInterpretationProperties.HTML_TEXT

getBaseUrl

public java.lang.String getBaseUrl()
Returns the currently set base URL for relative URLs. Null may be returned, which means that the report server location is taken as the base URL.

Specified by:
getBaseUrl in interface TextInterpretationProperties
Returns:
the currently set base URL for relative URLs, or null if there is none.
See Also:
Document.StreamDescriptionProperty

getBaseUrlFormula

public FormulaField getBaseUrlFormula()
Returns the property formula set for the base URL property. Can be null which means that no property formula was set for the property.

Specified by:
getBaseUrlFormula in interface TextInterpretationProperties
Returns:
returns the current base URL property formula as a formula field.
See Also:
Document.StreamDescriptionProperty

setBaseUrl

public void setBaseUrl(java.lang.String base)
Sets the base URL for relative URLs. If a hyperlink URL is relative, it is viewed as relative to this base URL. Setting null causes the default behavior (URLs are viewed as relative to the report server location).

Specified by:
setBaseUrl in interface TextInterpretationProperties
Parameters:
base - Base URL to use for relative URLs
See Also:
Document.StreamDescriptionProperty

setBaseUrlFormula

public void setBaseUrlFormula(FormulaField newFormula)
Sets a property formula for the base URL property. Can be null which causes there to be no property formula set.

Specified by:
setBaseUrlFormula in interface TextInterpretationProperties
Parameters:
newFormula - formula field for the property formula for the base URL property, or null
See Also:
Document.StreamDescriptionProperty

paramString

public java.lang.String paramString()
Create a string representation of this class for debugging.

Overrides:
paramString in class Element
Returns:
the string representation of this object

getPropertyFormulas

public java.util.List getPropertyFormulas()
Returns a list with all property formulas that are set for this report element.

Overrides:
getPropertyFormulas in class AbstractValueElement
Returns:
List of property formulas
Since:
6.0

getGlyphOrientation

public int getGlyphOrientation()
Returns the glyph orientation. This is the rotation of every individual charater in the line. The default value is GLYPH_DEFAULT, that is, the glyphs point towards the source of the given block progression. Use the GLYPH constants for the orientation.

Specified by:
getGlyphOrientation in interface TextProperties
Returns:
glyph orientation
See Also:
TextProperties.setGlyphOrientation(int), TextProperties.GLYPH_DEFAULT, TextProperties.GLYPH_UP, TextProperties.GLYPH_DOWN, TextProperties.GLYPH_RIGHT, TextProperties.GLYPH_LEFT

setGlyphOrientation

public void setGlyphOrientation(int orientation)
Sets the orientation of the glyphs. This is the rotation of every individual charater in the line. The default value is GLYPH_DEFAULT, that is, the glyphs point towards the source of the given block progression. Use the GLYPH constants for the orientation.

Specified by:
setGlyphOrientation in interface TextProperties
Parameters:
orientation - Orientation to be set for the glyphs (i.e. the rotation of every individual character of the line of text)
See Also:
TextProperties.getGlyphOrientation(), TextProperties.GLYPH_DEFAULT, TextProperties.GLYPH_UP, TextProperties.GLYPH_DOWN, TextProperties.GLYPH_RIGHT, TextProperties.GLYPH_LEFT

setGlyphOrientationFormula

public void setGlyphOrientationFormula(FormulaField formula)
Sets the formula whose return value determines the glyph orientation. This is the rotation of every individual charater in each line. This formula should return one of the formula constants GlyphDefault, GlyphLeft, GlyphRight, or GlyphDown.

Specified by:
setGlyphOrientationFormula in interface TextProperties
Parameters:
formula - the formula whose return value determines the glyph orientation

getGlyphOrientationFormula

public FormulaField getGlyphOrientationFormula()
Returns the formula whose return value determines the glyph orientation. This is the rotation of every individual charater in each line. This formula should return one of the formula constants GlyphDefault, GlyphLeft, GlyphRight, or GlyphDown.

Specified by:
getGlyphOrientationFormula in interface TextProperties
Returns:
the formula whose return value determines the glyph orientation

setTextRotation

public void setTextRotation(int rotation)
Sets the value of the property 'text rotation'. This property defines a final rotation of the entire element after the text is laid out. For example, to have a text element have vertical text running from top to bottom and each line run from right to left, you'd set a glyph orientation of GLYPH_LEFT and a text rotation of ROTATE_270.

Specified by:
setTextRotation in interface TextProperties
Parameters:
rotation - The new value of the property 'text rotation'. Rotation is done counter-clockwise.
Since:
5.4
See Also:
TextProperties.ROTATE_0, TextProperties.ROTATE_90, TextProperties.ROTATE_180, TextProperties.ROTATE_270

getTextRotation

public int getTextRotation()
Returns the value of the property 'text rotation'. This property defines a final rotation of the entire element after the text is laid out. For example, to have a text element have vertical text running from top to bottom and each line run from right to left, you'd set a glyph orientation of GLYPH_LEFT and a text rotation of ROTATE_270.

Specified by:
getTextRotation in interface TextProperties
Returns:
The value of the property 'text rotation'.
Since:
5.4
See Also:
TextProperties.ROTATE_0, TextProperties.ROTATE_90, TextProperties.ROTATE_180, TextProperties.ROTATE_270

getTextRotationFormula

public FormulaField getTextRotationFormula()
Returns the formula whose return value determines the property 'text rotation'. This property defines a final rotation of the entire element after the text is laid out. This formula should return one of the formula constants Rotate0, Rotate90, Rotate180, or Rotate270.

Specified by:
getTextRotationFormula in interface TextProperties
Returns:
formula whose return value determines the property 'text rotation'.
See Also:
TextProperties.getTextRotation(), TextProperties.setTextRotation(int)

setTextRotationFormula

public void setTextRotationFormula(FormulaField formula)
Sets the formula whose return value determines the property 'text rotation'. This property defines a final rotation of the entire element after the text is laid out. This formula should return one of the formula constants Rotate0, Rotate90, Rotate180, or Rotate270.

Specified by:
setTextRotationFormula in interface TextProperties
Parameters:
formula - formula whose return value determines the property 'text rotation'.
See Also:
TextProperties.getTextRotation(), TextProperties.setTextRotation(int)

setCanGrow

public 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. they grow until at least one line is visible. All other FieldElements are normal in regards to their "can grow" behavior.

Specified by:
setCanGrow in interface GeneralProperties
Overrides:
setCanGrow in class Element
Parameters:
canGrow - whether or not this element should be able to "grow" vertically if its content exceeds its available space.
See Also:
Element.setCanGrow(boolean)

setCanGrowCount

public void setCanGrowCount(int limit)
Number and Currency Field Elements can only be set to a can grow maximum limit of 1. All other FieldElements can be set normally.

Specified by:
setCanGrowCount in interface GeneralProperties
Overrides:
setCanGrowCount in class Element
Parameters:
limit - maximum "can grow" limit
Throws:
java.lang.IllegalArgumentException - if this Element is a Number or Currency FieldElement and newFormula is not 1
See Also:
Element.setCanGrow(boolean)

getFirstLineIndentFormula

public FormulaField getFirstLineIndentFormula()
Returns the formula whose return value determines the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).

Specified by:
getFirstLineIndentFormula in interface ParagraphProperties
Returns:
The formula whose return value determines the property 'first line indent'.

getLeftIndentFormula

public FormulaField getLeftIndentFormula()
Returns the formula whose return value determines the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).

Specified by:
getLeftIndentFormula in interface ParagraphProperties
Returns:
The formula whose return value determines the property 'left indent'.

getLineSpacingAbsoluteFormula

public FormulaField getLineSpacingAbsoluteFormula()
Returns the formula whose return value determines the absolute distance between baselines of the lines in this paragraph, measured in twips.

Specified by:
getLineSpacingAbsoluteFormula in interface ParagraphProperties
Returns:
Absolute distance between baselines in this paragraph, measured in twips
See Also:
ParagraphProperties.setLineSpacingAbsolute(int)

getLineSpacingRelativeFormula

public FormulaField getLineSpacingRelativeFormula()
Returns the formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph. The default line spacing is determined by font and font size, and is then multiplied by this formula's value.

Specified by:
getLineSpacingRelativeFormula in interface ParagraphProperties
Returns:
formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph
See Also:
ParagraphProperties.getLineSpacingRelative()

getRightIndentFormula

public FormulaField getRightIndentFormula()
Returns the formula whose return value determines the property 'right indent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).

Specified by:
getRightIndentFormula in interface ParagraphProperties
Returns:
The formula whose return value determines the property 'right indent'.

setFirstLineIndentFormula

public void setFirstLineIndentFormula(FormulaField formula)
Sets the formula whose return value determines the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).

Specified by:
setFirstLineIndentFormula in interface ParagraphProperties
Parameters:
formula - The formula whose return value determines the property 'first line indent'.

setLeftIndentFormula

public void setLeftIndentFormula(FormulaField formula)
Sets the formula whose return value determines the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).

Specified by:
setLeftIndentFormula in interface ParagraphProperties
Parameters:
formula - The formula whose return value determines the property 'left indent'.

setLineSpacingAbsoluteFormula

public 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.

Specified by:
setLineSpacingAbsoluteFormula in interface ParagraphProperties
Parameters:
formula - formula whose return value determines the absolute distance between baselines in this paragraph, measured in twips
See Also:
ParagraphProperties.setLineSpacingAbsolute(int)

setLineSpacingRelativeFormula

public 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. The default line spacing is determined by font and font size, and is then multiplied by this formula's value.

Specified by:
setLineSpacingRelativeFormula in interface ParagraphProperties
Parameters:
formula - formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph
See Also:
ParagraphProperties.setLineSpacingRelative(double)

setRightIndentFormula

public void setRightIndentFormula(FormulaField formula)
Sets the formula whose return value determines the property 'right indent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).

Specified by:
setRightIndentFormula in interface ParagraphProperties
Parameters:
formula - The formula whose return value determines the property 'right indent'.

parseEndElement

public void parseEndElement(com.inet.report.parser.XMLTag group,
                            java.lang.String tag,
                            java.util.Map parserMap)
                     throws FatalParserException
FOR INTERNAL USE ONLY Internal method for reading report XML

Receive notification of the end of an XML tag.

Specified by:
parseEndElement in interface NodeParser
Parameters:
group - XMLTag of the current node to be parsed, or null if there is no such current group.
tag - The XMLTag to be parsed
parserMap - The map of current Parser.
Throws:
FatalParserException - if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.

parseText

public void parseText(java.lang.String text,
                      java.util.Map parserMap)
FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XML

This method is called if text was encountered in the context of this node. (Examples would be a formula's text or a text element's text)

Specified by:
parseText in interface NodeParser
Parameters:
text - text encountered and to be stored
parserMap - The map of current Parser.

i-net Clear Reports

Copyright © 1999-2015 by i-net software GmbH