EOS 2  1.1.0
Einfache Objektbasierte Sprache
AutoCompleteInfo.java
gehe zur Dokumentation dieser Datei
1 package de.lathanda.eos.baseparser;
2 
9 class AutoCompleteInfo implements AutoCompleteInformation {
10  private String name;
11  private AutoCompleteType t;
12  private int type;
13  private int selectionStart;
14  private int selectionLength;
15 
16  public AutoCompleteInfo(String name, AutoCompleteType t, int type, int start, int length) {
17  this.name = name;
18  this.t = t;
19  this.type = type;
20  this.selectionStart = start;
21  this.selectionLength = length;
22  }
23 
24  @Override
25  public String getScantext() {
26  return name;
27  }
28 
29  @Override
30  public String getLabel() {
31  return name;
32  }
33 
34  @Override
35  public int getType() {
36  return type;
37  }
38 
39  @Override
40  public String getTooltip() {
41  return "";
42  }
43 
44  @Override
45  public AutoCompleteType getCls() {
46  return t;
47  }
48 
49  @Override
50  public String getSort() {
51  return PREFIX[type] + name;
52  }
53 
54  @Override
55  public String getTemplate() {
56  return name;
57  }
58 
59  @Override
60  public int getSelectionStart() {
61  return selectionStart;
62  }
63 
64  @Override
65  public int getSelectionLength() {
66  return selectionLength;
67  }
68 }
Impressum