public class StiRichText extends StiSimpleText implements IStiExportImageExtended, IStiBreakable, IStiBorder, IStiGlobalizationProvider, IStiBackColor
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.Object |
PropertyCanBreak |
PropertyGlobalizedName, PropertyMaxNumberOfLines, PropertyOnlyText, PropertyProcessAt, PropertyProcessingDuplicates, text, totalValueHelpcanGrow, canShrink, componentPlacement, conditions, interaction, isRendered, page, parent, parentBookmark, PropertyComponentStyle, PropertyDelimiterComponent, PropertyDockable, PropertyInherited, PropertyLinked, PropertyLocked, PropertyMaxSize, PropertyMinSize, PropertyPlaceOnToolbox, PropertyRenderedCount, PropertyRestrictions, PropertySelectionTick, PropertyShowQuickButtons, PropertyUseParentStyles, top, widthpropertiesREFERENCE_EMPTY, REFERENCE_REPORT| Constructor and Description |
|---|
StiRichText()
Creates a new object of the type StiRichText.
|
StiRichText(StiRectangle rect)
Creates a new component of the type StiRichText.
|
StiRichText(StiRectangle rect,
java.lang.String text)
Creates a new component of the type StiRichText.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Break(StiComponent dividedComponent,
double devideFactor,
StiRefObject<java.lang.Double> divideLine)
Divides content of components in two parts.
|
java.lang.Object |
clone()
Creates a new object that is a copy of the current instance.
|
StiRectangle |
convertTextMargins(StiRectangle rect,
boolean convert) |
StiSize |
getActualSize()
Initializes a new instance of the StiSize class from the specified dimensi.
|
java.lang.String[] |
getAllStrings()
Returns array of the property names which can be localized.
|
StiColor |
getBackColor()
Gets or sets a back color.
|
StiBorder |
getBorder()
Gets or sets frame of the component.
|
boolean |
getCanBreak()
Gets or sets value which indicates whether the component can or cannot break its contents on
several pages.
|
java.lang.String |
getDataColumn()
Gets or sets a name of the column that contains the RTF text.
|
StiDataUrlExpression |
getDataUrl() |
java.lang.String |
getDecodeText() |
StiColor |
getDefaultColor()
Gets or sets default Color.
|
java.awt.Font |
getDefaultFont()
Gets or sets default font.
|
boolean |
getDetectUrls()
Gets or sets detection of urls.
|
boolean |
getFullConvertExpression()
Gets or sets value which indicates that it is necessary to fully convert the expression to
Rtf format.
|
java.lang.String |
getGlobalizedName()
Gets or sets special identificator which will be used for report globalization.
|
boolean |
getHideZeros()
Gets or sets value indicates that no need show zeroes.
|
java.awt.Image |
getImage() |
StiPenStyle |
getLinesOfUnderline()
Gets or sets value indicates that it is necessary to lines of underline.
|
java.lang.String |
getLocalizedCategory()
Gets a localized name of the component category.
|
java.lang.String |
getLocalizedName()
Gets a localized component name.
|
StiMargins |
getMargins()
Gets or sets text margins.
|
int |
getMaxNumberOfLines()
Gets or sets maximum number of lines which specify the limit of the height stretch.
|
StiProcessingDuplicatesType |
getProcessingDuplicates()
Gets or sets value which indicates how report engine processes duplicated values.
|
protected java.lang.String |
getRtfFromDataColumn(java.lang.String dataColumn) |
java.lang.String |
getRtfFromSource(java.lang.String dataUrlValue,
java.lang.String dataColumn) |
protected java.lang.String |
getRtfFromUrl(java.lang.String url) |
java.lang.String |
getRtfText() |
java.lang.String |
getString(java.lang.String propertyName)
Gets localized String from specified property name.
|
int |
getToolboxPosition()
Gets value to sort a position in the toolbox.
|
boolean |
getWordWrap()
Gets or sets word wrap.
|
boolean |
getWysiwyg()
Gets or sets value which indicates that it is necessary to use the Wysiwyg mode of the
rendering.
|
void |
InvokeGetValue(StiComponent sender,
StiGetValueEventArgs e) |
boolean |
isExportAsImage(StiExportFormat format) |
void |
LoadFromJsonObject(JSONObject jObject) |
static java.lang.String |
PackRtf(java.lang.String str)
Pack RTF text for save and compilation.
|
java.lang.String |
SaveState()
Saves state of editable value.
|
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode) |
void |
setBackColor(StiColor value) |
void |
setBorder(StiBorder value) |
void |
setCanBreak(boolean value) |
void |
setDataColumn(java.lang.String value) |
void |
setDataUrl(StiDataUrlExpression value) |
void |
setDefaultColor(StiColor value) |
void |
setDefaultFont(java.awt.Font value) |
void |
setDetectUrls(boolean value) |
void |
setFullConvertExpression(boolean value) |
void |
setGlobalizedName(java.lang.String value) |
void |
setHideZeros(boolean value) |
void |
setImage(java.awt.Image value) |
void |
setLinesOfUnderline(StiPenStyle value) |
void |
setMargins(StiMargins value) |
void |
setMaxNumberOfLines(int value) |
void |
setProcessingDuplicates(StiProcessingDuplicatesType value) |
void |
setString(java.lang.String propertyName,
java.lang.String value)
Sets localized String to specified property name.
|
void |
setTextInternal(java.lang.String value)
Internal use only.
|
void |
setWordWrap(boolean value) |
void |
setWysiwyg(boolean value) |
java.lang.String |
unpackRTF()
Unpack RFT (remove service symbols)
|
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, setTotalValueHelpaddSize, AllowPrintOn, applyConditions, canContainIn, CheckForParentComponent, clearAllStates, ClearAllStates, ClearContents, clone, ComponentToPage, ComponentToPage, ComponentToPage, convert, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, fillComponentPlacement, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getBuilder, getCanGrow, getCanShrink, getClickEvent, getClientRectangle, getComponentPlacement, getComponentStyle, getComponentType, getConditions, getContainer, getCurrentBookmark, getDataBand, GetDataBand, getDefaultClientRectangle, getDelimiterComponent, getDisplayRectangle, getDisplayRectangle1, getDockable, getDockRegion, getDockRegion, getDockStyle, getDoubleClickEvent, getDrillDownParameters, getEnabled, 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, getPrintable, getPrintOn, getPriority, getRenderedCount, getReport, getRestrictions, getRight, getSelectionTick, getSelectRectangle, getServiceCategory, getServiceType, getShift, getShiftMode, getShowQuickButtons, getStates, getTag, getTagValue, getToolTip, getToolTipValue, getTop, getUseParentStyles, getWidth, incrementtTop, InternalRender, invert, InvokeAfterPrint, InvokeBeforePrint, InvokeBeginRender, InvokeClick, InvokeDoubleClick, InvokeEndRender, invokeEvents, InvokegetBookmark, InvokegetDrillDownReport, InvokegetHyperlink, InvokegetTag, InvokegetToolTip, InvokeMouseEnter, InvokeMouseLeave, InvokePainted, invokePainting, 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, 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, setPrintable, setPrintOn, setRenderedCount, setReport, SetReportVariables, setRestrictions, setSelectionTick, setSelectRectangle, setShift, setShiftMode, setShowQuickButtons, setStates, setTag, setTagValue, setToolTip, setToolTipValue, setTop, setTopProp, setUseParentStyles, setWidth, setWidthProp, toString, UnPreparegetName, getServiceNamegetProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, properties, setProperties, setServiceEnabledcleanReference, getReference, setReferenceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetImagegetImagepublic StiRichText()
public StiRichText(StiRectangle rect)
rect - The rectangle describes size and position of the component.public StiRichText(StiRectangle rect, java.lang.String text)
rect - The rectangle describes size and position of the component.text - Text expressionpublic boolean isExportAsImage(StiExportFormat format)
isExportAsImage in interface IStiExportImageExtendedisExportAsImage in class StiComponentpublic boolean getCanBreak()
getCanBreak in interface IStiBreakablepublic void setCanBreak(boolean value)
setCanBreak in interface IStiBreakablepublic java.lang.Object clone()
clone in class StiSimpleTextpublic void setString(java.lang.String propertyName,
java.lang.String value)
setString in interface IStiGlobalizationProviderpublic java.lang.String getString(java.lang.String propertyName)
getString in interface IStiGlobalizationProviderpublic java.lang.String[] getAllStrings()
getAllStrings in interface IStiGlobalizationProviderpublic final StiBorder getBorder()
getBorder in interface IStiBorderpublic final void setBorder(StiBorder value)
setBorder in interface IStiBorderpublic final java.lang.String getGlobalizedName()
StiSimpleTextgetGlobalizedName in interface IStiGlobalizedNamegetGlobalizedName in class StiSimpleTextpublic final void setGlobalizedName(java.lang.String value)
setGlobalizedName in interface IStiGlobalizedNamesetGlobalizedName in class StiSimpleTextpublic StiPenStyle getLinesOfUnderline()
StiSimpleTextgetLinesOfUnderline in interface IStiTextgetLinesOfUnderline in class StiSimpleTextpublic void setLinesOfUnderline(StiPenStyle value)
setLinesOfUnderline in interface IStiTextsetLinesOfUnderline in class StiSimpleTextpublic boolean getHideZeros()
StiSimpleTextgetHideZeros in interface IStiTextgetHideZeros in class StiSimpleTextpublic void setHideZeros(boolean value)
setHideZeros in interface IStiTextsetHideZeros in class StiSimpleTextpublic StiProcessingDuplicatesType getProcessingDuplicates()
StiSimpleTextgetProcessingDuplicates in interface IStiTextgetProcessingDuplicates in class StiSimpleTextpublic void setProcessingDuplicates(StiProcessingDuplicatesType value)
setProcessingDuplicates in interface IStiTextsetProcessingDuplicates in class StiSimpleTextpublic int getMaxNumberOfLines()
StiSimpleTextgetMaxNumberOfLines in interface IStiTextgetMaxNumberOfLines in class StiSimpleTextpublic void setMaxNumberOfLines(int value)
setMaxNumberOfLines in interface IStiTextsetMaxNumberOfLines in class StiSimpleTextpublic int getToolboxPosition()
getToolboxPosition in class StiComponentpublic java.lang.String getLocalizedName()
getLocalizedName in class StiBasepublic java.lang.String getLocalizedCategory()
getLocalizedCategory in class StiBasepublic final StiRectangle convertTextMargins(StiRectangle rect, boolean convert)
public final java.awt.Image getImage()
public final void setImage(java.awt.Image value)
public StiMargins getMargins()
public void setMargins(StiMargins value)
public final java.awt.Font getDefaultFont()
public final void setDefaultFont(java.awt.Font value)
public final StiColor getDefaultColor()
public final void setDefaultColor(StiColor value)
public boolean getWordWrap()
public void setWordWrap(boolean value)
public boolean getDetectUrls()
public void setDetectUrls(boolean value)
public final StiColor getBackColor()
getBackColor in interface IStiBackColorpublic final void setBackColor(StiColor value)
setBackColor in interface IStiBackColorpublic final java.lang.String getDataColumn()
public final void setDataColumn(java.lang.String value)
public final boolean getFullConvertExpression()
public final void setFullConvertExpression(boolean value)
public StiDataUrlExpression getDataUrl()
public void setDataUrl(StiDataUrlExpression value)
public final boolean getWysiwyg()
public final void setWysiwyg(boolean value)
public void setTextInternal(java.lang.String value)
setTextInternal in interface IStiTextsetTextInternal in class StiSimpleTextpublic java.lang.String SaveState()
StiSimpleTextSaveState in interface IStiEditableSaveState in class StiSimpleTextpublic boolean Break(StiComponent dividedComponent, double devideFactor, StiRefObject<java.lang.Double> divideLine)
IStiBreakableBreak in interface IStiBreakabledividedComponent - Component for store part of content.public StiSize getActualSize()
StiComponentgetActualSize in class StiComponentpublic void InvokeGetValue(StiComponent sender, StiGetValueEventArgs e)
InvokeGetValue in class StiSimpleTextpublic java.lang.String getRtfFromSource(java.lang.String dataUrlValue,
java.lang.String dataColumn)
protected java.lang.String getRtfFromUrl(java.lang.String url)
protected java.lang.String getRtfFromDataColumn(java.lang.String dataColumn)
public java.lang.String unpackRTF()
value - public static java.lang.String PackRtf(java.lang.String str)
str - public java.lang.String getDecodeText()
public java.lang.String getRtfText()
public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
SaveToJsonObject in interface IStiJsonReportObjectSaveToJsonObject in class StiSimpleTextJSONExceptionpublic void LoadFromJsonObject(JSONObject jObject) throws JSONException
LoadFromJsonObject in interface IStiJsonReportObjectLoadFromJsonObject in class StiSimpleTextJSONExceptionCopyright © 2019 Stimulsoft. All Rights Reserved.