Class StiCheckBox
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.StiCheckBox
- All Implemented Interfaces:
IStiAppExpressionCollection,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiName,IStiBorder,IStiBreakable,IStiBrush,IStiCanGrow,IStiCanShrink,IStiComponentGuid,IStiConditions,IStiEditable,IStiExportImage,IStiExportImageExtended,IStiGrowToHeight,IStiInteraction,IStiPrintOn,IStiSelect,IStiShift,IStiTextBrush,IStiUnitConvert,IStiReportProperty,IStiInherited,IStiStateSaveRestore,Cloneable
- Direct Known Subclasses:
StiTableCellCheckBox
public class StiCheckBox
extends StiComponent
implements IStiBorder, IStiTextBrush, IStiEditable, IStiBrush, IStiBreakable, IStiExportImageExtended
Class describes the component - Check Box.
-
Field Summary
Fields 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 component of the type StiCheckBox.StiCheckBox(StiRectangle rect) Creates a new component of the type StiCheckBox. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanBreak(StiComponent dividedComponent, double devideFactor, StiRefObject<Double> divideLine, StiRefObject<Boolean> haveBreaked) Divides content of components in two parts.clone(boolean cloneProperties) Creates a new object that is a copy of the current instance.voidConvertes component from one unit into another.final StiBorderGets or sets border of the component.final StiBrushgetBrush()Gets or sets a brush to fill a component.booleanGets or sets value which indicates whether the component can or cannot break its contents on several pages.booleangets or sets a value which indicates that this object can grow.booleangets or sets value which indicates that this object can shrink.final StiCheckedExpressionGets or sets an expression which used to calculate check state.final ObjectGets or sets checked value.final StiCheckStyleDeprecated.final StiCheckStyleGets or sets check style for false value.final StiCheckStyleGets or sets check style for true value.final StiColorGets or sets a contour color.booleanGets or sets value indicates that a component can be edited in the window of viewer.Return events collection of this component.final StringGets or sets excel data value.Gets or sets an expression used for export data to Excel.final StiGetCheckedEventOccurs when state is being checked.final StiGetExcelValueEventOccurs when the ExcelValue is calculated.Gets a localized name of the component category.Gets a localized component name.final doublegetSize()Gets or sets a contour size.final StiBrushGets or sets a brush to draw text.intGets value to sort a position in the toolbox.final StringGets or sets string which describes true and false values.voidInvokes all events for this components.final voidInvokeGetChecked(StiComponent sender, StiValueEventArgs e) Raises the GetChecked event.voidfinal booleanbooleanisExportAsImage(StiExportFormat format) final booleanvoidLoadFromJsonObject(JSONObject jObject) protected voidRaises the GetChecked event.protected voidRaises the GetExcelValue event.voidSaves the current state of an object.Saves state of editable value.final voidfinal voidvoidsetCanBreak(boolean value) voidsetCanGrow(boolean value) voidsetCanShrink(boolean value) final voidsetChecked(StiCheckedExpression value) final voidsetCheckedValue(Object value) final voidsetCheckStyle(StiCheckStyle value) Deprecated.final voidfinal voidfinal voidsetContourColor(StiColor value) voidsetEditable(boolean value) final voidsetExcelDataValue(String value) voidfinal voidfinal voidfinal voidsetSize(double value) final voidsetTextBrush(StiBrush value) final voidMethods inherited from class com.stimulsoft.report.components.StiComponent
addSize, AllowPrintOn, applyConditions, canContainIn, CheckForParentComponent, clearAllStates, ClearAllStates, ClearContents, clone, ComponentToPage, ComponentToPage, ComponentToPage, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, doPointer, doPointer, fillComponentPlacement, getActualSize, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getBuilder, 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, getQuickInfo, 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, 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, RestoreState, select, setAfterPrintEvent, setAlias, setAnchor, setBeforePrintEvent, setBookmark, setBookmarkValue, 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.IStiEditable
RestoreStateMethods inherited from interface com.stimulsoft.report.components.interfaces.IStiExportImage
getImageMethods inherited from interface com.stimulsoft.report.components.interfaces.IStiExportImageExtended
getImage
-
Constructor Details
-
StiCheckBox
public StiCheckBox()Creates a new component of the type StiCheckBox. -
StiCheckBox
Creates a new component of the type StiCheckBox.- Parameters:
rect- The rectangle describes size and position of the component.
-
-
Method Details
-
SaveState
Description copied from interface:IStiEditableSaves state of editable value.- Specified by:
SaveStatein interfaceIStiEditable
-
getCanShrink
public boolean getCanShrink()Description copied from class:StiComponentgets or sets value which indicates that this object can shrink.- Specified by:
getCanShrinkin interfaceIStiCanShrink- Overrides:
getCanShrinkin classStiComponent
-
setCanShrink
public void setCanShrink(boolean value) - Specified by:
setCanShrinkin interfaceIStiCanShrink- Overrides:
setCanShrinkin classStiComponent
-
getCanGrow
public boolean getCanGrow()Description copied from class:StiComponentgets or sets a value which 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
-
getBrush
Gets or sets a brush to fill a component. -
setBrush
-
getBorder
Gets or sets border of the component.- Specified by:
getBorderin interfaceIStiBorder
-
setBorder
- Specified by:
setBorderin interfaceIStiBorder
-
getTextBrush
Gets or sets a brush to draw text.- Specified by:
getTextBrushin interfaceIStiTextBrush
-
setTextBrush
- Specified by:
setTextBrushin interfaceIStiTextBrush
-
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
-
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.
-
getCanBreak
public boolean getCanBreak()Description copied from interface:IStiBreakableGets 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
-
Break
public final boolean Break(StiComponent dividedComponent, double devideFactor, StiRefObject<Double> divideLine, StiRefObject<Boolean> haveBreaked) Divides 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.
-
getEvents
Return events collection of this component.- Overrides:
getEventsin classStiComponent
-
getToolboxPosition
public int getToolboxPosition()Gets value to sort a position in the toolbox.- Overrides:
getToolboxPositionin classStiComponent
-
getLocalizedCategory
Gets a localized name of the component category.- Overrides:
getLocalizedCategoryin classStiBase
-
getLocalizedName
Gets a localized component name.- Overrides:
getLocalizedNamein classStiBase
-
invokeEvents
public void invokeEvents()Invokes all events for this components.- Overrides:
invokeEventsin classStiComponent
-
OnGetChecked
Raises the GetChecked event. -
InvokeGetChecked
Raises the GetChecked event. -
InvokeGetExcelValue
-
getGetCheckedEvent
Occurs when state is being checked. -
setGetCheckedEvent
-
OnGetExcelValue
Raises the GetExcelValue event. -
getGetExcelValueEvent
Occurs when the ExcelValue is calculated. -
setGetExcelValueEvent
-
getCheckedValue
Gets or sets checked value. -
setCheckedValue
-
getChecked
Gets or sets an expression which used to calculate check state. -
setChecked
-
getExcelDataValue
Gets or sets excel data value. -
setExcelDataValue
-
getExcelValue
Gets or sets an expression used for export data to Excel. -
setExcelValue
-
isChecked
public final boolean isChecked() -
isUnchecked
public final boolean isUnchecked() -
getContourColor
Gets or sets a contour color. -
setContourColor
-
getSize
public final double getSize()Gets or sets a contour size. -
setSize
public final void setSize(double value) -
getCheckStyle
Deprecated.This property is obsoleted. Please use properties CheckStyleForTrue and CheckStyleForFalse. -
setCheckStyle
Deprecated. -
getValues
Gets or sets string which describes true and false values. -
setValues
-
getCheckStyleForTrue
Gets or sets check style for true value. -
setCheckStyleForTrue
-
getCheckStyleForFalse
Gets or sets check style for false value. -
setCheckStyleForFalse
-
convert
Description copied from interface:IStiUnitConvertConvertes component from one unit into another.- Specified by:
convertin interfaceIStiUnitConvert- Overrides:
convertin classStiComponent- Parameters:
oldUnit- Old units.newUnit- New units.
-
saveState
Description copied from class:StiComponentSaves the current state of an object.- Specified by:
saveStatein interfaceIStiStateSaveRestore- Overrides:
saveStatein classStiComponent- Parameters:
stateName- A name of the state being saved.
-
isExportAsImage
- Specified by:
isExportAsImagein interfaceIStiExportImageExtended- Overrides:
isExportAsImagein classStiComponent
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiComponent- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiComponent- Throws:
JSONException
-