]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/engine/TokenRow.java
Added Apache license.
[Dictionary.git] / src / com / hughes / android / dictionary / engine / TokenRow.java
index 06a1aa8a891ee272561534a6023937b09e507c21..247436b781108b632283fda7b2a5a98e80f5f736 100644 (file)
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
 package com.hughes.android.dictionary.engine;
 
 import java.io.IOException;
@@ -13,6 +27,10 @@ public class TokenRow extends RowBase {
   TokenRow(final int referenceIndex, final int thisRowIndex, final Index index) {
     super(referenceIndex, thisRowIndex, index);
   }
+  
+  public String toString() {
+    return getToken() + "@" + referenceIndex;
+  }
 
   @Override
   public TokenRow getTokenRow(final boolean search) {
@@ -29,14 +47,13 @@ public class TokenRow extends RowBase {
   }
 
   @Override
-  public Object draw(String searchText) {
-    // TODO Auto-generated method stub
-    return null;
+  public void print(final PrintStream out) {
+    out.println("===" + getToken() + "===");
   }
 
   @Override
-  public void print(final PrintStream out) {
-    out.println(getToken());
+  public String getRawText(boolean compact) {
+    return getToken();
   }