Package com.stimulsoft.report.dialogs
Class StiGridControl
- All Implemented Interfaces:
IStiAppExpressionCollection,IStiJsonReportObject,IStiForceSerializable,IStiSerializable,IStiSerializableRef,IStiSerializableToAttributes,IStiName,IStiBorder,IStiBreakable,IStiBrush,IStiCanGrow,IStiCanShrink,IStiComponentGuid,IStiConditions,IStiDataSource,IStiGrowToHeight,IStiInteraction,IStiPrintOn,IStiSelect,IStiShift,IStiUnitConvert,IStiReportControl,IStiEnumerator,IStiReportProperty,IStiIgnoryStyle,IStiInherited,IStiStateSaveRestore,Cloneable
Displays datasource in a scrollable grid.
-
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 a new StiGridControl.StiGridControl(StiRectangle rect) Creates a new StiGridControl. -
Method Summary
Modifier and TypeMethodDescriptionvoidFirst()Moves to first row.Gets or sets the background color of alternating rows for a ledger appearance.Gets or sets the background color of the grid.Gets or sets the color of the non-row area of the grid.booleanGets or sets a value indicating whether the column headers a table are visible.Gets or sets the column collection.intgetCount()Gets count of elements.Gets data source.final StringGets or sets name of data source.Gets or sets the default client area of a component.Gets or sets filter string.Gets or sets the foreground color (typically the color of the text) property.Gets or sets the color of the grid lines.Gets or sets the line style of the grid.Gets or sets the background color of all row and column headers.Gets or sets the font used for column headers.Gets or sets the foreground color of headers.booleangetIsBof()Gets value indicates that position points to begin data.final booleanbooleanGets value indicates that no data.booleangetIsEof()Gets value indicates that position points to end data.Gets a localized component name.intGets the current position.Gets or sets a script of the event PositionChanged.intGets or sets the default width of the grid columns in pixels.intGets or sets the preferred row height.booleanGets or sets a value that specifies whether row headers are visible.intGets or sets the width of row headers.Gets or sets the background color of selected rows.Gets or set the foreground color of selected rows.intGets value to sort a position in the toolbox.booleanReturns true if DataSource property is not assigned.voidLast()Moves to last row.voidLoadFromJsonObject(JSONObject jObject) voidMoveNext()Moves to the next row.voidNext()Moves to next row.voidPrior()Moves to prior row.voidsetAlternatingBackColor(StiColor value) voidsetBackColor(StiColor value) voidsetBackgroundColor(StiColor value) voidsetColumnHeadersVisible(boolean value) voidfinal voidsetDataSourceName(String value) voidvoidsetForeColor(StiColor value) voidsetGridLineColor(StiColor value) voidvoidsetHeaderBackColor(StiColor value) voidsetHeaderFont(StiFont value) voidsetHeaderForeColor(StiColor value) voidsetIsBof(boolean value) voidsetIsEof(boolean value) voidsetPosition(int value) voidvoidsetPreferredColumnWidth(int value) voidsetPreferredRowHeight(int value) voidsetRowHeadersVisible(boolean value) voidsetRowHeaderWidth(int value) voidsetSelectionBackColor(StiColor value) voidsetSelectionForeColor(StiColor value) Methods inherited from class com.stimulsoft.report.dialogs.StiReportControl
canContainIn, clone, convert, getAfterPrintEvent, getBeforePrintEvent, getBookmark, getBorder, getBrush, getCanGrow, getCanShrink, getClickEvent, getComponentStyle, getConditions, getControlWpf, GetDefaultEvent, getDockStyle, getDoubleClickEvent, getEnabled, getEnterEvent, getEvents, getFont, getGetBookmarkEvent, getGetDrillDownReportEvent, getGetHyperlinkEvent, getGetTagEvent, getGetToolTipEvent, getGrowToHeight, getHeight, getHyperlink, getInteraction, getIsReportContainer, getLeaveEvent, getLeft, getLocalizedCategory, getLocation, getMaxSize, getMinSize, getMouseDownEvent, getMouseEnterEvent, getMouseLeaveEvent, getMouseMoveEvent, getMouseUpEvent, getPrintable, getPrintOn, getServiceCategory, getShiftMode, getSize, getTag, getTagValueBinding, getToolTip, getTop, getUseParentStyles, getVisible, getWidth, InvokeEnter, InvokeLeave, InvokeMouseDown, InvokeMouseMove, InvokeMouseUp, packService, setAfterPrintEvent, setBeforePrintEvent, setBookmark, setBorder, setBrush, setCanGrow, setCanShrink, setClickEvent, setComponentStyle, setConditions, setControlWpf, setDockStyle, setDoubleClickEvent, setEnabled, setEnterEvent, setFont, setGetBookmarkEvent, setGetDrillDownReportEvent, setGetHyperlinkEvent, setGetTagEvent, setGetToolTipEvent, setGrowToHeight, setHeight, setHyperlink, setInteraction, setLeaveEvent, setLeft, setLocation, setMaxSize, setMinSize, setMouseDownEvent, setMouseEnterEvent, setMouseLeaveEvent, setMouseMoveEvent, setMouseUpEvent, setPrintable, setPrintOn, setShiftMode, setSize, setTag, setTagValueBinding, setToolTip, setTop, setUseParentStyles, setVisible, setWidth, UpdateReportControlMethods 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, GetBrush, getCanBreak, getClientRectangle, getCollapsedValue, getCollapsingIndex, getCollapsingTreePath, getComponentPlacementForChildren, getComponents, GetComponents, GetComponentsCount, GetComponentsList, getComponentsSelectedRectangle, getComponentType, GetConditions, getContainerInfoV1, getContainerInfoV2, GetContainerInRect, GetContainerInRect2, GetDockableComponent, GetDockStyle, GetFirstSelectableCompanent, GetFont, getGuid, getHasSelected, GetHorAlignment, GetIncorrect, GetIncorrect, getIncorrect2, GetMaxSize, getName, getPriority, 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, 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, getAlias, getAllowDelete, getAnchor, getBookmarkValue, getBottom, getBuilder, getComponentPlacement, GetComponentStyle, getContainer, getCurrentBookmark, getDataBand, GetDataBand, getDelimiterComponent, getDisplayRectangle, getDisplayRectangle1, getDockable, getDockRegion, getDockRegion, getDrillDownParameters, getExpressions, getForceRedrawAll, getGroupHeaderBand, GetGroupHeaderBand, getHighlightState, getHyperlinkValue, getIgnoreNamingRule, getImage, getImage, getInherited, getInvalidateOnMouseOver, getIsCross, getIsDesigning, getIsEnabled, getIsEventEmpty, getIsExporting, getIsgetTagHandlerEmpty, getIsPrinting, getIsRendered, getIsSelected, getLevel, getLinked, getLocked, getMeasureGraphics, getPage, getPaintRectangle, getPaintRectangle, getPaintRectangle, getParent, getParentBookmark, getPlaceOnToolbox, getPointer, getPointerValue, getQuickInfo, getRenderedCount, getReport, getRestrictions, getRight, getSelectionTick, getSelectRectangle, getServiceType, getShift, getShowQuickButtons, getStates, getTagStrValue, getToolTipValue, 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, setAlias, setAnchor, setBookmarkValue, setClientRectangle, setComponentPlacement, setCurrentBookmark, setDelimiterComponent, setDirectDisplayRectangle, setDisplayRectangle, setDockable, setDrillDownParameters, setExpressions, setGuid, setHeightProp, setHighlightState, setHyperlinkValue, setIgnoreNamingRule, setInherited, setIsRendered, setIsSelected, setLeftProp, setLinked, setLocked, setName, setPage, setPaintRectangle, setParent, setParentBookmark, setPlaceOnToolbox, setPointer, setPointerValue, setRenderedCount, setReport, SetReportVariables, setRestrictions, setSelectionTick, setSelectRectangle, setShift, setShowQuickButtons, setStates, setTagValue, setToolTipValue, setTopProp, 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
-
isEofValue
public boolean isEofValue -
isBofValue
public boolean isBofValue
-
-
Constructor Details
-
StiGridControl
public StiGridControl()Creates a new StiGridControl. -
StiGridControl
Creates a new StiGridControl.- Parameters:
rect- The rectangle describes sizes and position of the control.
-
-
Method Details
-
getToolboxPosition
public int getToolboxPosition()Gets value to sort a position in the toolbox.- Overrides:
getToolboxPositionin classStiReportControl
-
getLocalizedName
Gets a localized component name.- Overrides:
getLocalizedNamein classStiReportControl
-
getForeColor
Gets or sets the foreground color (typically the color of the text) property.- Overrides:
getForeColorin classStiReportControl
-
setForeColor
- Overrides:
setForeColorin classStiReportControl
-
getBackColor
Gets or sets the background color of the grid.- Overrides:
getBackColorin classStiReportControl
-
setBackColor
- Overrides:
setBackColorin classStiReportControl
-
getAlternatingBackColor
Gets or sets the background color of alternating rows for a ledger appearance. -
setAlternatingBackColor
-
getBackgroundColor
Gets or sets the color of the non-row area of the grid. -
setBackgroundColor
-
getGridLineColor
Gets or sets the color of the grid lines. -
setGridLineColor
-
getHeaderBackColor
Gets or sets the background color of all row and column headers. -
setHeaderBackColor
-
getHeaderForeColor
Gets or sets the foreground color of headers. -
setHeaderForeColor
-
getSelectionBackColor
Gets or sets the background color of selected rows. -
setSelectionBackColor
-
getSelectionForeColor
Gets or set the foreground color of selected rows. -
setSelectionForeColor
-
getFilter
Gets or sets filter string. -
setFilter
-
getHeaderFont
Gets or sets the font used for column headers. -
setHeaderFont
-
getColumnHeadersVisible
public boolean getColumnHeadersVisible()Gets or sets a value indicating whether the column headers a table are visible. -
setColumnHeadersVisible
public void setColumnHeadersVisible(boolean value) -
getRowHeadersVisible
public boolean getRowHeadersVisible()Gets or sets a value that specifies whether row headers are visible. -
setRowHeadersVisible
public void setRowHeadersVisible(boolean value) -
getGridLineStyle
Gets or sets the line style of the grid. -
setGridLineStyle
-
getPreferredColumnWidth
public int getPreferredColumnWidth()Gets or sets the default width of the grid columns in pixels. -
setPreferredColumnWidth
public void setPreferredColumnWidth(int value) -
getPreferredRowHeight
public int getPreferredRowHeight()Gets or sets the preferred row height. -
setPreferredRowHeight
public void setPreferredRowHeight(int value) -
getRowHeaderWidth
public int getRowHeaderWidth()Gets or sets the width of row headers. -
setRowHeaderWidth
public void setRowHeaderWidth(int value) -
getColumns
Gets or sets the column collection. -
setColumns
-
MoveNext
public void MoveNext()Moves to the next row. -
First
public void First()Moves to first row.- Specified by:
Firstin interfaceIStiEnumerator
-
Prior
public void Prior()Moves to prior row.- Specified by:
Priorin interfaceIStiEnumerator
-
Next
public void Next()Moves to next row.- Specified by:
Nextin interfaceIStiEnumerator
-
Last
public void Last()Moves to last row.- Specified by:
Lastin interfaceIStiEnumerator
-
getIsEof
public boolean getIsEof()Gets value indicates that position points to end data.- Specified by:
getIsEofin interfaceIStiEnumerator
-
setIsEof
public void setIsEof(boolean value) - Specified by:
setIsEofin interfaceIStiEnumerator
-
getIsBof
public boolean getIsBof()Gets value indicates that position points to begin data.- Specified by:
getIsBofin interfaceIStiEnumerator
-
setIsBof
public void setIsBof(boolean value) - Specified by:
setIsBofin interfaceIStiEnumerator
-
getIsEmpty
public boolean getIsEmpty()Gets value indicates that no data.- Specified by:
getIsEmptyin interfaceIStiEnumerator
-
getDataSource
Gets data source.- Specified by:
getDataSourcein interfaceIStiDataSource
-
getDataSourceName
Gets or sets name of data source.- Specified by:
getDataSourceNamein interfaceIStiDataSource
-
setDataSourceName
- Specified by:
setDataSourceNamein interfaceIStiDataSource
-
getIsDataSourceEmpty
public final boolean getIsDataSourceEmpty() -
getPositionChangedEvent
Gets or sets a script of the event PositionChanged. -
setPositionChangedEvent
-
getDefaultClientRectangle
Gets or sets the default client area of a component.- Overrides:
getDefaultClientRectanglein classStiReportControl
-
getPosition
public int getPosition()Description copied from interface:IStiEnumeratorGets the current position.- Specified by:
getPositionin interfaceIStiEnumerator
-
setPosition
public void setPosition(int value) - Specified by:
setPositionin interfaceIStiEnumerator
-
getCount
public int getCount()Description copied from interface:IStiEnumeratorGets count of elements.- Specified by:
getCountin interfaceIStiEnumerator
-
isDataSourceEmpty
public boolean isDataSourceEmpty()Description copied from interface:IStiDataSourceReturns true if DataSource property is not assigned.- Specified by:
isDataSourceEmptyin interfaceIStiDataSource
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiReportControl- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiReportControl- Throws:
JSONException
-