|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.openswing.swing.pivottable.tablemodelreaders.server.VOTableModel
Title: OpenSwing Framework
Description: TableModel implementation, based on a list of ValueObjects.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it
Constructor Summary | |
VOTableModel(java.util.List valueObjects,
java.lang.String[] attributeNames)
Constructs a TableModel, starting from the specified list of ValueObjects, having the specified list of attributes |
Method Summary | |
java.lang.Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
java.lang.String |
getColumnName(int columnIndex)
getColumnName |
int |
getRowCount()
|
java.lang.Object |
getValueAt(int rowIndex,
int colIndex)
|
ValueObject |
getValueObject(int row)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VOTableModel(java.util.List valueObjects, java.lang.String[] attributeNames)
valueObjects
- list of ValueObjectsattributeNames
- nome of attributes defined within the ValueObjects, used to define the TableModelMethod Detail |
public final ValueObject getValueObject(int row)
row
- row number
public final int getColumnCount()
public final int getRowCount()
public final boolean isCellEditable(int rowIndex, int columnIndex)
public final java.lang.Class getColumnClass(int columnIndex)
public final java.lang.Object getValueAt(int rowIndex, int colIndex)
public final void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
aValue
- ObjectrowIndex
- intcolumnIndex
- intpublic final java.lang.String getColumnName(int columnIndex)
columnIndex
- int
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |