com.stimulsoft.report.events
Class StiEvent

java.lang.Object
  extended by com.stimulsoft.report.events.StiEvent
All Implemented Interfaces:
IStiDefault, IStiJsonReportObject, IStiSerializable, IStiSerializableToString, java.lang.Cloneable
Direct Known Subclasses:
StiAfterPrintEvent, StiAfterSelectEvent, StiBeforePrintEvent, StiBeginRenderEvent, StiCheckedChangedEvent, StiClickEvent, StiClosedFormEvent, StiClosingFormEvent, StiColumnBeginRenderEvent, StiColumnEndRenderEvent, StiConnectedEvent, StiConnectingEvent, StiDisconnectedEvent, StiDisconnectingEvent, StiDoubleClickEvent, StiEndRenderEvent, StiEnterEvent, StiExportedEvent, StiExportingEvent, StiFillDataEvent, StiGetArgumentEvent, StiGetBarCodeEvent, StiGetBookmarkEvent, StiGetCheckedEvent, StiGetCollapsedEvent, StiGetCrossValueEvent, StiGetCutPieListEvent, StiGetDisplayCrossValueEvent, StiGetDrillDownReportEvent, StiGetExcelSheetEvent, StiGetExcelValueEvent, StiGetFilterEvent, StiGetGroupConditionEvent, StiGetHyperlinkEvent, StiGetImageDataEvent, StiGetImageURLEvent, StiGetListOfArgumentsEvent, StiGetListOfHyperlinksEvent, StiGetListOfTagsEvent, StiGetListOfToolTipsEvent, StiGetListOfValuesCloseEvent, StiGetListOfValuesEndEvent, StiGetListOfValuesEvent, StiGetListOfValuesHighEvent, StiGetListOfValuesLowEvent, StiGetListOfValuesOpenEvent, StiGetListOfWeightsEvent, StiGetSummaryExpressionEvent, StiGetTagEvent, StiGetTitleEvent, StiGetToolTipEvent, StiGetValueCloseEvent, StiGetValueEndEvent, StiGetValueEvent, StiGetValueHighEvent, StiGetValueLowEvent, StiGetValueOpenEvent, StiGetZipCodeEvent, StiLeaveEvent, StiLoadFormEvent, StiMouseDownEvent, StiMouseEnterEvent, StiMouseLeaveEvent, StiMouseMoveEvent, StiMouseUpEvent, StiMoveFooterToBottomEvent, StiNewAutoSeriesEvent, StiPositionChangedEvent, StiPrintedEvent, StiPrintingEvent, StiProcessCellEvent, StiProcessChartEvent, StiProcessChartEvent, StiRenderingEvent, StiSelectedIndexChangedEvent, StiStateRestoreEvent, StiStateSaveEvent, StiValueChangedEvent

public abstract class StiEvent
extends java.lang.Object
implements IStiSerializable, IStiSerializableToString, java.lang.Cloneable, IStiDefault, IStiJsonReportObject

Describes the base class for realization of the Event.


Constructor Summary
StiEvent()
          Creates a new object of the type StiEvent.
StiEvent(StiComponent parent)
          Creates a new object of the type StiEvent with specified arguments.
StiEvent(StiComponent parent, java.lang.String script)
           
StiEvent(java.lang.String script)
          Creates a new object of the type StiEvent with specified arguments.
 
Method Summary
 java.lang.Object clone()
          Creates a new object that is a copy of the current instance.
 void deserialize(java.lang.String strObject)
          Десериализация объекта из строки.
 java.lang.Class getEventType()
          Return the type of the event.
 StiParameterInfo[] getParameters()
          Returns an array of event parameters.
 java.lang.String getScript()
          Gets or sets Script of the event.
 boolean isDefault()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 java.lang.String serialize()
          Сериализация объекта в строку.
 void set(StiComponent parent, java.lang.String value)
           
 void Set(StiComponent parent, java.lang.String value)
           
 void setScript(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiEvent

public StiEvent()
Creates a new object of the type StiEvent.


StiEvent

public StiEvent(java.lang.String script)
Creates a new object of the type StiEvent with specified arguments.

Parameters:
script - Script of the event.

StiEvent

public StiEvent(StiComponent parent)
Creates a new object of the type StiEvent with specified arguments.

Parameters:
parent - Component which contain this event.

StiEvent

public StiEvent(StiComponent parent,
                java.lang.String script)
Method Detail

SaveToJsonObject

public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
                            throws JSONException
Specified by:
SaveToJsonObject in interface IStiJsonReportObject
Throws:
JSONException

LoadFromJsonObject

public void LoadFromJsonObject(JSONObject jObject)
                        throws JSONException
Specified by:
LoadFromJsonObject in interface IStiJsonReportObject
Throws:
JSONException

getScript

public final java.lang.String getScript()
Gets or sets Script of the event.


setScript

public final void setScript(java.lang.String value)

set

public final void set(StiComponent parent,
                      java.lang.String value)

Set

public void Set(StiComponent parent,
                java.lang.String value)

getParameters

public StiParameterInfo[] getParameters()
Returns an array of event parameters.

Returns:
Array of event parameters.

getEventType

public java.lang.Class getEventType()
Return the type of the event.

Returns:
Event type.

clone

public final java.lang.Object clone()
Creates a new object that is a copy of the current instance.

Overrides:
clone in class java.lang.Object
Returns:
A new object that is a copy of this instance.

serialize

public java.lang.String serialize()
Description copied from interface: IStiSerializableToString
Сериализация объекта в строку.

Specified by:
serialize in interface IStiSerializableToString
Returns:
строковое представление объекта

isDefault

public boolean isDefault()
Specified by:
isDefault in interface IStiDefault

deserialize

public void deserialize(java.lang.String strObject)
Description copied from interface: IStiSerializableToString
Десериализация объекта из строки. Все свойства объекта устанавливаются за счет распарсивания строки.

Specified by:
deserialize in interface IStiSerializableToString