Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev]CheckIn: Ehance the IHTMLActionhandler/IHTMLImageHandler to accept IReportContext as the context information.

Title: [birt-dev]CheckIn: Ehance the IHTMLActionhandler/IHTMLImageHandler to accept IReportContext as the context information.

- Summary:

- Bugzilla Bug (s) Resolved:

- Description:

        To create the URL of action and image, the extened handler need access vairous informations used to create the current report. Those information includes format, resource locator, application context etc. Those information can't be accessed from the RenderContext which passed in the old API. So enhance the APIs to accept the  IReportContext as the context inforamtion.

        To keep backward compatability, the old API is not removed and a new Adapter class is added to wrapper the new API to the old ones.

        The developer of the handler can change their implementation to the adapter without change anythin else.

- Tests Description  :

        Manully test.

- Notes to Build Team:

- Notes to Developers:

        The ActionHandler of chart can use the new interface to create the URL.
        The viewer need change the implementation of the viewHtmlActionHandler to use the new resource folder

- Notes to QA:  

 
- Notes to Documentation:  

- Files Edited:
cvs ci -m "enhance the IHTMLActionHandler/IHTMLImageHandler with IReportContext" -l "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/HTMLCompleteImageHandler.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/IHTMLImageHandler.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/emitter/EngineEmitterServices.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/emitter/IEmitterServices.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/HTMLImageHandler.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/HTMLServerImageHandler.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/HTMLActionHandler.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/IHTMLActionHandler.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/EngineTask.java"

cvs ci -m "enhance the IHTMLActionHandler/IHTMLImageHandler with IReportContext" -l "/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java"

cvs ci -m "enhance the IHTMLActionHandler/IHTMLImageHandler with IReportContext" -l "/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ViewerHTMLActionHandler.java"

cvs ci -m "enhance the IHTMLActionHandler/IHTMLImageHandler with IReportContext" -l "/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ViewerHTMLActionHandler.java"


- Files Added:
cvs add -kkv "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/HTMLImageHandler.java"

- Files Deleted


-Wei Yan



Back to the top