-
Bug
-
Resolution: Fixed
-
Normal
-
2.5.0
Whatever using spreadsheet.addEventListener(org.zkoss.zss.ui.event.Events.ON_HYPERLINK, new EventListener<Event>(){}) nor onHyperlink$spreadsheet(HyperlinkEvent event) to listen onHyperlink event can not work while the cell with the hyperlink is focused or the whole spreadsheet is not foucsed.
sample zul:
<window apply="ComposerForHyperlinkEvent"> <spreadsheet src="/xls/ZSS-demo_sample.xlsx" id="spreadsheet" /> </window>
sample composer:
public class ComposerForHyperlinkEvent extends GenericForwardComposer<Component> { Spreadsheet spreadsheet; @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); spreadsheet.addEventListener(org.zkoss.zss.ui.event.Events.ON_HYPERLINK, new EventListener<Event>() { public void onEvent(Event event) throws Exception { System.out.println("HYPERLINK!!!!!!!!!!!!!"); } }); } public void onHyperlink$spreadsheet(HyperlinkEvent event) { System.out.println("HYPERLINK!!!!!!!!!!!!!"); } }
- relates to
-
ZSS-233 hyperlink event doesn't work.
- Closed