View Javadoc
1   package org.vaadin.aceeditor.client.gwt;
2   
3   import com.google.gwt.core.client.JavaScriptObject;
4   
5   /**
6    * An event received from Ace.
7    * 
8    * @see GwtAceChangeEvent
9    * 
10   */
11  public class GwtAceEvent extends JavaScriptObject {
12  
13  	protected GwtAceEvent() {
14  	}
15  
16  	enum Type {
17  		change, changeCursor, changeSelection, keydown // TODO?
18  	}
19  
20  	final public Type getType() {
21  		return Type.valueOf(getTypeString());
22  	}
23  
24  	private final native String getTypeString() /*-{
25  		return this.type;
26  	}-*/;
27  
28  	public final native void preventDefault() /*-{
29  		this.preventDefault();
30  	}-*/;
31  
32  	public final native void stopPropagation() /*-{
33  		this.stopPropagation();
34  	}-*/;
35  
36  }