Class StiSimpleText
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
- All Implemented Interfaces:
IStiAppExpressionCollection,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiName,IStiCanGrow,IStiCanShrink,IStiComponentGuid,IStiConditions,IStiEditable,IStiGlobalizedName,IStiGrowToHeight,IStiInteraction,IStiOnlyText,IStiPrintOn,IStiProcessAt,IStiProcessAtEnd,IStiSelect,IStiShift,IStiText,IStiUnitConvert,IStiReportProperty,IStiInherited,IStiStateSaveRestore,Cloneable
- Direct Known Subclasses:
StiRichText,StiText
public abstract class StiSimpleText
extends StiComponent
implements IStiGlobalizedName, IStiText, IStiEditable, IStiProcessAtEnd, IStiProcessAt, IStiOnlyText
Describes the class that realizes the component - StiText.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Objectprotected static Objectprotected static Objectprotected static Objectprotected static ObjectFields 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 StiSimpleText.StiSimpleText(StiRectangle rect) Creates a new component of the type StiSimpleText.StiSimpleText(StiRectangle rect, String text) Creates a new component of the type StiSimpleText. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckDuplicates(StiComponent sender, StiGetValueEventArgs e) clone()Creates a new object that is a copy of the current instance.final StringInternal use only.booleanGets or sets value indicates that a component can be edited in the window of viewer.Return events collection of this component.final StiGetValueEventOccurs when the text is being prepared for rendering.Gets or sets special identificator which will be used for report globalization.booleanGets or sets value indicates that no need show zeroes.Gets or sets value indicates that it is necessary to lines of underline.booleanGets or sets value indicates that it is necessary to lines of underlining.intGets or sets maximum number of lines which specify the limit of the height stretch.booleanGets or sets value indicates that the text expression contains a text only.Gets or sets value indicates that a text is processed at the end of the report execution.booleanGets or sets value indicates that a text is processed at the end of the report execution.Gets or sets value which indicates how report engine processes duplicated values.getText()Gets or sets text expression.Internal use only.Gets or sets text value.final StringGetTextWithoutZero(String text) Internal use only.voidInvokeGetValue(StiComponent sender, StiGetValueEventArgs e) voidInvokeRenderTo(StiSimpleText textBox) final voidInvokeTextProcess(StiComponent sender, StiValueEventArgs e) Raises the TextProcess event.voidLoadFromJsonObject(JSONObject jObject) protected voidRaises the GetValue event.ProcessText(String text) voidRestoreState(String stateName) Restores the earlier saved object state.voidSaves the current state of an object.Saves state of editable value.final voidsetComponentGuid(String value) voidsetEditable(boolean value) final voidsetGetValueEvent(StiGetValueEvent value) voidsetGlobalizedName(String value) voidsetHideZeros(boolean value) voidsetLinesOfUnderline(StiPenStyle value) voidsetLinesOfUnderlining(boolean value) voidsetMaxNumberOfLines(int value) voidsetOnlyText(boolean value) voidsetProcessAt(StiProcessAt value) voidsetProcessAtEnd(boolean value) voidvoidsetText(StiExpression value) voidvoidSets the text value in all printed objects.voidsetTextInternal(String value) Internal use only.voidSetTextInternal(String value) Internal use only.voidsetTextValue(String value) voidsetTotalValueHelp(String value) Methods 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, getActualSize, 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, getToolboxPosition, 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, isExportAsImage, 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
getLocalizedCategory, getLocalizedName, 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, setReference
-
Field Details
-
PropertyGlobalizedName
-
PropertyProcessingDuplicates
-
PropertyOnlyText
-
PropertyMaxNumberOfLines
-
PropertyProcessAt
-
text
-
totalValueHelp
-
-
Constructor Details
-
StiSimpleText
public StiSimpleText()Creates a new object of the type StiSimpleText. -
StiSimpleText
Creates a new component of the type StiSimpleText.- Parameters:
rect- The rectangle describes size and position of the component.
-
StiSimpleText
Creates a new component of the type StiSimpleText.- Parameters:
rect- The rectangle describes size and position of the component.text- Text expression
-
-
Method Details
-
InvokeTextProcess
Raises the TextProcess event. -
setComponentGuid
-
getGlobalizedName
Gets or sets special identificator which will be used for report globalization.- Specified by:
getGlobalizedNamein interfaceIStiGlobalizedName
-
setGlobalizedName
- Specified by:
setGlobalizedNamein interfaceIStiGlobalizedName
-
saveState
Saves the current state of an object.- Specified by:
saveStatein interfaceIStiStateSaveRestore- Overrides:
saveStatein classStiComponent- Parameters:
stateName- A name of the state being saved.
-
RestoreState
Restores the earlier saved object state.- Specified by:
RestoreStatein interfaceIStiEditable- Overrides:
RestoreStatein classStiComponent- Parameters:
stateName- A name of the state being restored.
-
clone
Creates a new object that is a copy of the current instance.- Overrides:
clonein classStiComponent- Returns:
- A new object that is a copy of this instance.
-
GetTextWithoutZero
-
getLinesOfUnderline
Gets or sets value indicates that it is necessary to lines of underline.- Specified by:
getLinesOfUnderlinein interfaceIStiText
-
setLinesOfUnderline
- Specified by:
setLinesOfUnderlinein interfaceIStiText
-
getLinesOfUnderlining
public boolean getLinesOfUnderlining()Gets or sets value indicates that it is necessary to lines of underlining. -
setLinesOfUnderlining
public void setLinesOfUnderlining(boolean value) -
getHideZeros
public boolean getHideZeros()Gets or sets value indicates that no need show zeroes.- Specified by:
getHideZerosin interfaceIStiText
-
setHideZeros
public void setHideZeros(boolean value) - Specified by:
setHideZerosin interfaceIStiText
-
getProcessingDuplicates
Gets or sets value which indicates how report engine processes duplicated values.- Specified by:
getProcessingDuplicatesin interfaceIStiText
-
setProcessingDuplicates
- Specified by:
setProcessingDuplicatesin interfaceIStiText
-
getMaxNumberOfLines
public int getMaxNumberOfLines()Gets or sets maximum number of lines which specify the limit of the height stretch.- Specified by:
getMaxNumberOfLinesin interfaceIStiText
-
setMaxNumberOfLines
public void setMaxNumberOfLines(int value) - Specified by:
setMaxNumberOfLinesin interfaceIStiText
-
ProcessText
-
getOnlyText
public boolean getOnlyText()Gets or sets value indicates that the text expression contains a text only.- Specified by:
getOnlyTextin interfaceIStiOnlyText- Specified by:
getOnlyTextin interfaceIStiText
-
setOnlyText
public void setOnlyText(boolean value) - Specified by:
setOnlyTextin interfaceIStiOnlyText- Specified by:
setOnlyTextin interfaceIStiText
-
getEditable
public boolean getEditable()Gets or sets value indicates that a component can be edited in the window of viewer.- Specified by:
getEditablein interfaceIStiEditable
-
setEditable
public void setEditable(boolean value) - Specified by:
setEditablein interfaceIStiEditable
-
getProcessAtEnd
public boolean getProcessAtEnd()Gets or sets value indicates that a text is processed at the end of the report execution.- Specified by:
getProcessAtEndin interfaceIStiProcessAtEnd
-
setProcessAtEnd
public void setProcessAtEnd(boolean value) - Specified by:
setProcessAtEndin interfaceIStiProcessAtEnd
-
getProcessAt
Gets or sets value indicates that a text is processed at the end of the report execution.- Specified by:
getProcessAtin interfaceIStiProcessAt
-
setProcessAt
- Specified by:
setProcessAtin interfaceIStiProcessAt
-
InvokeRenderTo
-
getQuickInfo
- Overrides:
getQuickInfoin classStiComponent
-
getEvents
Return events collection of this component.- Overrides:
getEventsin classStiComponent
-
getText
Gets or sets text expression. -
setText
-
setText
-
SetText
Sets the text value in all printed objects.- Parameters:
text- Value for setting.
-
getTextInternal
Internal use only.- Specified by:
getTextInternalin interfaceIStiText
-
SetTextInternal
Internal use only. -
setTextInternal
Description copied from interface:IStiTextInternal use only.- Specified by:
setTextInternalin interfaceIStiText
-
getTextValue
Gets or sets text value. If the text is not null thet it is necessary to use this text.- Specified by:
getTextValuein interfaceIStiText
-
setTextValue
- Specified by:
setTextValuein interfaceIStiText
-
OnGetValue
Raises the GetValue event. -
getGetValueEvent
Occurs when the text is being prepared for rendering. -
setGetValueEvent
-
getTotalValueHelp
Internal use only. -
setTotalValueHelp
-
getComponentGuid
Internal use only. -
InvokeGetValue
-
checkDuplicates
-
SaveState
Saves state of editable value.- Specified by:
SaveStatein interfaceIStiEditable
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiComponent- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiComponent- Throws:
JSONException
-