Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemurproject::indri::ui::DocsTableModel Class Reference

List of all members.

Public Member Functions

int getColumnCount ()
int getRowCount ()
String getColumnName (int col)
Object getValueAt (int row, int col)
Class getColumnClass (int c)
void resize (int row)
void displayScores (boolean display)
void clear ()
void setValueAt (Object obj, int row, int col)
void setValueAt (int row, String doc, String title)
void setValueAt (int row, double score, String doc, String title)

Package Attributes

boolean showScores = false

Private Attributes

String[] noScoreColumnNames = {"Document", "Title"}
String[] scoreColumnNames = {"Score", "Document", "Title"}
String[] columnNames = noScoreColumnNames
Object[][] noScoreData = new Object[0][0]
Object[][] scoreData = new Object[0][0]
Object[][] data = noScoreData

Detailed Description

Table Model for the scored document results from running a query.
Author:
David Fisher


Member Function Documentation

void lemurproject::indri::ui::DocsTableModel::clear void   )  [inline]
 

Clear the data array.

void lemurproject::indri::ui::DocsTableModel::displayScores boolean  display  )  [inline]
 

Turn score display on or off.

Parameters:
display true to display scores, false to not

Class lemurproject::indri::ui::DocsTableModel::getColumnClass int  c  )  [inline]
 

int lemurproject::indri::ui::DocsTableModel::getColumnCount  )  [inline]
 

String lemurproject::indri::ui::DocsTableModel::getColumnName int  col  )  [inline]
 

int lemurproject::indri::ui::DocsTableModel::getRowCount  )  [inline]
 

Object lemurproject::indri::ui::DocsTableModel::getValueAt int  row,
int  col
[inline]
 

void lemurproject::indri::ui::DocsTableModel::resize int  row  )  [inline]
 

Resize the data array to contain row number of rows.

Parameters:
row Number of rows for the new array.

void lemurproject::indri::ui::DocsTableModel::setValueAt int  row,
double  score,
String  doc,
String  title
[inline]
 

Update an entry for a row

Parameters:
row The row index
score The document score
doc The document name
title The document title if any

void lemurproject::indri::ui::DocsTableModel::setValueAt int  row,
String  doc,
String  title
[inline]
 

Update an entry for a row

Parameters:
row The row index
doc The document name
title The document title if any

void lemurproject::indri::ui::DocsTableModel::setValueAt Object  obj,
int  row,
int  col
[inline]
 


Member Data Documentation

String [] lemurproject::indri::ui::DocsTableModel::columnNames = noScoreColumnNames [private]
 

Labels for the columns

Object [][] lemurproject::indri::ui::DocsTableModel::data = noScoreData [private]
 

Container for the data.

String [] lemurproject::indri::ui::DocsTableModel::noScoreColumnNames = {"Document", "Title"} [private]
 

Labels for the columns docid and title

Object [][] lemurproject::indri::ui::DocsTableModel::noScoreData = new Object[0][0] [private]
 

Container for the data, docid and title.

String [] lemurproject::indri::ui::DocsTableModel::scoreColumnNames = {"Score", "Document", "Title"} [private]
 

Labels for the columns score, docid and title

Object [][] lemurproject::indri::ui::DocsTableModel::scoreData = new Object[0][0] [private]
 

Container for the data, score, docid, and title.

boolean lemurproject::indri::ui::DocsTableModel::showScores = false [package]
 


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:07 2010 for Lemur by doxygen 1.3.4