Package com.stimulsoft.report.crossTab
Class StiCrossTab
- All Implemented Interfaces:
IStiAppExpressionCollection,IStiJsonReportObject,IStiForceSerializable,IStiSerializable,IStiSerializableRef,IStiSerializableToAttributes,IStiName,IStiBorder,IStiBreakable,IStiBrush,IStiBusinessObject,IStiCanGrow,IStiCanShrink,IStiComponentGuid,IStiConditions,IStiCrossTab,IStiDataRelation,IStiDataSource,IStiFilter,IStiGrowToHeight,IStiInteraction,IStiPrintIfEmpty,IStiPrintOn,IStiSelect,IStiShift,IStiSort,IStiUnitConvert,IStiEnumerator,IStiReportProperty,IStiIgnoryStyle,IStiInherited,IStiStateSaveRestore,Cloneable
public class StiCrossTab
extends StiContainer
implements IStiDataSource, IStiFilter, IStiCrossTab, IStiSort, IStiDataRelation, IStiPrintIfEmpty, IStiBusinessObject
Describes the class that realizes a StiCrossTab.
-
Field Summary
FieldsFields inherited from class com.stimulsoft.report.components.complexcomponents.StiContainer
border, brush, collapsingIndex, components, engine, ParentComponentIsBand, ParentComponentIsCrossBand, PropertyBlockedFields 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 an object of the type StiCrossTab.StiCrossTab(StiRectangle rect) Creates an object of the type StiCrossTab. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidApplyFieldStyle(StiCrossField field) booleancanContainIn(StiComponent component) May this container be located in the specified component.clone()Creates a new object that is a copy of the current instance.voidConverts a component out of one unit into another.booleanfinal voidFirst()Sets the position at the beginning.Get business object that is used for getting data.final StringGets or sets guid of the Business Object.booleanGets or sets value indicates that this object can grow.final StiColorgets or sets a style of a component.Gets the type of processing when printing.intgetCount()Gets count of rows.final StiCrossTabInfofinal StiCrossTabInfoV1final Stringfinal Objectfinal intGet link that is used for master-detail reports rendering.final StringGets or sets relation name.Get data source that is used for getting data.final StringGets or sets name of the Data Source.Gets or sets the default client area of a component.final StringGets or sets string value which is used to show the cross-tab in empty cells.final StiFilterEngineGets or sets how a filter will be applied to data - be means of the report generator or by means of changing the SQL query.final StiFilterEventHandlerGets or sets a method for filtration.final StiFilterModeGets or sets filter mode.booleanGets or sets value indicates, that filter is turn on.final StiFiltersCollectionGets or sets the collection of data filters.final StiCrossHorAlignmentGets or sets the horizontal alignment of an Cross-Tab.final booleangetIsBof()Gets value, indicates that the position indicates to the beginning of data.final booleanReturns true if Business Object property is not assigned.final booleanfinal booleanGets value indicates that no data.final booleangetIsEof()Gets value indicates that the position indicates to the end of data.booleanGets or sets value which indicates that the CrossTab must to be kept together with DataBand on what it is placed.Gets a localized name of the component category.Gets a localized component name.intGets the current position.booleanGets or sets value indicates that the cross-tab is printed if data is not present.final booleanintGets a component priority.booleanGets or sets horizontal CrossTab direction.getSort()Gets or sets the array of strings that describes rules of sorting.final StiSummaryDirectionintGets value to sort a position in the toolbox.final booleangetWrap()Gets or sets value which indicates that the cross-tab is to be output in one column.final doubleGets or sets space between two parts of a wrapped cross-tab.booleanReturns true if DataSource property is not assigned.final voidLast()Move on the last row.voidLoadFromJsonObject(JSONObject jObject) final voidNext()Move on the next row.voidPacks a service.final voidPrior()Move on the previous row.final voidsetBusinessObjectGuid(String value) voidsetCanGrow(boolean value) voidsetComponentStyle(String value) final voidsetCrossTabStyle(String value) final voidsetCrossTabStyleColor(Object value) final voidsetCrossTabStyleIndex(int value) final voidsetDataRelationName(String value) final voidsetDataSourceName(String value) final voidsetEmptyValue(String value) final voidsetFilterEngine(StiFilterEngine value) final voidfinal voidsetFilterMode(StiFilterMode value) voidsetFilterOn(boolean value) final voidsetFilters(StiFiltersCollection value) final voidfinal voidsetIsBof(boolean value) final voidsetIsEof(boolean value) voidsetKeepCrossTabTogether(boolean value) voidsetPosition(int value) voidsetPrintIfEmpty(boolean value) final voidsetPrintTitleOnAllPages(boolean value) voidsetRightToLeft(boolean value) voidfinal voidfinal voidsetWrap(boolean value) final voidsetWrapGap(double value) final voidMethods inherited from class com.stimulsoft.report.components.complexcomponents.StiContainer
AlignTo, AlignToGrid, AlignToGrid, Break, BringToFront, ChangePosition, checkBlockedException, CheckBlockedException, checkLargeHeight, ClearAllStates, clone, clone, ContainerToPage, ContainerToPage, Convert, ConvertSelectedToPage, ConvertToPage, Correct, Correct, correct2, getActualSize, getActualSize, getBlocked, getBorder, GetBorder, getBrush, GetBrush, getCanBreak, getClientRectangle, getCollapsedValue, getCollapsingIndex, getCollapsingTreePath, getComponentPlacementForChildren, getComponents, GetComponents, GetComponentsCount, GetComponentsList, getComponentsSelectedRectangle, GetConditions, getContainerInfoV1, getContainerInfoV2, GetContainerInRect, GetContainerInRect2, GetDockableComponent, GetDockStyle, GetFirstSelectableCompanent, GetFont, getGuid, getHasSelected, GetHorAlignment, GetIncorrect, GetIncorrect, getIncorrect2, GetMaxSize, getName, GetRectangle, GetSelectedComponents, GetSelectedComponentsWithChilds, GetSelectedRectangleWithChilds, getTagValue, GetTextBrush, GetTextFormat, GetTextHorAlignment, GetVertAlignment, GetWordWrap, GrowFont, InvertComponentsPosition, isForceSerializeToReport, MakeHorizontalSpacingEqual, MakeSameHeight, MakeSameSize, MakeSameWidth, MakeVerticalSpacingEqual, MoveBackward, MoveComponentsToPage, MoveForward, Normalize, OffsetLocation, OnComponentAdded, OnComponentRemoved, PageToContainer, PageToContainer, RemoveAllSelected, ResetSelection, RestoreState, saveState, SelectAll, SelectComponent, SelectInRectangle, SelectInRectangleCheckBands, SendToBack, setBlocked, setBorder, SetBorder, setBrush, SetBrush, setCanBreak, SetCenterHorizontally, SetCenterVertically, setCollapsedValue, setCollapsingIndex, setCollapsingTreePath, setComponents, setComponentsFont, setComponentsFont, setComponentsWithSetParent, setComponentsWordWrap, SetConditions, setContainerInfoV2, SetDockStyle, setForceSerializeToReport, SetHorAlign, SetLink, setParentComponentIsBand, setParentComponentIsCrossBand, SetParentStylesToChilds, SetParentStylesToChilds, SetTextBrush, SetTextFormat, SetTextHorAlign, SetVertAlign, ShrinkFont, SortByPriorityMethods inherited from class com.stimulsoft.report.components.StiComponent
addSize, AllowPrintOn, applyConditions, CheckForParentComponent, clearAllStates, ClearContents, ComponentToPage, ComponentToPage, ComponentToPage, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, doPointer, doPointer, fillComponentPlacement, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getBuilder, getCanShrink, getClickEvent, getComponentPlacement, GetComponentStyle, getConditions, getContainer, getCurrentBookmark, getDataBand, GetDataBand, getDelimiterComponent, getDisplayRectangle, getDisplayRectangle1, getDockable, getDockRegion, getDockRegion, getDockStyle, getDoubleClickEvent, getDrillDownParameters, getEnabled, getEvents, getExpressions, getForceRedrawAll, getGetBookmarkEvent, getGetDrillDownReportEvent, getGetHyperlinkEvent, getGetTagEvent, getGetToolTipEvent, getGroupHeaderBand, GetGroupHeaderBand, getGrowToHeight, 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, getQuickInfo, getRenderedCount, getReport, getRestrictions, getRight, getSelectionTick, getSelectRectangle, getServiceCategory, getServiceType, getShift, getShiftMode, getShowQuickButtons, getStates, getTag, getTagStrValue, 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, PageToComponent, PageToComponent, paint, PlacedOnColumnBand, Prepare, render, reset, Reset, restoreState, select, setAfterPrintEvent, setAlias, setAnchor, setBeforePrintEvent, setBookmark, setBookmarkValue, setCanShrink, setClickEvent, setClientRectangle, setComponentPlacement, 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
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.base.serializing.interfaceobject.IStiSerializableRef
getReference, setReference
-
Field Details
-
crossTabInfo
-
keepCrossTabTogether
public boolean keepCrossTabTogether
-
-
Constructor Details
-
StiCrossTab
public StiCrossTab()Creates an object of the type StiCrossTab. -
StiCrossTab
Creates an object of the type StiCrossTab.- Parameters:
rect- The rectangle decribes size and position of the component.
-
-
Method Details
-
isDataSourceEmpty
public boolean isDataSourceEmpty()Description copied from interface:IStiDataSourceReturns true if DataSource property is not assigned.- Specified by:
isDataSourceEmptyin interfaceIStiDataSource
-
convert
Converts a component out of one unit into another.- Specified by:
convertin interfaceIStiUnitConvert- Overrides:
convertin classStiContainer- Parameters:
oldUnit- Old units.newUnit- New units.
-
getPrintIfEmpty
public boolean getPrintIfEmpty()Gets or sets value indicates that the cross-tab is printed if data is not present.- Specified by:
getPrintIfEmptyin interfaceIStiPrintIfEmpty
-
setPrintIfEmpty
public void setPrintIfEmpty(boolean value) - Specified by:
setPrintIfEmptyin interfaceIStiPrintIfEmpty
-
getCanGrow
public boolean getCanGrow()Gets or sets value indicates that this object can grow.- Specified by:
getCanGrowin interfaceIStiCanGrow- Overrides:
getCanGrowin classStiComponent
-
setCanGrow
public void setCanGrow(boolean value) - Specified by:
setCanGrowin interfaceIStiCanGrow- Overrides:
setCanGrowin classStiComponent
-
getDataRelation
Get link that is used for master-detail reports rendering.- Specified by:
getDataRelationin interfaceIStiDataRelation
-
existDataRelation
public boolean existDataRelation()- Specified by:
existDataRelationin interfaceIStiDataRelation
-
getDataRelationName
Gets or sets relation name.- Specified by:
getDataRelationNamein interfaceIStiDataRelation
-
setDataRelationName
- Specified by:
setDataRelationNamein interfaceIStiDataRelation
-
getDataSource
Get data source that is used for getting data.- Specified by:
getDataSourcein interfaceIStiDataSource
-
getDataSourceName
Gets or sets name of the Data Source.- Specified by:
getDataSourceNamein interfaceIStiDataSource
-
setDataSourceName
- Specified by:
setDataSourceNamein interfaceIStiDataSource
-
getIsDataSourceEmpty
public final boolean getIsDataSourceEmpty() -
getIsBusinessObjectEmpty
public final boolean getIsBusinessObjectEmpty()Description copied from interface:IStiBusinessObjectReturns true if Business Object property is not assigned.- Specified by:
getIsBusinessObjectEmptyin interfaceIStiBusinessObject
-
getBusinessObject
Get business object that is used for getting data.- Specified by:
getBusinessObjectin interfaceIStiBusinessObject
-
getBusinessObjectGuid
Gets or sets guid of the Business Object.- Specified by:
getBusinessObjectGuidin interfaceIStiBusinessObject
-
setBusinessObjectGuid
- Specified by:
setBusinessObjectGuidin interfaceIStiBusinessObject
-
getSort
Gets or sets the array of strings that describes rules of sorting. -
setSort
-
First
public final void First()Sets the position at the beginning.- Specified by:
Firstin interfaceIStiEnumerator
-
Prior
public final void Prior()Move on the previous row.- Specified by:
Priorin interfaceIStiEnumerator
-
Next
public final void Next()Move on the next row.- Specified by:
Nextin interfaceIStiEnumerator
-
Last
public final void Last()Move on the last row.- Specified by:
Lastin interfaceIStiEnumerator
-
getIsEof
public final boolean getIsEof()Gets value indicates that the position indicates to the end of data.- Specified by:
getIsEofin interfaceIStiEnumerator
-
setIsEof
public final void setIsEof(boolean value) - Specified by:
setIsEofin interfaceIStiEnumerator
-
getIsBof
public final boolean getIsBof()Gets value, indicates that the position indicates to the beginning of data.- Specified by:
getIsBofin interfaceIStiEnumerator
-
setIsBof
public final void setIsBof(boolean value) - Specified by:
setIsBofin interfaceIStiEnumerator
-
getIsEmpty
public final boolean getIsEmpty()Gets value indicates that no data.- Specified by:
getIsEmptyin interfaceIStiEnumerator
-
getPosition
public int getPosition()Gets the current position.- Specified by:
getPositionin interfaceIStiEnumerator
-
setPosition
public void setPosition(int value) - Specified by:
setPositionin interfaceIStiEnumerator
-
getCount
public int getCount()Gets count of rows.- Specified by:
getCountin interfaceIStiEnumerator
-
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.
-
packService
public void packService()Description copied from class:StiComponentPacks a service.- Overrides:
packServicein classStiComponent
-
getCrossTabInfo
-
getCrossTabInfoV1
-
getFilterEngine
Gets or sets how a filter will be applied to data - be means of the report generator or by means of changing the SQL query. -
setFilterEngine
-
getFilterMode
Gets or sets filter mode.- Specified by:
getFilterModein interfaceIStiFilter
-
setFilterMode
- Specified by:
setFilterModein interfaceIStiFilter
-
getFilterMethodHandler
Gets or sets a method for filtration.- Specified by:
getFilterMethodHandlerin interfaceIStiFilter
-
setFilterMethodHandler
- Specified by:
setFilterMethodHandlerin interfaceIStiFilter
-
getFilters
Gets or sets the collection of data filters.- Specified by:
getFiltersin interfaceIStiFilter
-
setFilters
- Specified by:
setFiltersin interfaceIStiFilter
-
getFilterOn
public boolean getFilterOn()Gets or sets value indicates, that filter is turn on.- Specified by:
getFilterOnin interfaceIStiFilter
-
setFilterOn
public void setFilterOn(boolean value) - Specified by:
setFilterOnin interfaceIStiFilter
-
canContainIn
May this container be located in the specified component.- Overrides:
canContainInin classStiComponent- Parameters:
component- Component for checking.- Returns:
- true, if this container may is located in the specified component.
-
getLocalizedCategory
Description copied from class:StiContainerGets a localized name of the component category.- Overrides:
getLocalizedCategoryin classStiContainer
-
getToolboxPosition
public int getToolboxPosition()Gets value to sort a position in the toolbox.- Overrides:
getToolboxPositionin classStiContainer
-
getPriority
public int getPriority()Gets a component priority.- Overrides:
getPriorityin classStiContainer
-
getDefaultClientRectangle
Gets or sets the default client area of a component.- Overrides:
getDefaultClientRectanglein classStiContainer
-
getComponentType
Gets the type of processing when printing.- Overrides:
getComponentTypein classStiContainer
-
getLocalizedName
Gets a localized component name.- Overrides:
getLocalizedNamein classStiContainer
-
getCrossTabStyleIndex
public final int getCrossTabStyleIndex() -
setCrossTabStyleIndex
public final void setCrossTabStyleIndex(int value) -
getCrossTabStyleColor
-
setCrossTabStyleColor
-
getCrossTabStyle
-
setCrossTabStyle
-
getComponentStyle
Description copied from class:StiComponentgets or sets a style of a component.- Overrides:
getComponentStylein classStiContainer
-
setComponentStyle
- Overrides:
setComponentStylein classStiComponent
-
UpdateStyles
public final void UpdateStyles() -
GetCellColor
-
ApplyFieldStyle
-
getHorAlignment
Gets or sets the horizontal alignment of an Cross-Tab. -
setHorAlignment
-
getPrintTitleOnAllPages
public final boolean getPrintTitleOnAllPages() -
setPrintTitleOnAllPages
public final void setPrintTitleOnAllPages(boolean value) -
getSummaryDirection
-
setSummaryDirection
-
getKeepCrossTabTogether
public boolean getKeepCrossTabTogether()Gets or sets value which indicates that the CrossTab must to be kept together with DataBand on what it is placed. -
setKeepCrossTabTogether
public void setKeepCrossTabTogether(boolean value) -
getEmptyValue
Gets or sets string value which is used to show the cross-tab in empty cells. -
setEmptyValue
-
getWrap
public final boolean getWrap()Gets or sets value which indicates that the cross-tab is to be output in one column. At the same time, everything that do not fit by the width is output below. For using this property it is necessary to enable the CanBreak property of the band on which the cross-tab is placed (if it is placed on the band). -
setWrap
public final void setWrap(boolean value) -
getWrapGap
public final double getWrapGap()Gets or sets space between two parts of a wrapped cross-tab. The property is used jointly with the property Wrap. -
setWrapGap
public final void setWrapGap(double value) -
getRightToLeft
public boolean getRightToLeft()Gets or sets horizontal CrossTab direction. -
setRightToLeft
public void setRightToLeft(boolean value) -
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiContainer- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiContainer- Throws:
JSONException
-