1 38 package com.gargoylesoftware.htmlunit.javascript.host; 39 40 import com.gargoylesoftware.htmlunit.html.DomNode; 41 import com.gargoylesoftware.htmlunit.javascript.SimpleScriptable; 42 43 54 public class Event extends SimpleScriptable { 55 56 private static final long serialVersionUID = 4050485607908455730L; 57 private Object currentTarget_; 58 59 64 public Event(final DomNode domNode, final Object currentTarget) { 65 super(); 66 67 currentTarget_ = currentTarget; 68 69 super.setDomNode(domNode, false); 70 } 71 72 76 public Object jsxGet_currentTarget() { 77 return currentTarget_; 78 } 79 80 83 public String toString() { 84 final StringBuffer buffer = new StringBuffer ("Event: ("); 85 buffer.append("Current Target: "); 86 buffer.append(currentTarget_.toString()); 87 buffer.append(");"); 88 return buffer.toString(); 89 } 90 } 91 | Popular Tags |