private boolean isIconTargetClicked ( ) { String targetHtml = EventHandler . getNativeMouseTarget ( ) . getString ( ) ; if ( targetHtml . indexOf ( ICON_EXTENSION ) != - 1 ) { return true ; } return false ; }
Method that checks if the target html tag of mouse event contains given icon extension . Should be backwards compatible with smartgwt 3 . 1 where the source html tag is IMG . !Will probably not work on touch devices .