|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.ColumnProxy
infovis.table.TableProxy
public class TableProxy
A Table Proxy implements an Table by forwarding all
the methods to an internal Table.
This class is useful to
implements higher level containers out of a standard
DefaultTable.
| Field Summary |
|---|
| Fields inherited from class infovis.column.AbstractColumn |
|---|
MODIFIED_ALL, MODIFIED_NONE |
| Fields inherited from interface infovis.Table |
|---|
FILTER_COLUMN, INTERNAL_PREFIX, NIL, SELECTION_COLUMN |
| Fields inherited from interface infovis.metadata.Constants |
|---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
| Constructor Summary | |
|---|---|
TableProxy(Table table)
Creates a new TableProxy object. |
|
| Method Summary | |
|---|---|
void |
addColumn(Column c)
Adds a column. |
void |
addTableModelListener(TableModelListener l)
|
void |
clear()
Removes all of the elements from this column. The Column will be empty after this call returns. WARNING: if there is an associated format that maintains a status, such as a CategoricalFormat, it
is not cleared so results may not be what you expected. The
CategoricalFormat can be cleared explicitely if
needed. |
Column |
getColumn(String name)
Returns the column of a specified name. |
Column |
getColumnAt(int index)
Returns the column at a specified index. |
Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
Returns the number of columns of the table. |
String |
getColumnName(int columnIndex)
|
int |
getLastRow()
Returns the index of the last row in the table. |
int |
getRowCount()
Returns the number of rows in the table. |
Table |
getTable()
Returns the real table for Proxies and this for a concrete table. |
Object |
getValueAt(int rowIndex,
int columnIndex)
|
int |
indexOf(Column column)
Returns the index of a specified column. |
int |
indexOf(String name)
Returns the index of a column of a specified name. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
boolean |
isRowValid(int row)
Checks whether a specified row is valid. |
boolean |
removeColumn(Column c)
Removes a column from the table. |
void |
removeTableModelListener(TableModelListener l)
|
RowIterator |
reverseIterator()
Returns an iterator over the columns of this table in reverse order. |
void |
setColumnAt(int i,
Column c)
Replaces the column at a specified index. |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
|
void |
tableChanged(TableModelEvent e)
|
| Methods inherited from class infovis.column.ColumnProxy |
|---|
addValue, addValueOrNull, capacity, compare, dispose, ensureCapacity, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, iterator, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size, stateChanged |
| Methods inherited from class infovis.column.AbstractColumn |
|---|
addChangeListener, compareValues, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow, toString |
| Methods inherited from class infovis.utils.ChangeManager |
|---|
disableNotify, enableNotify, getModCount, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface infovis.Column |
|---|
addChangeListener, addValue, addValueOrNull, capacity, disableNotify, enableNotify, ensureCapacity, getFormat, getMaxIndex, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, iterator, removeChangeListener, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
| Methods inherited from interface infovis.Metadata |
|---|
getClientProperty, getMetadata |
| Methods inherited from interface cern.colt.function.IntComparator |
|---|
compare, equals |
| Constructor Detail |
|---|
public TableProxy(Table table)
table - The underlying table.Table.getTable()| Method Detail |
|---|
public int getColumnCount()
getColumnCount in interface TablegetColumnCount in interface TableModelpublic void clear()
CategoricalFormat, it
is not cleared so results may not be what you expected. The
CategoricalFormat can be cleared explicitely if
needed.
clear in interface Columnclear in interface Tableclear in class ColumnProxypublic void addColumn(Column c)
addColumn in interface Tablec - the column.public Column getColumnAt(int index)
getColumnAt in interface Tableindex - the index.
public void setColumnAt(int i,
Column c)
setColumnAt in interface Tablei - the index.c - the column.public int indexOf(String name)
indexOf in interface Tablename - the name.
public int indexOf(Column column)
indexOf in interface Tablecolumn - the column
public Column getColumn(String name)
getColumn in interface Tablename - the name.
public boolean removeColumn(Column c)
removeColumn in interface Tablec - the column.
true if the column has been removed.public Table getTable()
getTable in interface Tablepublic boolean isRowValid(int row)
isRowValid in interface Tablerow - the row.
true if it is.public String getColumnName(int columnIndex)
getColumnName in interface TableModelpublic int getRowCount()
getRowCount in interface TablegetRowCount in interface TableModelpublic int getLastRow()
getLastRow in interface Table
public Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface TableModel
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface TableModelpublic Class getColumnClass(int columnIndex)
getColumnClass in interface TableModel
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelpublic RowIterator reverseIterator()
reverseIterator in interface Tablepublic void addTableModelListener(TableModelListener l)
addTableModelListener in interface TableModelpublic void removeTableModelListener(TableModelListener l)
removeTableModelListener in interface TableModelpublic void tableChanged(TableModelEvent e)
tableChanged in interface TableModelListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||