|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.stats.model.DataTable
public class DataTable
A model of a table which encapsulates columns, rows and a title. This class is just a simple data bean, it doesn't do anything advanced like check to make sure the row lengths match the column lengths, validate user input, etc.
Constructor Summary | |
---|---|
DataTable(java.lang.String title)
Builds a blank table with the give title. |
Method Summary | |
---|---|
void |
addRow(java.lang.Object[] row)
Adds (appends) a row in the table. |
java.lang.String[] |
getColumns()
Returns a string array of columns for this table. |
java.util.List |
getRows()
Returns the rows in the table as a list. |
java.lang.String |
getTitle()
Returns the title of the table. |
boolean |
isOrderedList()
|
void |
setColumns(java.lang.String[] columns)
Sets the columns as a String array. |
void |
setOrderedList(boolean orderedList)
|
void |
setTitle(java.lang.String title)
Sets the title of the table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataTable(java.lang.String title)
title
- a short title of the table.Method Detail |
---|
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- a new title for the table.public java.lang.String[] getColumns()
public void setColumns(java.lang.String[] columns)
columns
- a String array of columns for the table.public java.util.List getRows()
public void addRow(java.lang.Object[] row)
row
- the row to add (append) to the table.public boolean isOrderedList()
public void setOrderedList(boolean orderedList)
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |