Klasse TextPart
java.lang.Object
com.inet.report.ReportComponent
com.inet.report.Element
com.inet.report.AbstractFontElement
com.inet.report.TextPart
- Alle implementierten Schnittstellen:
FontProperties, GeneralProperties, NodeParser, com.inet.report.ReferenceHolder, Serializable, Cloneable
The text objects in a report are separated into parts of text, where each part has its own format, i.e. color and size. This elements are called text parts and are represented by this class. Note
that it is not possible to instantiate this class directly. Please use the
example: adding the line "hello World" into a text
This class is part of the
Paragraph.addTextPart(String) method from class Paragraph instead. example: adding the line "hello World" into a text
TextPart tPartHello = paragraph.addTextPart("hello ");
TextPart tPartWorld = paragraph.addTextPart("World");
tPartWorld.setFontBold(true);
paragraph is a reference to a line of a text you want to insert. The method addTextPart creates a new instance of TextPart, initialize it with
the given String and formats it with default. The method saves one reference to the new TextPart into paragraph and returns one. In the example it
happens twice times, because the two parts get different format. If the whole String should use the same format add only one TextPart with both words.This class is part of the
RDC.- Seit:
- 6.0
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen AbstractFontElement
AbstractFontElement.FontPropsVon Klasse geerbte verschachtelte Klassen/Schnittstellen Element
Element.BorderProps, Element.CommonProperties, Element.ElementTypes, Element.HyperlinkProps, Element.StringProps -
Feldübersicht
Von Klasse geerbte Felder Element
BOX, CHART, CROSSTAB, CROSSTABSECTION, DATABASE_PICTURE, FIELD, FIELDPART, FORMFIELD, INTERACTIVE_SORTING, JAVABEAN, LINE, PARAGRAPH, PICTURE, SIGNATURE, SUBREPORT, TEXT, TEXTPARTVon Schnittstelle geerbte Felder FontProperties
FONT_DIALOG, FONT_MONOSPACED, FONT_SANS_SERIF, FONT_SERIF, FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_STRIKETHROUGH, FONT_STYLE_UNDERLINE -
Methodenübersicht
Modifikator und TypMethodeBeschreibungintUse the value of the parent paragraph.Use the value of the parent paragraph.Returns this field part's parent's paragraph.List<? extends ReportComponent> Returns allReportComponents that are descendants of this one.getText()Gets the value of the property 'text'.intindexOf()Returns The current index of this text part in its paragraph.Creates and return a String representation for debugging.voidFOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLvoidsetHorAlign(int value) Use the value of the parent paragraph.voidsetHorAlignFormula(FormulaField newFormula) Use the value of the parent paragraph.voidSets the value of the property 'text'.Von Klasse geerbte Methoden AbstractFontElement
getFontColor, getFontColorFormula, getFontName, getFontNameFormula, getFontSize, getFontSizeFormula, getFontSizeTwips, getFontStyle, getFontStyleFormula, getPropertyFormulas, getStrikeoutFormula, getUnderlineFormula, isBold, isItalic, isStrikeout, isUnderline, parseElement, setBold, setFontColor, setFontColorFormula, setFontName, setFontNameFormula, setFontSize, setFontSizeFormula, setFontSizeTwips, setFontStyle, setFontStyleFormula, setItalic, setStrikeout, setStrikeoutFormula, setUnderline, setUnderlineFormulaVon Klasse geerbte Methoden Element
addListener, copy, getBottomLineStyle, getBottomLineStyleFormula, getBulletValueStack, getCanGrowCount, getCanGrowFormula, getCloseBorderOnPageBreakFormula, getDropShadowFormula, getEngine, getField, getForeColor, getForeColorFormula, getHyperlinkUrl, getHyperlinkUrlFormula, getLeftLineStyle, getLeftLineStyleFormula, getListStack, getParent, getRightLineStyle, getRightLineStyleFormula, getSuppressIfDuplicatedFormula, getTightHorizontalFormula, getToolTipsText, getToolTipsTextFormula, getTopLineStyle, getTopLineStyleFormula, getTypeAsString, getVerAlign, getVerAlignFormula, isCanGrow, isCloseBorderOnPageBreak, isCloseBorderOnPageBreakInternal, isDropShadow, isInCrossTab, isSuppressIfDuplicated, isTightHorizontal, removeListener, setBottomLineStyle, setBottomLineStyleFormula, setBulletValueStack, setCanGrow, setCanGrowCount, setCanGrowFormula, setCloseBorderOnPageBreak, setCloseBorderOnPageBreakFormula, setDropShadow, setDropShadowFormula, setField, setForeColor, setForeColorFormula, setHyperlinkUrl, setHyperlinkUrlFormula, setIndex, setLeftLineStyle, setLeftLineStyleFormula, setListStack, setReferences, setRightLineStyle, setRightLineStyleFormula, setSuppressIfDuplicated, setSuppressIfDuplicatedFormula, setTightHorizontal, setTightHorizontalFormula, setToolTipsText, setToolTipsTextFormula, setTopLineStyle, setTopLineStyleFormula, setVerAlign, setVerAlignFormulaVon Klasse geerbte Methoden ReportComponent
addPropertyChangeListener, addPropertyChangeListener, addReferencedObject, addVetoableChangeListener, addVetoableChangeListener, getBackColor, getBackColorFormula, getCustomData, getHeight, getKeepTogetherFormula, getRealReferencedObjectCount, getReferencedObjectCount, getReferencedObjects, getStructElem, getSuppressFormula, getType, getWidth, getX, getY, isDOMParser, isKeepTogether, isSuppress, parseDOM, parseEndElement, removePropertyChangeListener, removePropertyChangeListener, removeReferencedObject, removeVetoableChangeListener, removeVetoableChangeListener, resetReferences, setBackColor, setBackColorFormula, setCustomData, setHeight, setKeepTogether, setKeepTogetherFormula, setStructElem, setSuppress, setSuppressFormula, setWidth, setX, setYVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden GeneralProperties
getKeepTogetherFormula, getSuppressFormula, isKeepTogether, isSuppress, setKeepTogether, setKeepTogetherFormula, setSuppress, setSuppressFormula
-
Methodendetails
-
getParentParagraph
Returns this field part's parent's paragraph.- Gibt zurück:
- This field part's parent's paragraph.
- Seit:
- 7.0
- Siehe auch:
-
getText
Gets the value of the property 'text'. The property text contains the string, that is shown by the label, that TextPart belongs to.- Gibt zurück:
- The value of the property 'text'.
- Seit:
- 6.0
-
setText
Sets the value of the property 'text'. The property text contains the string, that is shown by the label, that TextPart belongs to.- Parameter:
newValue- The new value of the property 'text'.- Seit:
- 6.0
-
paramString
Creates and return a String representation for debugging.- Setzt außer Kraft:
paramStringin KlasseElement- Gibt zurück:
- String representation of this Element for debugging purposes
-
indexOf
-
parseText
FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY FOR INTERNAL USE ONLY Internal method for reading report XMLThis 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)
- Angegeben von:
parseTextin SchnittstelleNodeParser- Setzt außer Kraft:
parseTextin KlasseElement- Parameter:
text- text encountered and to be storedparserMap- The map of current Parser.
-
getHorAlign
public int getHorAlign()Use the value of the parent paragraph. Returns the value of the property 'horizontal alignment'.
Possible alignments are default, left, center, right or justified.- Angegeben von:
getHorAlignin SchnittstelleGeneralProperties- Setzt außer Kraft:
getHorAlignin KlasseElement- Gibt zurück:
- Possible return values are default, left, center, right or justified.
- Siehe auch:
-
getHorAlignFormula
Use the value of the parent paragraph. Returns the formula for the property 'horizontal alignment'.
Possible alignments are default, left, center, right or justified.- Angegeben von:
getHorAlignFormulain SchnittstelleGeneralProperties- Setzt außer Kraft:
getHorAlignFormulain KlasseElement- Gibt zurück:
- FormulaField The formula for the property 'horizontal alignment'.
-
setHorAlign
public void setHorAlign(int value) Use the value of the parent paragraph. Sets the value of the property 'horizontal alignment'.
Possible alignments are default, left, center, right or justified.- Angegeben von:
setHorAlignin SchnittstelleGeneralProperties- Setzt außer Kraft:
setHorAlignin KlasseElement- Parameter:
value- The new value of the property 'horizontal alignment'.- Siehe auch:
-
setHorAlignFormula
Use the value of the parent paragraph. Sets the formula for the property 'horizontal alignment'.
Possible alignments are default, left, center, right or justified.- Angegeben von:
setHorAlignFormulain SchnittstelleGeneralProperties- Setzt außer Kraft:
setHorAlignFormulain KlasseElement- Parameter:
newFormula- The new formula for the property 'horizontal alignment'. The result of the formula should be in range from 0 to 4.- Siehe auch:
-
getSubComponents
Returns allReportComponents that are descendants of this one. E.G. this will return all Element of aSection. But it's as well useful forCrossTabs orTextelements which have additional elements.- Angegeben von:
getSubComponentsin KlasseReportComponent- Gibt zurück:
- a list with all sub components which can be empty as well; will be
nullif the component has no descendants
-