View Javadoc
1   package org.vaadin.aceeditor.client;
2   
3   import java.util.HashMap;
4   import java.util.Map;
5   
6   import org.vaadin.aceeditor.client.TransportDoc.TransportRange;
7   
8   import com.vaadin.v7.shared.AbstractFieldState;
9   
10  @SuppressWarnings("serial")
11  public class AceEditorState extends AbstractFieldState {
12  	
13  	public String changeMode = "LAZY";
14  	public int changeTimeout = 400;
15  	
16  	public String mode = "text";
17  	
18  	public String theme = "textmate";
19  	
20  	public TransportRange selection = null;
21  	
22  	public boolean listenToSelectionChanges = false;
23  	
24  	public boolean listenToFocusChanges = false;
25  	
26  	public boolean useWorker = true;
27  	
28  	public boolean wordwrap = false;
29  
30      public boolean showGutter = true;
31  
32      public boolean showPrintMargin = true;
33  
34      public boolean highlightActiveLine = true;
35  
36  	public Map<String,String> config = new HashMap<String,String>();
37  	
38  	public int diff_editCost = 4;
39  	
40  	public TransportDoc initialValue = null;
41  	
42  	public int scrollToRow = -1;
43  }