]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/engine/TokenRow.java
Theme, different color rows, dictionary_info, long click begin.
[Dictionary.git] / src / com / hughes / android / dictionary / engine / TokenRow.java
index 8579761722aa6a4c6240e856234c0a1485b7d639..adb4c583b06627de703f93b8b5d6e92033868c34 100644 (file)
@@ -20,7 +20,7 @@ import java.io.RandomAccessFile;
 
 public class TokenRow extends RowBase {
   
-  final boolean hasMainEntry;
+  public final boolean hasMainEntry;
   
   TokenRow(final RandomAccessFile raf, final int thisRowIndex, final Index index, final boolean hasMainEntry) throws IOException {
     super(raf, thisRowIndex, index);
@@ -52,7 +52,8 @@ public class TokenRow extends RowBase {
 
   @Override
   public void print(final PrintStream out) {
-    out.println("===" + getToken() + "===");
+    final String surrounder = hasMainEntry ? "***" : "===";
+    out.println(surrounder + getToken() + surrounder);
   }
 
   @Override