Examples of IHyperlinkAction


Examples of org.eclipse.birt.report.engine.content.IHyperlinkAction

    protected boolean handleHyperLink(IArea area, HSSFCell cell) {
        IContent content = area.getContent();

        if (content != null) {
            IHyperlinkAction hlAction = content.getHyperlinkAction();

            if (hlAction != null) {
                try {
                    IReportRunnable runnable = services.getReportRunnable();
                    String systemId = runnable == null ? null
                            : runnable.getReportName();

                    Action act = new Action(systemId, hlAction);

                    String link = null;
                    String tooltip = EngineUtil.getActionTooltip(hlAction);

                    Object ac = services.getOption(RenderOption.ACTION_HANDLER);

                    if (ac instanceof IHTMLActionHandler) {
                        link = ((IHTMLActionHandler) ac).getURL(act,
                                services.getReportContext());
                    } else {
                        link = hlAction.getHyperlink();
                    }

                    if (link != null) {
                        HSSFHyperlink hssflink = new HSSFHyperlink(HSSFHyperlink.LINK_URL);
                        hssflink.setAddress(link);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.