com.stimulsoft.webdesigner.helper
Class StiReportEdit

java.lang.Object
  extended by com.stimulsoft.webdesigner.helper.StiReportEdit

public class StiReportEdit
extends Object

Copyright Stimulsoft


Field Summary
protected static Logger LOG
           
 
Constructor Summary
StiReportEdit()
           
 
Method Summary
static void addComponentToPage(StiComponent component, StiPage currentPage)
           
static void addPage(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static void addReportToUndoArray(javax.servlet.http.HttpServletRequest httpContext, StiReport report, Hashtable<String,Object> parameters)
           
static void alignToGridComponents(StiReport report, Hashtable param, Hashtable callbackResult)
           
static void applyStyles(StiComponent comp, StiStylesCollection stylesCollection)
           
static StiImage base64ToImage(String base64String)
           
static String borderToStr(StiBorder border)
           
static String brushToStr(StiBrush brush)
           
static void canceledEditComponent(javax.servlet.http.HttpServletRequest httpContext, StiReport currentReport, Hashtable param, Hashtable callbackResult, Object cacheHelper)
           
static void changeArrangeComponents(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static void changeRectComponent(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static void changeSizeComponents(StiReport report, Hashtable param, Hashtable callbackResult)
           
static void changeUnit(StiReport report, String unitName)
           
static StiReport cloneReport(StiReport report, boolean onlyCompiledReport)
           
static StiBaseCondition createColorScaleCondition(JSONObject conditionObject)
           
static void createComponent(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static StiBaseCondition createDataBarCondition(JSONObject conditionObject)
           
static void createDataComponentFromDictionary(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static StiBaseCondition createHighlightCondition(JSONObject conditionObject)
           
static StiBaseCondition createIconSetCondition(JSONObject conditionObject)
           
static StiComponent createInfographicComponent(String componentTypeArray)
           
static void createMovingCopyComponent(javax.servlet.http.HttpServletRequest httpContext, StiReport report, Hashtable param, Hashtable callbackResult)
           
static void createTextComponentFromDictionary(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static String doubleToStr(double value)
           
static void duplicatePage(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static String fmt(double d)
           
static String fontToStr(StiFont font)
           
static String getAllChildComponents(StiComponent component)
           
static void getAllComponentsPositions(StiReport report, Hashtable<String,Object> callbackResult)
           
static Hashtable<String,Object> getAllProperties(StiComponent component)
           
static void getAllSvgContents(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static Hashtable<String,Object> getColorScaleConditionObject(StiColorScaleCondition condition)
           
static String getComponentHeaderSize(Object component)
           
static Integer getComponentIndex(StiComponent component)
           
static Hashtable<String,Object> getComponentMainProperties(StiComponent component, double zoom)
           
static String getComponentRect(StiComponent component)
           
static String getConditionsProperty(Object component)
           
static Hashtable<String,Object> getCrossTabFieldsProperties(StiCrossTab crossTab)
           
static Hashtable<String,Object> getDataBarConditionObject(StiDataBarCondition condition)
           
static Hashtable<String,String> getEventsProperty(Object object_)
           
static String getFilterDataProperty(Object component)
           
static String getFilterModeProperty(Object component)
           
static boolean getFilterOnProperty(Object component)
           
static List<Hashtable<String,String>> getFiltersObject(StiFiltersCollection filters)
           
static Hashtable<String,Object> getFiltersProperty(Object obj)
           
static void getFromClipboard(javax.servlet.http.HttpServletRequest httpContext, StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static Hashtable<String,Object> getHighlightConditionObject(StiCondition condition)
           
static Hashtable<String,Object> getIconSetConditionObject(StiIconSetCondition condition)
           
static Hashtable<String,Object> getInteractionProperty(StiInteraction interaction)
           
static StiPage getPageByName(StiReport report, String name)
           
static String getPageMargins(StiPage page)
           
static String getPageSize(StiPage page)
           
static Integer getParentIndex(StiComponent comp)
           
static String getParentName(StiComponent comp)
           
static void getPreviewPages(StiReport report, JSONObject param, Hashtable<String,Object> callbackResult)
           
static Object getPropertyValue(String propertyName, Object owner)
           
static Hashtable<String,Object> getPropsRebuildPage(StiReport report, StiPage currentPage)
           
static StiReport getRedoStep(javax.servlet.http.HttpServletRequest httpContext, StiReport report, Hashtable<String,Object> parameters, Hashtable<String,Object> callbackResult, Object cacheHelper)
           
static String getReportFileName(StiReport report)
           
static Hashtable<String,Object> getReportProperties(StiReport report)
           
static String getRichTextProperty(StiRichText component)
           
static Method getSetter(Class<?> cl, String name)
           
static Method getSetter(Class<?> cl, String name, Class<?> clazz)
           
static String getSortDataProperty(Object object_)
           
static String getStringFromColor(StiColor color)
           
static ArrayList<Hashtable<String,String>> getSubReportParametersProperty(StiSubReport subReport)
           
static String getSvgContent(StiComponent component, double zoom)
           
static ArrayList<Hashtable<String,Object>> getTableCells(StiTable table, double zoom)
           
static StiReport getUndoStep(javax.servlet.http.HttpServletRequest httpContext, StiReport report, Hashtable<String,Object> parameters, Hashtable<String,Object> callbackResult, Object cacheHelper)
           
static String imageToBase64(StiImage image, StiImageFormat format)
           
static String lowerFirstChar(String text)
           
static void pageMove(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static void readAllPropertiesFromString(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static void removeComponent(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static void removePage(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static void renameComponent(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static void saveComponentClone(javax.servlet.http.HttpServletRequest httpContext, StiComponent component, StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult, Object cacheHelper)
           
static void setAliasNameProperty(Object component, String propertyValue)
           
static void setAllowHtmlTagsProperty(Object component, String propertyValue)
           
static void setAllProperties(StiComponent component, JSONArray props)
           
static void setAutoScaleProperty(Object component, String propertyValue)
           
static void setAutoWidthProperty(Object component, String propertyValue)
           
static void setBackColorProperty(Object component, Object propertyValue)
           
static void setBarCodeAngleProperty(Object component, String propertyValue)
           
static void setBarCodeTypeProperty(Object component, Object propertyValue)
           
static void setBorderProperty(Object component, String propertyValue)
           
static void setBrushProperty(Object component, String propertyValue)
           
static void setBrushTypeProperty(Object component, String propertyValue)
           
static void setBusinessObjectProperty(Object component, Object propertyValue)
           
static void setCalcInvisibleProperty(Object component, String propertyValue)
           
static void setCanBreakProperty(Object component, String propertyValue)
           
static void setCanGrowProperty(Object component, String propertyValue)
           
static void setCanShrinkProperty(Object component, String propertyValue)
           
static void setCellHeightProperty(Object component, String propertyValue)
           
static void setCellWidthProperty(Object component, String propertyValue)
           
static void setChartStyleProperty(Object component, Object propertyValue)
           
static void setCheckBoxValuesProperty(Object component, String propertyValue)
           
static void setCodeProperty(Object component, String propertyValue)
           
static void setColumnGapsProperty(Object component, String propertyValue)
           
static void setColumnsProperty(Object component, String propertyValue)
           
static void setColumnWidthProperty(Object component, String propertyValue)
           
static void setComponentRect(StiReport report, StiComponent component, StiRectangle rect)
           
static void setComponentRect(StiReport report, StiComponent component, StiRectangle rect, boolean runFromProperty)
           
static void setComponentStyleProperty(Object component, String propertyValue)
           
static void setConditionProperty(Object component, Object propValue)
           
static void setConditionsProperty(Object component, Object propertyValue)
           
static void setContainerProperty(Object component, Object propertyValue)
           
static void setContinuousTextProperty(Object component, String propertyValue)
           
static void setContourColorProperty(Object component, String propertyValue)
           
static void setCountDataProperty(Object component, String propertyValue)
           
static void setCrossTabEmptyValueProperty(Object component, String propertyValue)
           
static void setCrossTabHorAlignProperty(Object component, String propertyValue)
           
static void setCrossTabPrintTitleProperty(Object component, String propertyValue)
           
static void setCrossTabStyleProperty(Object component, Object propertyValue)
           
static void setCrossTabWrapGapProperty(Object component, String propertyValue)
           
static void setCrossTabWrapProperty(Object component, String propertyValue)
           
static void setDataColumnProperty(Object component, String propertyValue)
           
static void setDataRelationProperty(Object component, Object propValue)
           
static void setDataSourceProperty(Object component, Object propValue)
           
static void setEditableProperty(Object component, String propertyValue)
           
static void setEditableTextProperty(Object component, String propertyValue)
           
static void setEnabledProperty(Object component, String propertyValue)
           
static void setEvenStyleProperty(Object component, String propertyValue)
           
static void setEventValue(StiReport report, Hashtable<String,Object> param, Hashtable callbackResult)
           
static void setFilterDataProperty(Object component, JSONArray filters)
           
static void setFilterDataProperty(Object component, Object propertyValue)
           
static void setFilterEngineProperty(Object component, String propertyValue)
           
static void setFilterModeProperty(Object component, Object propertyValue)
           
static void setFilterOnProperty(Object component, Object propertyValue)
           
static void setFiltersProperty(Object obj, Hashtable<String,Object> value)
           
static void setFontProperty(Object component, String propertyValue)
           
static void setFootersProperty(Object component, String propertyValue)
           
static void setForeColorProperty(Object component, String propertyValue)
           
static void setGaugeStyleProperty(Object component, Object propertyValue)
           
static void setGrowToHeightProperty(Object component, String propertyValue)
           
static void setHeadersProperty(Object component, String propertyValue)
           
static void setHideZerosProperty(Object component, String propertyValue)
           
static void setHorAlignmentProperty(Object component, String propertyValue)
           
static void setHorizontalSpacingProperty(Object component, String propertyValue)
           
static void setImageDataProperty(Object component, String propertyValue)
           
static void setImageFileProperty(Object component, String propertyValue)
           
static void setImageMultipleFactorProperty(Object component, String propertyValue)
           
static void setImageSrcProperty(Object component, String propertyValue)
           
static void setImageUrlProperty(Object component, String propertyValue)
           
static void setIndentProperty(Object component, String propertyValue)
           
static void setInteractionProperty(Object component, Object propertyValue)
           
static void setKeyDataColumnProperty(Object component, String propertyValue)
           
static void setLargeHeightFactorProperty(Object component, Object propertyValue)
           
static void setLargeHeightProperty(Object component, String propertyValue)
           
static void setMapStyleProperty(Object component, Object propertyValue)
           
static void setMarginsProperty(Object component, Object propertyValue)
           
static void setMasterComponentProperty(Object component, Object propertyValue)
           
static void setMasterKeyDataColumnProperty(Object component, String propertyValue)
           
static void setMaxNumberOfLinesProperty(Object component, String propertyValue)
           
static void setNewColumnAfterProperty(Object component, String propertyValue)
           
static void setNewColumnBeforeProperty(Object component, String propertyValue)
           
static void setNewPageAfterProperty(Object component, String propertyValue)
           
static void setNewPageBeforeProperty(Object component, String propertyValue)
           
static void setOddStyleProperty(Object component, String propertyValue)
           
static void setOnlyTextProperty(Object component, String propertyValue)
           
static void setPageHeightProperty(Object component, String propertyValue)
           
static void setPageOrientationProperty(Object component, String propertyValue)
           
static void setPageWidthProperty(Object component, String propertyValue)
           
static void setPaperSizeProperty(Object component, String propertyValue)
           
static void setParentValueProperty(Object component, String propertyValue)
           
static void setPrintableProperty(Object component, String propertyValue)
           
static void setPrintIfEmptyProperty(Object component, String propertyValue)
           
static void setPrintOnAllPagesProperty(Object component, String propertyValue)
           
static void setPrintOnProperty(Object component, String propertyValue)
           
static void setProcessAtProperty(Object component, String propertyValue)
           
static void setProcessingDuplicatesProperty(Object component, String propertyValue)
           
static void setPropertyValue(StiReport report, String propertyName, Object owner, Object value)
           
static void setRatioProperty(Object component, String propertyValue)
           
static void setReportProperties(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static void setRestrictionsProperty(Object component, Object propValue)
           
static void setRichTextDataUrlProperty(Object component, String propertyValue)
           
static void setRichTextProperty(Object component, Object propertyValue)
           
static void setRightToLeftProperty(Object component, String propertyValue)
           
static void setRotationProperty(Object component, String propertyValue)
           
static void setShapeBorderColorProperty(Object component, String propertyValue)
           
static void setShapeBorderStyleProperty(Object component, String propertyValue)
           
static void setShapeTypeProperty(Object component, Object propertyValue)
           
static void setShiftModeProperty(Object component, Object propValue)
           
static void setShowLabelTextProperty(Object component, String propertyValue)
           
static void setShrinkFontToFitMinimumSizeProperty(Object component, String propertyValue)
           
static void setShrinkFontToFitProperty(Object component, String propertyValue)
           
static void setSizeProperty(Object component, String propertyValue)
           
static void setSkipFirstProperty(Object component, String propertyValue)
           
static void setSortDataProperty(Object component, JSONArray sortArray)
           
static void setSortDataProperty(Object component, Object propertyValue)
           
static void setSortDirectionProperty(Object component, String propertyValue)
           
static void setStopBeforePrintProperty(Object component, String propertyValue)
           
static void setStretchProperty(Object component, String propertyValue)
           
static void setSubReportPageProperty(Object component, Object propertyValue)
           
static void setSubReportPageProperty(Object component, String propertyValue)
           
static void setSubReportParametersProperty(Object component, Object propertyValue)
           
static void setSubReportUrlProperty(Object component, String propertyValue)
           
static void setSummaryExpressionProperty(Object component, String propertyValue)
           
static void setSummarySortDirectionProperty(Object component, String propertyValue)
           
static void setSummaryTypeProperty(Object component, String propertyValue)
           
static void setTextAngleProperty(Object component, String propertyValue)
           
static void setTextBrushProperty(Object component, String propertyValue)
           
static void setTextFormatProperty(Object component, Object propertyValue)
           
static void setTextMarginsProperty(Object component, String propertyValue)
           
static void setTextOptionsRightToLeftProperty(Object component, String propertyValue)
           
static void setTextProperty(Object component, Object propertyValue)
           
static void setTextTypeProperty(Object component, String propertyValue)
           
static void setTitleBeforeHeaderProperty(Object component, String propertyValue)
           
static void setToClipboard(javax.servlet.http.HttpServletRequest httpContext, StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static void setTrimmingProperty(Object component, String propertyValue)
           
static void setVertAlignmentProperty(Object component, String propertyValue)
           
static void setVerticalSpacingProperty(Object component, String propertyValue)
           
static void setWaterMarkAngleProperty(Object component, String propertyValue)
           
static void setWaterMarkEnabledProperty(Object component, String propertyValue)
           
static void setWaterMarkFontProperty(Object component, String propertyValue)
           
static void setWaterMarkImageAlignProperty(Object component, String propertyValue)
           
static void setWaterMarkImageBehindProperty(Object component, String propertyValue)
           
static void setWatermarkImageSrcProperty(Object component, String propertyValue)
           
static void setWaterMarkMultipleFactorProperty(Object component, String propertyValue)
           
static void setWaterMarkRatioProperty(Object component, String propertyValue)
           
static void setWaterMarkRightToLeftProperty(Object component, String propertyValue)
           
static void setWaterMarkStretchProperty(Object component, String propertyValue)
           
static void setWaterMarkTextBehindProperty(Object component, String propertyValue)
           
static void setWaterMarkTextBrushProperty(Object component, String propertyValue)
           
static void setWaterMarkTextProperty(Object component, String propertyValue)
           
static void setWaterMarkTilingProperty(Object component, String propertyValue)
           
static void setWaterMarkTransparencyProperty(Object component, String propertyValue)
           
static void setWordWrapProperty(Object component, String propertyValue)
           
static StiEnumSet<StiConditionBorderSides> strBordersToConditionBorderSidesObject(String borders)
           
static StiEnumSet<StiConditionPermissions> strPermissionsToConditionPermissionsObject(String strPermissions)
           
static StiBorder strToBorder(String value)
           
static StiBrush strToBrush(String value)
           
static StiCheckStyle strToCheckStyle(String value)
           
static StiColor strToColor(String colorStr)
           
static double strToDouble(String value)
           
static StiFont strToFont(String value)
           
static StiHatchStyle strToHatchStyle(String value)
           
static int strToInt(String value)
           
static StiPenStyle strToPenStyle(String value)
           
static void updateEvents(StiReport report, Hashtable<String,Object> param, Hashtable<String,Object> callbackResult)
           
static String upperFirstChar(String text)
           
static String writeReportInObject(StiReport report)
           
static String writeReportInObject(StiReport report, Hashtable attachedItems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final Logger LOG
Constructor Detail

StiReportEdit

public StiReportEdit()
Method Detail

getPropertyValue

public static Object getPropertyValue(String propertyName,
                                      Object owner)

getSetter

public static Method getSetter(Class<?> cl,
                               String name)

getSetter

public static Method getSetter(Class<?> cl,
                               String name,
                               Class<?> clazz)

setPropertyValue

public static void setPropertyValue(StiReport report,
                                    String propertyName,
                                    Object owner,
                                    Object value)
                             throws Exception
Throws:
Exception

getFiltersProperty

public static Hashtable<String,Object> getFiltersProperty(Object obj)

setFiltersProperty

public static void setFiltersProperty(Object obj,
                                      Hashtable<String,Object> value)
                               throws JSONException
Throws:
JSONException

lowerFirstChar

public static String lowerFirstChar(String text)

upperFirstChar

public static String upperFirstChar(String text)

base64ToImage

public static StiImage base64ToImage(String base64String)

imageToBase64

public static String imageToBase64(StiImage image,
                                   StiImageFormat format)

fontToStr

public static String fontToStr(StiFont font)

brushToStr

public static String brushToStr(StiBrush brush)

borderToStr

public static String borderToStr(StiBorder border)

getStringFromColor

public static String getStringFromColor(StiColor color)

addComponentToPage

public static void addComponentToPage(StiComponent component,
                                      StiPage currentPage)

getParentName

public static String getParentName(StiComponent comp)

getParentIndex

public static Integer getParentIndex(StiComponent comp)

getComponentIndex

public static Integer getComponentIndex(StiComponent component)

getAllChildComponents

public static String getAllChildComponents(StiComponent component)

getPropsRebuildPage

public static Hashtable<String,Object> getPropsRebuildPage(StiReport report,
                                                           StiPage currentPage)

setComponentRect

public static void setComponentRect(StiReport report,
                                    StiComponent component,
                                    StiRectangle rect)

setComponentRect

public static void setComponentRect(StiReport report,
                                    StiComponent component,
                                    StiRectangle rect,
                                    boolean runFromProperty)

getComponentRect

public static String getComponentRect(StiComponent component)

getPageSize

public static String getPageSize(StiPage page)

getPageMargins

public static String getPageMargins(StiPage page)

fmt

public static String fmt(double d)

getAllComponentsPositions

public static void getAllComponentsPositions(StiReport report,
                                             Hashtable<String,Object> callbackResult)
                                      throws ParserConfigurationException,
                                             IOException,
                                             TransformerException
Throws:
ParserConfigurationException
IOException
TransformerException

getAllProperties

public static Hashtable<String,Object> getAllProperties(StiComponent component)
                                                 throws ParserConfigurationException,
                                                        IOException,
                                                        TransformerException
Throws:
ParserConfigurationException
IOException
TransformerException

getRichTextProperty

public static String getRichTextProperty(StiRichText component)

getSortDataProperty

public static String getSortDataProperty(Object object_)

getFiltersObject

public static List<Hashtable<String,String>> getFiltersObject(StiFiltersCollection filters)

getFilterDataProperty

public static String getFilterDataProperty(Object component)

getFilterOnProperty

public static boolean getFilterOnProperty(Object component)

getFilterModeProperty

public static String getFilterModeProperty(Object component)

getSvgContent

public static String getSvgContent(StiComponent component,
                                   double zoom)
                            throws ParserConfigurationException,
                                   IOException,
                                   TransformerException
Throws:
ParserConfigurationException
IOException
TransformerException

getConditionsProperty

public static String getConditionsProperty(Object component)

getDataBarConditionObject

public static Hashtable<String,Object> getDataBarConditionObject(StiDataBarCondition condition)

getIconSetConditionObject

public static Hashtable<String,Object> getIconSetConditionObject(StiIconSetCondition condition)

getColorScaleConditionObject

public static Hashtable<String,Object> getColorScaleConditionObject(StiColorScaleCondition condition)

getHighlightConditionObject

public static Hashtable<String,Object> getHighlightConditionObject(StiCondition condition)

getComponentHeaderSize

public static String getComponentHeaderSize(Object component)

getInteractionProperty

public static Hashtable<String,Object> getInteractionProperty(StiInteraction interaction)

getCrossTabFieldsProperties

public static Hashtable<String,Object> getCrossTabFieldsProperties(StiCrossTab crossTab)
                                                            throws ParserConfigurationException,
                                                                   IOException,
                                                                   TransformerException
Throws:
ParserConfigurationException
IOException
TransformerException

getEventsProperty

public static Hashtable<String,String> getEventsProperty(Object object_)

getSubReportParametersProperty

public static ArrayList<Hashtable<String,String>> getSubReportParametersProperty(StiSubReport subReport)

setAllProperties

public static void setAllProperties(StiComponent component,
                                    JSONArray props)
                             throws Exception
Throws:
Exception

setSubReportPageProperty

public static void setSubReportPageProperty(Object component,
                                            Object propertyValue)

strToColor

public static StiColor strToColor(String colorStr)

strToDouble

public static double strToDouble(String value)

doubleToStr

public static String doubleToStr(double value)

strToInt

public static int strToInt(String value)

strToHatchStyle

public static StiHatchStyle strToHatchStyle(String value)

strToBrush

public static StiBrush strToBrush(String value)

strToBorder

public static StiBorder strToBorder(String value)

strToPenStyle

public static StiPenStyle strToPenStyle(String value)

strToFont

public static StiFont strToFont(String value)

strToCheckStyle

public static StiCheckStyle strToCheckStyle(String value)

strBordersToConditionBorderSidesObject

public static StiEnumSet<StiConditionBorderSides> strBordersToConditionBorderSidesObject(String borders)

strPermissionsToConditionPermissionsObject

public static StiEnumSet<StiConditionPermissions> strPermissionsToConditionPermissionsObject(String strPermissions)

getReportFileName

public static String getReportFileName(StiReport report)

createInfographicComponent

public static StiComponent createInfographicComponent(String componentTypeArray)
                                               throws InstantiationException,
                                                      IllegalAccessException,
                                                      ClassNotFoundException
Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException

getComponentMainProperties

public static Hashtable<String,Object> getComponentMainProperties(StiComponent component,
                                                                  double zoom)
                                                           throws ParserConfigurationException,
                                                                  IOException,
                                                                  TransformerException
Throws:
ParserConfigurationException
IOException
TransformerException

getTableCells

public static ArrayList<Hashtable<String,Object>> getTableCells(StiTable table,
                                                                double zoom)
                                                         throws ParserConfigurationException,
                                                                IOException,
                                                                TransformerException
Throws:
ParserConfigurationException
IOException
TransformerException

applyStyles

public static void applyStyles(StiComponent comp,
                               StiStylesCollection stylesCollection)

setAliasNameProperty

public static void setAliasNameProperty(Object component,
                                        String propertyValue)

setRatioProperty

public static void setRatioProperty(Object component,
                                    String propertyValue)

setRotationProperty

public static void setRotationProperty(Object component,
                                       String propertyValue)

setImageMultipleFactorProperty

public static void setImageMultipleFactorProperty(Object component,
                                                  String propertyValue)

setSubReportPageProperty

public static void setSubReportPageProperty(Object component,
                                            String propertyValue)

setSubReportUrlProperty

public static void setSubReportUrlProperty(Object component,
                                           String propertyValue)

setContourColorProperty

public static void setContourColorProperty(Object component,
                                           String propertyValue)

setSizeProperty

public static void setSizeProperty(Object component,
                                   String propertyValue)

setCheckBoxValuesProperty

public static void setCheckBoxValuesProperty(Object component,
                                             String propertyValue)

setEditableProperty

public static void setEditableProperty(Object component,
                                       String propertyValue)

setContainerProperty

public static void setContainerProperty(Object component,
                                        Object propertyValue)

setColumnWidthProperty

public static void setColumnWidthProperty(Object component,
                                          String propertyValue)

setColumnGapsProperty

public static void setColumnGapsProperty(Object component,
                                         String propertyValue)

setColumnsProperty

public static void setColumnsProperty(Object component,
                                      String propertyValue)

setCalcInvisibleProperty

public static void setCalcInvisibleProperty(Object component,
                                            String propertyValue)

setShapeBorderColorProperty

public static void setShapeBorderColorProperty(Object component,
                                               String propertyValue)

setShapeBorderStyleProperty

public static void setShapeBorderStyleProperty(Object component,
                                               String propertyValue)

setShapeTypeProperty

public static void setShapeTypeProperty(Object component,
                                        Object propertyValue)

setBackColorProperty

public static void setBackColorProperty(Object component,
                                        Object propertyValue)

setForeColorProperty

public static void setForeColorProperty(Object component,
                                        String propertyValue)

setAutoScaleProperty

public static void setAutoScaleProperty(Object component,
                                        String propertyValue)

setRightToLeftProperty

public static void setRightToLeftProperty(Object component,
                                          String propertyValue)

setShowLabelTextProperty

public static void setShowLabelTextProperty(Object component,
                                            String propertyValue)

setBarCodeAngleProperty

public static void setBarCodeAngleProperty(Object component,
                                           String propertyValue)

setBarCodeTypeProperty

public static void setBarCodeTypeProperty(Object component,
                                          Object propertyValue)

setCodeProperty

public static void setCodeProperty(Object component,
                                   String propertyValue)

setStretchProperty

public static void setStretchProperty(Object component,
                                      String propertyValue)

setComponentStyleProperty

public static void setComponentStyleProperty(Object component,
                                             String propertyValue)

setOddStyleProperty

public static void setOddStyleProperty(Object component,
                                       String propertyValue)

setEvenStyleProperty

public static void setEvenStyleProperty(Object component,
                                        String propertyValue)

setPageOrientationProperty

public static void setPageOrientationProperty(Object component,
                                              String propertyValue)

setPaperSizeProperty

public static void setPaperSizeProperty(Object component,
                                        String propertyValue)

setPageWidthProperty

public static void setPageWidthProperty(Object component,
                                        String propertyValue)

setPageHeightProperty

public static void setPageHeightProperty(Object component,
                                         String propertyValue)

setLargeHeightProperty

public static void setLargeHeightProperty(Object component,
                                          String propertyValue)

setLargeHeightFactorProperty

public static void setLargeHeightFactorProperty(Object component,
                                                Object propertyValue)

setStopBeforePrintProperty

public static void setStopBeforePrintProperty(Object component,
                                              String propertyValue)

setTitleBeforeHeaderProperty

public static void setTitleBeforeHeaderProperty(Object component,
                                                String propertyValue)

setMarginsProperty

public static void setMarginsProperty(Object component,
                                      Object propertyValue)

setVertAlignmentProperty

public static void setVertAlignmentProperty(Object component,
                                            String propertyValue)

setBrushTypeProperty

public static void setBrushTypeProperty(Object component,
                                        String propertyValue)

setHorAlignmentProperty

public static void setHorAlignmentProperty(Object component,
                                           String propertyValue)

setTextAngleProperty

public static void setTextAngleProperty(Object component,
                                        String propertyValue)

setFontProperty

public static void setFontProperty(Object component,
                                   String propertyValue)

setTextBrushProperty

public static void setTextBrushProperty(Object component,
                                        String propertyValue)

setTextProperty

public static void setTextProperty(Object component,
                                   Object propertyValue)

setRichTextProperty

public static void setRichTextProperty(Object component,
                                       Object propertyValue)

setRichTextDataUrlProperty

public static void setRichTextDataUrlProperty(Object component,
                                              String propertyValue)

setTextFormatProperty

public static void setTextFormatProperty(Object component,
                                         Object propertyValue)
                                  throws JSONException
Throws:
JSONException

setCellWidthProperty

public static void setCellWidthProperty(Object component,
                                        String propertyValue)

setCellHeightProperty

public static void setCellHeightProperty(Object component,
                                         String propertyValue)

setHorizontalSpacingProperty

public static void setHorizontalSpacingProperty(Object component,
                                                String propertyValue)

setVerticalSpacingProperty

public static void setVerticalSpacingProperty(Object component,
                                              String propertyValue)

setMaxNumberOfLinesProperty

public static void setMaxNumberOfLinesProperty(Object component,
                                               String propertyValue)

setWordWrapProperty

public static void setWordWrapProperty(Object component,
                                       String propertyValue)

setTextMarginsProperty

public static void setTextMarginsProperty(Object component,
                                          String propertyValue)

setAllowHtmlTagsProperty

public static void setAllowHtmlTagsProperty(Object component,
                                            String propertyValue)

setOnlyTextProperty

public static void setOnlyTextProperty(Object component,
                                       String propertyValue)

setEditableTextProperty

public static void setEditableTextProperty(Object component,
                                           String propertyValue)

setHideZerosProperty

public static void setHideZerosProperty(Object component,
                                        String propertyValue)

setContinuousTextProperty

public static void setContinuousTextProperty(Object component,
                                             String propertyValue)

setBorderProperty

public static void setBorderProperty(Object component,
                                     String propertyValue)

setBrushProperty

public static void setBrushProperty(Object component,
                                    String propertyValue)

setCanGrowProperty

public static void setCanGrowProperty(Object component,
                                      String propertyValue)

setCanShrinkProperty

public static void setCanShrinkProperty(Object component,
                                        String propertyValue)

setCanBreakProperty

public static void setCanBreakProperty(Object component,
                                       String propertyValue)

setAutoWidthProperty

public static void setAutoWidthProperty(Object component,
                                        String propertyValue)

setGrowToHeightProperty

public static void setGrowToHeightProperty(Object component,
                                           String propertyValue)

setEnabledProperty

public static void setEnabledProperty(Object component,
                                      String propertyValue)

setPrintableProperty

public static void setPrintableProperty(Object component,
                                        String propertyValue)

setPrintOnProperty

public static void setPrintOnProperty(Object component,
                                      String propertyValue)

setWaterMarkRatioProperty

public static void setWaterMarkRatioProperty(Object component,
                                             String propertyValue)

setWaterMarkRightToLeftProperty

public static void setWaterMarkRightToLeftProperty(Object component,
                                                   String propertyValue)

setWaterMarkEnabledProperty

public static void setWaterMarkEnabledProperty(Object component,
                                               String propertyValue)

setWaterMarkAngleProperty

public static void setWaterMarkAngleProperty(Object component,
                                             String propertyValue)

setWaterMarkTextProperty

public static void setWaterMarkTextProperty(Object component,
                                            String propertyValue)

setWaterMarkFontProperty

public static void setWaterMarkFontProperty(Object component,
                                            String propertyValue)

setWaterMarkTextBrushProperty

public static void setWaterMarkTextBrushProperty(Object component,
                                                 String propertyValue)

setWaterMarkTextBehindProperty

public static void setWaterMarkTextBehindProperty(Object component,
                                                  String propertyValue)

setWaterMarkImageBehindProperty

public static void setWaterMarkImageBehindProperty(Object component,
                                                   String propertyValue)

setWaterMarkImageAlignProperty

public static void setWaterMarkImageAlignProperty(Object component,
                                                  String propertyValue)

setWaterMarkMultipleFactorProperty

public static void setWaterMarkMultipleFactorProperty(Object component,
                                                      String propertyValue)

setWaterMarkStretchProperty

public static void setWaterMarkStretchProperty(Object component,
                                               String propertyValue)

setWaterMarkTilingProperty

public static void setWaterMarkTilingProperty(Object component,
                                              String propertyValue)

setWaterMarkTransparencyProperty

public static void setWaterMarkTransparencyProperty(Object component,
                                                    String propertyValue)

setNewPageBeforeProperty

public static void setNewPageBeforeProperty(Object component,
                                            String propertyValue)

setNewPageAfterProperty

public static void setNewPageAfterProperty(Object component,
                                           String propertyValue)

setNewColumnBeforeProperty

public static void setNewColumnBeforeProperty(Object component,
                                              String propertyValue)

setNewColumnAfterProperty

public static void setNewColumnAfterProperty(Object component,
                                             String propertyValue)

setSkipFirstProperty

public static void setSkipFirstProperty(Object component,
                                        String propertyValue)

setConditionProperty

public static void setConditionProperty(Object component,
                                        Object propValue)

setSortDirectionProperty

public static void setSortDirectionProperty(Object component,
                                            String propertyValue)

setSummarySortDirectionProperty

public static void setSummarySortDirectionProperty(Object component,
                                                   String propertyValue)

setSummaryExpressionProperty

public static void setSummaryExpressionProperty(Object component,
                                                String propertyValue)

setSummaryTypeProperty

public static void setSummaryTypeProperty(Object component,
                                          String propertyValue)

setDataSourceProperty

public static void setDataSourceProperty(Object component,
                                         Object propValue)
                                  throws JSONException
Throws:
JSONException

setDataRelationProperty

public static void setDataRelationProperty(Object component,
                                           Object propValue)

setMasterComponentProperty

public static void setMasterComponentProperty(Object component,
                                              Object propertyValue)

setBusinessObjectProperty

public static void setBusinessObjectProperty(Object component,
                                             Object propertyValue)

setCountDataProperty

public static void setCountDataProperty(Object component,
                                        String propertyValue)

setFilterEngineProperty

public static void setFilterEngineProperty(Object component,
                                           String propertyValue)

setSortDataProperty

public static void setSortDataProperty(Object component,
                                       JSONArray sortArray)
                                throws JSONException
Throws:
JSONException

setSortDataProperty

public static void setSortDataProperty(Object component,
                                       Object propertyValue)
                                throws JSONException
Throws:
JSONException

setFilterDataProperty

public static void setFilterDataProperty(Object component,
                                         JSONArray filters)
                                  throws JSONException
Throws:
JSONException

setFilterDataProperty

public static void setFilterDataProperty(Object component,
                                         Object propertyValue)
                                  throws JSONException
Throws:
JSONException

setFilterOnProperty

public static void setFilterOnProperty(Object component,
                                       Object propertyValue)

setFilterModeProperty

public static void setFilterModeProperty(Object component,
                                         Object propertyValue)

setShiftModeProperty

public static void setShiftModeProperty(Object component,
                                        Object propValue)

setDataColumnProperty

public static void setDataColumnProperty(Object component,
                                         String propertyValue)

setImageUrlProperty

public static void setImageUrlProperty(Object component,
                                       String propertyValue)

setImageSrcProperty

public static void setImageSrcProperty(Object component,
                                       String propertyValue)

setImageFileProperty

public static void setImageFileProperty(Object component,
                                        String propertyValue)

setImageDataProperty

public static void setImageDataProperty(Object component,
                                        String propertyValue)

setWatermarkImageSrcProperty

public static void setWatermarkImageSrcProperty(Object component,
                                                String propertyValue)

setCrossTabEmptyValueProperty

public static void setCrossTabEmptyValueProperty(Object component,
                                                 String propertyValue)

setCrossTabWrapGapProperty

public static void setCrossTabWrapGapProperty(Object component,
                                              String propertyValue)

setCrossTabWrapProperty

public static void setCrossTabWrapProperty(Object component,
                                           String propertyValue)

setCrossTabPrintTitleProperty

public static void setCrossTabPrintTitleProperty(Object component,
                                                 String propertyValue)

setCrossTabHorAlignProperty

public static void setCrossTabHorAlignProperty(Object component,
                                               String propertyValue)

setPrintIfEmptyProperty

public static void setPrintIfEmptyProperty(Object component,
                                           String propertyValue)

setPrintOnAllPagesProperty

public static void setPrintOnAllPagesProperty(Object component,
                                              String propertyValue)

setKeyDataColumnProperty

public static void setKeyDataColumnProperty(Object component,
                                            String propertyValue)

setMasterKeyDataColumnProperty

public static void setMasterKeyDataColumnProperty(Object component,
                                                  String propertyValue)

setParentValueProperty

public static void setParentValueProperty(Object component,
                                          String propertyValue)

setIndentProperty

public static void setIndentProperty(Object component,
                                     String propertyValue)

setHeadersProperty

public static void setHeadersProperty(Object component,
                                      String propertyValue)

setFootersProperty

public static void setFootersProperty(Object component,
                                      String propertyValue)

setRestrictionsProperty

public static void setRestrictionsProperty(Object component,
                                           Object propValue)

setConditionsProperty

public static void setConditionsProperty(Object component,
                                         Object propertyValue)
                                  throws JSONException
Throws:
JSONException

createHighlightCondition

public static StiBaseCondition createHighlightCondition(JSONObject conditionObject)
                                                 throws JSONException
Throws:
JSONException

createDataBarCondition

public static StiBaseCondition createDataBarCondition(JSONObject conditionObject)
                                               throws JSONException
Throws:
JSONException

createColorScaleCondition

public static StiBaseCondition createColorScaleCondition(JSONObject conditionObject)
                                                  throws JSONException
Throws:
JSONException

createIconSetCondition

public static StiBaseCondition createIconSetCondition(JSONObject conditionObject)
                                               throws JSONException
Throws:
JSONException

setInteractionProperty

public static void setInteractionProperty(Object component,
                                          Object propertyValue)
                                   throws JSONException
Throws:
JSONException

setChartStyleProperty

public static void setChartStyleProperty(Object component,
                                         Object propertyValue)
                                  throws ParserConfigurationException,
                                         IOException,
                                         TransformerException,
                                         JSONException
Throws:
ParserConfigurationException
IOException
TransformerException
JSONException

setGaugeStyleProperty

public static void setGaugeStyleProperty(Object component,
                                         Object propertyValue)

setMapStyleProperty

public static void setMapStyleProperty(Object component,
                                       Object propertyValue)

setCrossTabStyleProperty

public static void setCrossTabStyleProperty(Object component,
                                            Object propertyValue)
                                     throws NumberFormatException,
                                            JSONException
Throws:
NumberFormatException
JSONException

setSubReportParametersProperty

public static void setSubReportParametersProperty(Object component,
                                                  Object propertyValue)
                                           throws JSONException
Throws:
JSONException

setTrimmingProperty

public static void setTrimmingProperty(Object component,
                                       String propertyValue)
                                throws Exception
Throws:
Exception

setTextOptionsRightToLeftProperty

public static void setTextOptionsRightToLeftProperty(Object component,
                                                     String propertyValue)
                                              throws Exception
Throws:
Exception

setProcessAtProperty

public static void setProcessAtProperty(Object component,
                                        String propertyValue)
                                 throws Exception
Throws:
Exception

setProcessingDuplicatesProperty

public static void setProcessingDuplicatesProperty(Object component,
                                                   String propertyValue)
                                            throws Exception
Throws:
Exception

setShrinkFontToFitProperty

public static void setShrinkFontToFitProperty(Object component,
                                              String propertyValue)
                                       throws Exception
Throws:
Exception

setShrinkFontToFitMinimumSizeProperty

public static void setShrinkFontToFitMinimumSizeProperty(Object component,
                                                         String propertyValue)
                                                  throws Exception
Throws:
Exception

setTextTypeProperty

public static void setTextTypeProperty(Object component,
                                       String propertyValue)
                                throws Exception
Throws:
Exception

writeReportInObject

public static String writeReportInObject(StiReport report)
                                  throws ParserConfigurationException,
                                         IOException,
                                         TransformerException
Throws:
ParserConfigurationException
IOException
TransformerException

writeReportInObject

public static String writeReportInObject(StiReport report,
                                         Hashtable attachedItems)
                                  throws ParserConfigurationException,
                                         IOException,
                                         TransformerException
Throws:
ParserConfigurationException
IOException
TransformerException

createComponent

public static void createComponent(StiReport report,
                                   Hashtable<String,Object> param,
                                   Hashtable<String,Object> callbackResult)
                            throws Exception
Throws:
Exception

removeComponent

public static void removeComponent(StiReport report,
                                   Hashtable<String,Object> param,
                                   Hashtable<String,Object> callbackResult)
                            throws JSONException
Throws:
JSONException

changeRectComponent

public static void changeRectComponent(StiReport report,
                                       Hashtable<String,Object> param,
                                       Hashtable<String,Object> callbackResult)
                                throws JSONException,
                                       ParserConfigurationException,
                                       IOException,
                                       TransformerException
Throws:
JSONException
ParserConfigurationException
IOException
TransformerException

addPage

public static void addPage(StiReport report,
                           Hashtable<String,Object> param,
                           Hashtable<String,Object> callbackResult)
                    throws ParserConfigurationException,
                           IOException,
                           TransformerException
Throws:
ParserConfigurationException
IOException
TransformerException

removePage

public static void removePage(StiReport report,
                              Hashtable<String,Object> param,
                              Hashtable<String,Object> callbackResult)

readAllPropertiesFromString

public static void readAllPropertiesFromString(StiReport report,
                                               Hashtable<String,Object> param,
                                               Hashtable<String,Object> callbackResult)
                                        throws Exception
Throws:
Exception

changeUnit

public static void changeUnit(StiReport report,
                              String unitName)

getPreviewPages

public static void getPreviewPages(StiReport report,
                                   JSONObject param,
                                   Hashtable<String,Object> callbackResult)
                            throws StiException,
                                   IOException,
                                   SAXException,
                                   StiDeserializationException,
                                   JSONException
Throws:
StiException
IOException
SAXException
StiDeserializationException
JSONException

cloneReport

public static StiReport cloneReport(StiReport report,
                                    boolean onlyCompiledReport)
                             throws IOException,
                                    SAXException,
                                    StiDeserializationException
Throws:
IOException
SAXException
StiDeserializationException

getPageByName

public static StiPage getPageByName(StiReport report,
                                    String name)

getAllSvgContents

public static void getAllSvgContents(StiReport report,
                                     Hashtable<String,Object> param,
                                     Hashtable<String,Object> callbackResult)
                              throws ParserConfigurationException,
                                     IOException,
                                     TransformerException
Throws:
ParserConfigurationException
IOException
TransformerException

setToClipboard

public static void setToClipboard(javax.servlet.http.HttpServletRequest httpContext,
                                  StiReport report,
                                  Hashtable<String,Object> param,
                                  Hashtable<String,Object> callbackResult)
                           throws JSONException
Throws:
JSONException

getFromClipboard

public static void getFromClipboard(javax.servlet.http.HttpServletRequest httpContext,
                                    StiReport report,
                                    Hashtable<String,Object> param,
                                    Hashtable<String,Object> callbackResult)
                             throws Exception
Throws:
Exception

addReportToUndoArray

public static void addReportToUndoArray(javax.servlet.http.HttpServletRequest httpContext,
                                        StiReport report,
                                        Hashtable<String,Object> parameters)
                                 throws IOException,
                                        SAXException,
                                        StiDeserializationException
Throws:
IOException
SAXException
StiDeserializationException

getUndoStep

public static StiReport getUndoStep(javax.servlet.http.HttpServletRequest httpContext,
                                    StiReport report,
                                    Hashtable<String,Object> parameters,
                                    Hashtable<String,Object> callbackResult,
                                    Object cacheHelper)
                             throws IOException,
                                    SAXException,
                                    StiDeserializationException,
                                    ParserConfigurationException,
                                    TransformerException
Throws:
IOException
SAXException
StiDeserializationException
ParserConfigurationException
TransformerException

getRedoStep

public static StiReport getRedoStep(javax.servlet.http.HttpServletRequest httpContext,
                                    StiReport report,
                                    Hashtable<String,Object> parameters,
                                    Hashtable<String,Object> callbackResult,
                                    Object cacheHelper)
                             throws ParserConfigurationException,
                                    IOException,
                                    TransformerException
Throws:
ParserConfigurationException
IOException
TransformerException

renameComponent

public static void renameComponent(StiReport report,
                                   Hashtable<String,Object> param,
                                   Hashtable<String,Object> callbackResult)

saveComponentClone

public static void saveComponentClone(javax.servlet.http.HttpServletRequest httpContext,
                                      StiComponent component,
                                      StiReport report,
                                      Hashtable<String,Object> param,
                                      Hashtable<String,Object> callbackResult,
                                      Object cacheHelper)

canceledEditComponent

public static void canceledEditComponent(javax.servlet.http.HttpServletRequest httpContext,
                                         StiReport currentReport,
                                         Hashtable param,
                                         Hashtable callbackResult,
                                         Object cacheHelper)

createTextComponentFromDictionary

public static void createTextComponentFromDictionary(StiReport report,
                                                     Hashtable<String,Object> param,
                                                     Hashtable<String,Object> callbackResult)
                                              throws Exception
Throws:
Exception

createDataComponentFromDictionary

public static void createDataComponentFromDictionary(StiReport report,
                                                     Hashtable<String,Object> param,
                                                     Hashtable<String,Object> callbackResult)
                                              throws JSONException,
                                                     ParserConfigurationException,
                                                     IOException,
                                                     TransformerException
Throws:
JSONException
ParserConfigurationException
IOException
TransformerException

setReportProperties

public static void setReportProperties(StiReport report,
                                       Hashtable<String,Object> param,
                                       Hashtable<String,Object> callbackResult)
                                throws Exception
Throws:
Exception

getReportProperties

public static Hashtable<String,Object> getReportProperties(StiReport report)

pageMove

public static void pageMove(StiReport report,
                            Hashtable<String,Object> param,
                            Hashtable<String,Object> callbackResult)

alignToGridComponents

public static void alignToGridComponents(StiReport report,
                                         Hashtable param,
                                         Hashtable callbackResult)
                                  throws JSONException
Throws:
JSONException

changeArrangeComponents

public static void changeArrangeComponents(StiReport report,
                                           Hashtable<String,Object> param,
                                           Hashtable<String,Object> callbackResult)
                                    throws JSONException
Throws:
JSONException

duplicatePage

public static void duplicatePage(StiReport report,
                                 Hashtable<String,Object> param,
                                 Hashtable<String,Object> callbackResult)
                          throws ParserConfigurationException,
                                 IOException,
                                 TransformerException,
                                 SAXException,
                                 StiDeserializationException
Throws:
ParserConfigurationException
IOException
TransformerException
SAXException
StiDeserializationException

updateEvents

public static void updateEvents(StiReport report,
                                Hashtable<String,Object> param,
                                Hashtable<String,Object> callbackResult)
                         throws JSONException
Throws:
JSONException

setEventValue

public static void setEventValue(StiReport report,
                                 Hashtable<String,Object> param,
                                 Hashtable callbackResult)
                          throws Exception
Throws:
Exception

changeSizeComponents

public static void changeSizeComponents(StiReport report,
                                        Hashtable param,
                                        Hashtable callbackResult)
                                 throws JSONException,
                                        ParserConfigurationException,
                                        IOException,
                                        TransformerException
Throws:
JSONException
ParserConfigurationException
IOException
TransformerException

createMovingCopyComponent

public static void createMovingCopyComponent(javax.servlet.http.HttpServletRequest httpContext,
                                             StiReport report,
                                             Hashtable param,
                                             Hashtable callbackResult)
                                      throws JSONException,
                                             ParserConfigurationException,
                                             IOException,
                                             TransformerException
Throws:
JSONException
ParserConfigurationException
IOException
TransformerException


Copyright © 2017 Stimulsoft. All Rights Reserved.