| java.lang.Object it.businesslogic.ireport.refactoring.ReportRefactor
ReportRefactor | public class ReportRefactor (Code) | | author: gtoffoli |
Method Summary | |
public static void | replaceInReportExpressions(String oldString, String newString, SubDataset subDataset, Report referenceReport) Replace oldString with newString in all the expressions related to the gived subDataset...
The method can fire required events
Checks for:
- Filter expression
- Query
- variables (initial expression and expression)
- group expressions
If Report instance:
- band print when
- elements PrintWhenExpression
- TextFieldReportElement expression
- ImageReportElement imageExpression
- SubReportElement connection, subreportExpression, parametersExpressions, returnValue variable names
- Hyperlinks (anchor, parameters, etc...)
- Crosstab parameters...
- Crosstab and Chart datasetRun
TODO:
- SortFields...
- Visit all the chart expressions checking the used datasource
- Explore sub-elements
- change the class for textfields (if possible)
It throws an event is an element is changed... | public static java.util.List | replaceTextfieldClass(String expression, String newClassType, java.util.List elements) | public static boolean | updateDatasetExpressions(Dataset dataset, String oldString, String newString) Update all the strings related to the dataset. | public static boolean | updateDatasetRunExpressions(Dataset dataset, String oldString, String newString) |
replaceInReportExpressions | public static void replaceInReportExpressions(String oldString, String newString, SubDataset subDataset, Report referenceReport)(Code) | | Replace oldString with newString in all the expressions related to the gived subDataset...
The method can fire required events
Checks for:
- Filter expression
- Query
- variables (initial expression and expression)
- group expressions
If Report instance:
- band print when
- elements PrintWhenExpression
- TextFieldReportElement expression
- ImageReportElement imageExpression
- SubReportElement connection, subreportExpression, parametersExpressions, returnValue variable names
- Hyperlinks (anchor, parameters, etc...)
- Crosstab parameters...
- Crosstab and Chart datasetRun
TODO:
- SortFields...
- Visit all the chart expressions checking the used datasource
- Explore sub-elements
- change the class for textfields (if possible)
It throws an event is an element is changed...
|
updateDatasetExpressions | public static boolean updateDatasetExpressions(Dataset dataset, String oldString, String newString)(Code) | | Update all the strings related to the dataset.
If the dataset is a plain dataset (not a chart dataset), the only think checked is the IncrementWhenExpression
|
updateDatasetRunExpressions | public static boolean updateDatasetRunExpressions(Dataset dataset, String oldString, String newString)(Code) | | |
|
|