]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/engine/HtmlEntry.java
Added WholeSection entry type.
[Dictionary.git] / src / com / hughes / android / dictionary / engine / HtmlEntry.java
index d158ddf0643a7035b8578f0f73677f0c8fceb0a5..3278be6b5dfaade8ec7c950eedc9a3dc674ff6e1 100644 (file)
@@ -15,7 +15,15 @@ public class HtmlEntry extends AbstractEntry implements RAFSerializable<HtmlEntr
   
   final String title;
   final String html;
+  
+  
 
+  public HtmlEntry(final EntrySource entrySource, String title, String html) {
+    super(entrySource);
+    this.title = title;
+    this.html = html;
+  }
+  
   public HtmlEntry(Dictionary dictionary, RandomAccessFile raf) throws IOException {
     super(dictionary, raf);
     title = raf.readUTF();
@@ -34,6 +42,12 @@ public class HtmlEntry extends AbstractEntry implements RAFSerializable<HtmlEntr
     return dictionary.htmlEntries.size() - 1;
   }
   
+  @Override
+  public RowBase CreateRow(int entryIndex, int rowIndex, Index dictionaryIndex) {
+    return new Row(entryIndex, rowIndex, dictionaryIndex);
+  }
+
+  
   static final class Serializer implements RAFSerializer<HtmlEntry> {
     
     final Dictionary dictionary;