Exemplo n.º 1
0
 /**
  * @param string
  * @param mouseEnter true if mouseenter; false otherwise
  */
 protected void fireAnkerHover(String html, boolean mouseEnter) {
   IElement element = BrowserUtils.extractElement(html);
   IAnker anker = new Anker(element.getAttributes(), element.getContent());
   for (IAnkerListener ankerListener : Browser.this.ankerListeners) {
     ankerListener.ankerHovered(anker, mouseEnter);
   }
 }
Exemplo n.º 2
0
 /**
  * @param y
  * @param x
  * @param string
  */
 protected void fireClicked(Double x, Double y, String html) {
   IElement element = BrowserUtils.extractElement(html);
   for (IMouseListener mouseListener : Browser.this.mouseListeners) {
     mouseListener.clicked(x, y, element);
   }
   if (element.getName().equals("a")) {
     IAnker anker = new Anker(element.getAttributes(), element.getContent());
     for (IAnkerListener ankerListener : Browser.this.ankerListeners) {
       ankerListener.ankerClicked(anker);
     }
   }
 }