org.utgenome.gwt.utgb.client.util
Class TableData

java.lang.Object
  extended by org.utgenome.gwt.utgb.client.util.TableData

public class TableData
extends Object

TableData holds table data, the key of which is a column with a name "id"

Author:
leo

Field Summary
static String DEFAULT_KEY_COLUMN_NAME
           
 
Constructor Summary
TableData(String[] columnName)
           
TableData(String[] columnName, int keyColumn)
           
 
Method Summary
 Object addRow(Object[] row)
           
 void clear()
           
 int getColumnCount()
           
 String[] getColumnLabel()
           
 String getColumnLabel(int column)
           
 int getKeyColumn()
           
 Object[] getRow(Object key)
           
 Set<Object> keySet()
          key set of Integer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_KEY_COLUMN_NAME

public static final String DEFAULT_KEY_COLUMN_NAME
See Also:
Constant Field Values
Constructor Detail

TableData

public TableData(String[] columnName)

TableData

public TableData(String[] columnName,
                 int keyColumn)
Method Detail

addRow

public Object addRow(Object[] row)
Parameters:
row -
Returns:
key

keySet

public Set<Object> keySet()
key set of Integer

Returns:

getRow

public Object[] getRow(Object key)

getColumnCount

public int getColumnCount()

getColumnLabel

public String[] getColumnLabel()

getColumnLabel

public String getColumnLabel(int column)

clear

public void clear()

getKeyColumn

public int getKeyColumn()


Copyright © 2007-2012 utgenome.org. All Rights Reserved.