Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-348

onHyperlink event of Spreadsheet isn't fired

XMLWordPrintable

      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!!!!!!!!!!!!!");
      	}
      }
      

            dennis dennis
            francishsiao francishsiao
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: