| java.lang.Object javax.swing.table.AbstractTableModel com.xoetrope.carousel.survey.XAnswersTableModel
XAnswersTableModel | public class XAnswersTableModel extends AbstractTableModel implements MouseListener(Code) | | A model for the user's answer table.
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.5 $
|
COL_ANSWER | final public static int COL_ANSWER(Code) | | |
COL_OPTION | final public static int COL_OPTION(Code) | | |
COL_OPTIONID | final public static int COL_OPTIONID(Code) | | |
XAnswersTableModel | public XAnswersTableModel()(Code) | | Creates a new instance of XAnswersTableModel
|
XAnswersTableModel | public XAnswersTableModel(XTable t)(Code) | | Creates a new instance of XAnswersTableModel
Parameters: t - the table component wich will visualizethe data held by this model. |
addOption | protected void addOption(Option option)(Code) | | Adds the new questin option to this model
Parameters: option - to option to be added |
getColumnClass | public Class getColumnClass(int idx)(Code) | | Gets the type of the column located at
the specified index
Parameters: idx - the index of the column being queried the Class representing the column |
getColumnCount | public int getColumnCount()(Code) | | Gets the number of columns in this model
the number of columns. |
getColumnName | public String getColumnName(int col)(Code) | | Gets the name of the column located at the
specified index
Parameters: the - index of the requested column the name of the column |
getColumns | public XTableColumn[] getColumns()(Code) | | Gets the columns of this model.
table containing the columns. |
getRowCount | public int getRowCount()(Code) | | Gets the number of rows in the model.
the number of rows |
getValueAt | public Object getValueAt(int rowIndex, int columnIndex)(Code) | | Returns an attribute value for the cell at the specified rowIndex
and columnIndex
Parameters: rowIndex - the row whose value is to be queried Parameters: columnIndex - the index wshose value is to be queried the value Object at the specified cell. |
isCellEditable | public boolean isCellEditable(int row, int col)(Code) | | Indicates whether the specified cell is editable
Parameters: row - of the cell being queried Parameters: col - the column of the cell being queried true if the cell editable, false otherwise |
removeOption | protected void removeOption(Option option)(Code) | | Removes the specified option from this model
Parameters: option - the option to be removed |
setValueAt | public void setValueAt(Object value, int rowIndex, int columnIndex)(Code) | | Sets the value of an attribute at the specified rowIndex and columnIndex
Parameters: value - the new value Parameters: columnIndex - the column whose value is to be changed |
|
|