Class StiRichText
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.StiBase
com.stimulsoft.report.components.StiComponent
com.stimulsoft.report.components.simplecomponents.StiSimpleText
com.stimulsoft.report.components.simplecomponents.StiRichText
- All Implemented Interfaces:
IStiAppExpressionCollection,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiName,IStiBackColor,IStiBorder,IStiBreakable,IStiCanGrow,IStiCanShrink,IStiComponentGuid,IStiConditions,IStiEditable,IStiExportImage,IStiExportImageExtended,IStiGlobalizedName,IStiGrowToHeight,IStiInteraction,IStiOnlyText,IStiPrintOn,IStiProcessAt,IStiProcessAtEnd,IStiSelect,IStiShift,IStiText,IStiUnitConvert,IStiReportProperty,IStiGlobalizationProvider,IStiInherited,IStiStateSaveRestore,Cloneable
- Direct Known Subclasses:
StiTableCellRichText
public class StiRichText
extends StiSimpleText
implements IStiExportImageExtended, IStiBreakable, IStiBorder, IStiGlobalizationProvider, IStiBackColor
The class describes a component that allows to outtype RichText.
-
Field Summary
FieldsFields inherited from class com.stimulsoft.report.components.simplecomponents.StiSimpleText
PropertyGlobalizedName, PropertyMaxNumberOfLines, PropertyOnlyText, PropertyProcessAt, PropertyProcessingDuplicates, text, totalValueHelpFields inherited from class com.stimulsoft.report.components.StiComponent
canGrow, canShrink, componentPlacement, conditions, currentPointer, eventFlags, expressions, interaction, isRendered, page, parent, parentBookmark, parentPointer, PropertyComponentStyle, PropertyDelimiterComponent, PropertyDockable, PropertyInherited, PropertyLinked, PropertyLocked, PropertyMaxSize, PropertyMinSize, PropertyPlaceOnToolbox, PropertyRenderedCount, PropertyRestrictions, PropertySelectionTick, PropertyShowQuickButtons, PropertyUseParentStyles, top, widthFields inherited from class com.stimulsoft.base.services.StiService
propertiesFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new object of the type StiRichText.StiRichText(StiRectangle rect) Creates a new component of the type StiRichText.StiRichText(StiRectangle rect, String text) Creates a new component of the type StiRichText. -
Method Summary
Modifier and TypeMethodDescriptionbooleanBreak(StiComponent dividedComponent, double devideFactor, StiRefObject<Double> divideLine, StiRefObject<Boolean> haveBreaked) Divides content of components in two parts.clone()Creates a new object that is a copy of the current instance.final StiRectangleconvertTextMargins(StiRectangle rect, boolean convert) fixCyrillic(String buffer) Initializes a new instance of the StiSize class from the specified dimensi.String[]Returns array of the property names which can be localized.final StiColorGets or sets a back color.final StiBorderGets or sets frame of the component.booleanGets or sets value which indicates whether the component can or cannot break its contents on several pages.final StringGets or sets a name of the column that contains the RTF text.final StiColorGets or sets default Color.final FontGets or sets default font.booleanGets or sets detection of urls.final booleanGets or sets value which indicates that it is necessary to fully convert the expression to Rtf format.final StringGets or sets special identificator which will be used for report globalization.booleanGets or sets value indicates that no need show zeroes.final ImagegetImage()Gets or sets value indicates that it is necessary to lines of underline.Gets a localized name of the component category.Gets a localized component name.Gets or sets text margins.intGets or sets maximum number of lines which specify the limit of the height stretch.Gets or sets value which indicates how report engine processes duplicated values.protected StringgetRtfFromDataColumn(String dataColumn) getRtfFromSource(String dataUrlValue, String dataColumn) protected StringgetRtfFromUrl(String url) Gets localized String from specified property name.intGets value to sort a position in the toolbox.booleanGets or sets word wrap.final booleanGets or sets value which indicates that it is necessary to use the Wysiwyg mode of the rendering.voidInvokeGetValue(StiComponent sender, StiGetValueEventArgs e) booleanisExportAsImage(StiExportFormat format) voidLoadFromJsonObject(JSONObject jObject) static StringPack RTF text for save and compilation.Saves state of editable value.final voidsetBackColor(StiColor value) final voidvoidsetCanBreak(boolean value) final voidsetDataColumn(String value) voidsetDataUrl(StiDataUrlExpression value) final voidsetDefaultColor(StiColor value) final voidsetDefaultFont(Font value) voidsetDetectUrls(boolean value) final voidsetFullConvertExpression(boolean value) final voidsetGlobalizedName(String value) voidsetHideZeros(boolean value) final voidvoidsetLinesOfUnderline(StiPenStyle value) voidsetMargins(StiMargins value) voidsetMaxNumberOfLines(int value) voidvoidSets localized String to specified property name.voidsetTextInternal(String value) Internal use only.voidsetWordWrap(boolean value) final voidsetWysiwyg(boolean value) Unpack RFT (remove service symbols)Methods inherited from class com.stimulsoft.report.components.simplecomponents.StiSimpleText
checkDuplicates, getComponentGuid, getEditable, getEvents, getGetValueEvent, getLinesOfUnderlining, getOnlyText, getProcessAt, getProcessAtEnd, getQuickInfo, getText, getTextInternal, getTextValue, GetTextWithoutZero, getTotalValueHelp, InvokeRenderTo, InvokeTextProcess, OnGetValue, ProcessText, RestoreState, saveState, setComponentGuid, setEditable, setGetValueEvent, setLinesOfUnderlining, setOnlyText, setProcessAt, setProcessAtEnd, setText, setText, SetText, SetTextInternal, setTextValue, setTotalValueHelpMethods inherited from class com.stimulsoft.report.components.StiComponent
addSize, AllowPrintOn, applyConditions, canContainIn, CheckForParentComponent, clearAllStates, ClearAllStates, ClearContents, clone, ComponentToPage, ComponentToPage, ComponentToPage, convert, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, doPointer, doPointer, fillComponentPlacement, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getBuilder, getCanGrow, getCanShrink, getClickEvent, getClientRectangle, getComponentPlacement, getComponentStyle, GetComponentStyle, getComponentType, getConditions, getContainer, getCurrentBookmark, getDataBand, GetDataBand, getDefaultClientRectangle, getDelimiterComponent, getDisplayRectangle, getDisplayRectangle1, getDockable, getDockRegion, getDockRegion, getDockStyle, getDoubleClickEvent, getDrillDownParameters, getEnabled, getExpressions, getForceRedrawAll, getGetBookmarkEvent, getGetDrillDownReportEvent, getGetHyperlinkEvent, getGetTagEvent, getGetToolTipEvent, getGroupHeaderBand, GetGroupHeaderBand, getGrowToHeight, getGuid, getHeight, getHighlightState, getHyperlink, getHyperlinkValue, getIgnoreNamingRule, getImage, getImage, getInherited, getInteraction, getInvalidateOnMouseOver, getIsCross, getIsDesigning, getIsEnabled, getIsEventEmpty, getIsExporting, getIsgetTagHandlerEmpty, getIsPrinting, getIsRendered, getIsSelected, getLeft, getLevel, getLinked, getLocked, getMaxSize, getMeasureGraphics, getMinSize, getMouseEnterEvent, getMouseLeaveEvent, getPage, getPaintRectangle, getPaintRectangle, getPaintRectangle, getParent, getParentBookmark, getPlaceOnToolbox, getPointer, getPointerValue, getPrintable, getPrintOn, getPriority, getRenderedCount, getReport, getRestrictions, getRight, getSelectionTick, getSelectRectangle, getServiceCategory, getServiceType, getShift, getShiftMode, getShowQuickButtons, getStates, getTag, getTagStrValue, getTagValue, getToolTip, getToolTipValue, getTop, getUseParentStyles, getWidth, incrementtTop, InternalRender, invert, InvokeAfterPrint, InvokeBeforePrint, InvokeBeginRender, invokeBlockly, InvokeClick, InvokeDoubleClick, InvokeEndRender, invokeEvents, InvokegetBookmark, InvokegetDrillDownReport, InvokegetHyperlink, InvokegetTag, InvokegetToolTip, InvokeMouseEnter, InvokeMouseLeave, InvokePainted, invokePainting, invokeScript, invokeScript, invokeScript, isAutomaticDock, isDesigning, IsParentSelect, NewGuid, OnAfterPrint, OnBeforePrint, OnClick, OnDoubleClick, OngetBookmark, OngetDrillDownReport, OngetHyperlink, OngetTag, OngetToolTip, OnMouseEnter, OnMouseLeave, OnPainted, OnPainting, OnRemoveComponent, packService, PageToComponent, PageToComponent, paint, PlacedOnColumnBand, Prepare, render, reset, Reset, restoreState, select, setAfterPrintEvent, setAlias, setAnchor, setBeforePrintEvent, setBookmark, setBookmarkValue, setCanGrow, setCanShrink, setClickEvent, setClientRectangle, setComponentPlacement, setComponentStyle, setConditions, setCurrentBookmark, setDelimiterComponent, setDirectDisplayRectangle, setDisplayRectangle, setDockable, setDockStyle, setDoubleClickEvent, setDrillDownParameters, setEnabled, setExpressions, setGetBookmarkEvent, setGetDrillDownReportEvent, setGetHyperlinkEvent, setGetTagEvent, setGetToolTipEvent, setGrowToHeight, setGuid, setHeight, setHeightProp, setHighlightState, setHyperlink, setHyperlinkValue, setIgnoreNamingRule, setInherited, setInteraction, setIsRendered, setIsSelected, setLeft, setLeftProp, setLinked, setLocked, setMaxSize, setMinSize, setMouseEnterEvent, setMouseLeaveEvent, setName, setPage, setPaintRectangle, setParent, setParentBookmark, setPlaceOnToolbox, setPointer, setPointerValue, setPrintable, setPrintOn, setRenderedCount, setReport, SetReportVariables, setRestrictions, setSelectionTick, setSelectRectangle, setShift, setShiftMode, setShowQuickButtons, setStates, setTag, setTagValue, setToolTip, setToolTipValue, setTop, setTopProp, setUseParentStyles, setWidth, setWidthProp, toString, UnPrepareMethods inherited from class com.stimulsoft.report.StiBase
getName, getServiceNameMethods inherited from class com.stimulsoft.base.services.StiService
getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, properties, setProperties, setServiceEnabledMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReferenceMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stimulsoft.report.components.interfaces.IStiExportImage
getImageMethods inherited from interface com.stimulsoft.report.components.interfaces.IStiExportImageExtended
getImage
-
Field Details
-
PropertyCanBreak
-
-
Constructor Details
-
StiRichText
public StiRichText()Creates a new object of the type StiRichText. -
StiRichText
Creates a new component of the type StiRichText.- Parameters:
rect- The rectangle describes size and position of the component.
-
StiRichText
Creates a new component of the type StiRichText.- Parameters:
rect- The rectangle describes size and position of the component.text- Text expression
-
-
Method Details
-
isExportAsImage
- Specified by:
isExportAsImagein interfaceIStiExportImageExtended- Overrides:
isExportAsImagein classStiComponent
-
getCanBreak
public boolean getCanBreak()Gets or sets value which indicates whether the component can or cannot break its contents on several pages.- Specified by:
getCanBreakin interfaceIStiBreakable
-
setCanBreak
public void setCanBreak(boolean value) - Specified by:
setCanBreakin interfaceIStiBreakable
-
clone
Creates a new object that is a copy of the current instance.- Overrides:
clonein classStiSimpleText- Returns:
- A new object that is a copy of this instance.
-
setString
Sets localized String to specified property name.- Specified by:
setStringin interfaceIStiGlobalizationProvider- Parameters:
propertyName-value-
-
getString
Gets localized String from specified property name.- Specified by:
getStringin interfaceIStiGlobalizationProvider- Parameters:
propertyName-- Returns:
-
getAllStrings
Returns array of the property names which can be localized.- Specified by:
getAllStringsin interfaceIStiGlobalizationProvider- Returns:
- Returns array of the property names which can be localized.
-
getBorder
Gets or sets frame of the component.- Specified by:
getBorderin interfaceIStiBorder
-
setBorder
- Specified by:
setBorderin interfaceIStiBorder
-
getGlobalizedName
Description copied from class:StiSimpleTextGets or sets special identificator which will be used for report globalization.- Specified by:
getGlobalizedNamein interfaceIStiGlobalizedName- Overrides:
getGlobalizedNamein classStiSimpleText
-
setGlobalizedName
- Specified by:
setGlobalizedNamein interfaceIStiGlobalizedName- Overrides:
setGlobalizedNamein classStiSimpleText
-
getLinesOfUnderline
Description copied from class:StiSimpleTextGets or sets value indicates that it is necessary to lines of underline.- Specified by:
getLinesOfUnderlinein interfaceIStiText- Overrides:
getLinesOfUnderlinein classStiSimpleText
-
setLinesOfUnderline
- Specified by:
setLinesOfUnderlinein interfaceIStiText- Overrides:
setLinesOfUnderlinein classStiSimpleText
-
getHideZeros
public boolean getHideZeros()Description copied from class:StiSimpleTextGets or sets value indicates that no need show zeroes.- Specified by:
getHideZerosin interfaceIStiText- Overrides:
getHideZerosin classStiSimpleText
-
setHideZeros
public void setHideZeros(boolean value) - Specified by:
setHideZerosin interfaceIStiText- Overrides:
setHideZerosin classStiSimpleText
-
getProcessingDuplicates
Description copied from class:StiSimpleTextGets or sets value which indicates how report engine processes duplicated values.- Specified by:
getProcessingDuplicatesin interfaceIStiText- Overrides:
getProcessingDuplicatesin classStiSimpleText
-
setProcessingDuplicates
- Specified by:
setProcessingDuplicatesin interfaceIStiText- Overrides:
setProcessingDuplicatesin classStiSimpleText
-
getMaxNumberOfLines
public int getMaxNumberOfLines()Description copied from class:StiSimpleTextGets or sets maximum number of lines which specify the limit of the height stretch.- Specified by:
getMaxNumberOfLinesin interfaceIStiText- Overrides:
getMaxNumberOfLinesin classStiSimpleText
-
setMaxNumberOfLines
public void setMaxNumberOfLines(int value) - Specified by:
setMaxNumberOfLinesin interfaceIStiText- Overrides:
setMaxNumberOfLinesin classStiSimpleText
-
getToolboxPosition
public int getToolboxPosition()Gets value to sort a position in the toolbox.- Overrides:
getToolboxPositionin classStiComponent
-
getLocalizedName
Gets a localized component name.- Overrides:
getLocalizedNamein classStiBase
-
getLocalizedCategory
Gets a localized name of the component category.- Overrides:
getLocalizedCategoryin classStiBase
-
convertTextMargins
-
getImage
-
setImage
-
getMargins
Gets or sets text margins. -
setMargins
-
getDefaultFont
Gets or sets default font. -
setDefaultFont
-
getDefaultColor
Gets or sets default Color. -
setDefaultColor
-
getWordWrap
public boolean getWordWrap()Gets or sets word wrap. -
setWordWrap
public void setWordWrap(boolean value) -
getDetectUrls
public boolean getDetectUrls()Gets or sets detection of urls. -
setDetectUrls
public void setDetectUrls(boolean value) -
getBackColor
Gets or sets a back color.- Specified by:
getBackColorin interfaceIStiBackColor
-
setBackColor
- Specified by:
setBackColorin interfaceIStiBackColor
-
getDataColumn
Gets or sets a name of the column that contains the RTF text. -
setDataColumn
-
getFullConvertExpression
public final boolean getFullConvertExpression()Gets or sets value which indicates that it is necessary to fully convert the expression to Rtf format. Full convertion of expressions slows down the report rendering. -
setFullConvertExpression
public final void setFullConvertExpression(boolean value) -
getDataUrl
-
setDataUrl
-
getWysiwyg
public final boolean getWysiwyg()Gets or sets value which indicates that it is necessary to use the Wysiwyg mode of the rendering. -
setWysiwyg
public final void setWysiwyg(boolean value) -
setTextInternal
Internal use only.- Specified by:
setTextInternalin interfaceIStiText- Overrides:
setTextInternalin classStiSimpleText
-
SaveState
Description copied from class:StiSimpleTextSaves state of editable value.- Specified by:
SaveStatein interfaceIStiEditable- Overrides:
SaveStatein classStiSimpleText
-
Break
public boolean Break(StiComponent dividedComponent, double devideFactor, StiRefObject<Double> divideLine, StiRefObject<Boolean> haveBreaked) Description copied from interface:IStiBreakableDivides content of components in two parts. Returns result of dividing. If true, then component is successful divided.- Specified by:
Breakin interfaceIStiBreakable- Parameters:
dividedComponent- Component for store part of content.- Returns:
- If true, then component is successful divided.
-
getActualSize
Description copied from class:StiComponentInitializes a new instance of the StiSize class from the specified dimensi.- Overrides:
getActualSizein classStiComponent- Returns:
- A class of the StiSize type which represents an actual size of the component.
-
InvokeGetValue
- Overrides:
InvokeGetValuein classStiSimpleText
-
getRtfFromSource
-
getRtfFromUrl
-
getRtfFromDataColumn
-
unpackRTF
Unpack RFT (remove service symbols)- Parameters:
value-- Returns:
-
fixCyrillic
-
PackRtf
Pack RTF text for save and compilation.- Parameters:
str-- Returns:
-
getDecodeText
-
getRtfText
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiSimpleText- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiSimpleText- Throws:
JSONException
-