|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.swing.calculator.analysis.CollocateContextRow
public class CollocateContextRow
Holds collocate context entries for tabular display.
Field Summary | |
---|---|
protected java.lang.String |
contextText
The collocation context text. |
protected static java.lang.String |
emptyString
An empty string to handle requests for invalid columns. |
protected java.lang.String |
plainContextText
The context text as a plain (non-html) string. |
protected int |
rowID
Row ID. |
protected static int |
uniqueRowIDBase
Row ID generator base. |
protected java.lang.String |
wordPath
The word path in which the collocation occurs. |
protected java.lang.String |
wordTag
The unique word tag for this collocate. |
Constructor Summary | |
---|---|
CollocateContextRow(java.lang.String wordTag,
java.lang.String wordPath,
java.lang.String contextText)
Constructs a new row. |
Method Summary | |
---|---|
int |
compareTo(SortedTableModel.Row obj,
int columnIndex)
Compares this row to another row using a specified column. |
java.lang.Object |
getSortableValue(int columnIndex)
Gets the value of a column for sorting. |
java.lang.Object |
getUniqueRowID()
Gets the associated unique ID for this row. |
java.lang.Object |
getValue(int columnIndex)
Gets the value of a column. |
java.lang.String |
getWordTag()
Get word tag for this row. |
java.lang.String |
toString()
Display text associated with node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String wordTag
protected java.lang.String wordPath
protected java.lang.String contextText
protected java.lang.String plainContextText
protected static final java.lang.String emptyString
protected int rowID
protected static int uniqueRowIDBase
Constructor Detail |
---|
public CollocateContextRow(java.lang.String wordTag, java.lang.String wordPath, java.lang.String contextText)
wordTag
- Word tag of collocate.wordPath
- Word path for collocate.contextText
- The context text. Method Detail |
---|
public java.lang.Object getValue(int columnIndex)
getValue
in interface SortedTableModel.Row
columnIndex
- Column index.
public java.lang.Object getSortableValue(int columnIndex)
columnIndex
- Column index.
public int compareTo(SortedTableModel.Row obj, int columnIndex)
compareTo
in interface SortedTableModel.Row
obj
- The other row.columnIndex
- Column index.
public java.lang.Object getUniqueRowID()
getUniqueRowID
in interface SortedTableModel.Row
public java.lang.String getWordTag()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |