]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/engine/TokenRow.java
Arrows in UI to display HtmlEntry on Tokens.
[Dictionary.git] / src / com / hughes / android / dictionary / engine / TokenRow.java
index 956044afe3a715f1dd6b6e1e80417399d6749c7e..96842e985bda925558f8451661f0fb1bff9f22d0 100644 (file)
@@ -20,6 +20,7 @@ import java.io.RandomAccessFile;
 import java.util.List;
 import java.util.regex.Pattern;
 
+import com.hughes.android.dictionary.engine.Index.IndexEntry;
 import com.ibm.icu.text.Transliterator;
 
 public class TokenRow extends RowBase {
@@ -51,7 +52,11 @@ public class TokenRow extends RowBase {
   }
   
   public String getToken() {
-    return index.sortedIndexEntries.get(referenceIndex).token;
+    return getIndexEntry().token;
+  }
+  
+  public IndexEntry getIndexEntry() {
+      return index.sortedIndexEntries.get(referenceIndex);
   }
 
   @Override