Hyperlink Event

From Documentation



  • onHyperlink
    This event is fired when a user clicks on a cell that contains a hyperlink. When a corresponding event listener is invoked, a HyperlinkEvent object is passed as an argument.


Event Monitor Example

Zss-essentials-events-hyperlink.png


public class EventsComposer extends SelectorComposer<Component>{

	@Listen("onCellHyperlink = spreadsheet")
	public void onCellHyperlink(CellHyperlinkEvent event){
		StringBuilder info = new StringBuilder();
		
		info.append("Hyperlink ").append(event.getType())
			.append(" on : ").append(Ranges.getCellReference(event.getRow(),event.getColumn()))
			.append(", address : ").append(event.getAddress());
		
		if(isShowEventInfo(event.getName())){
			addInfo(info.toString());
		}
	}		

}