| java.lang.Object javax.swing.table.AbstractTableModel com.xoetrope.carousel.survey.XAnswersTableModelFree
XAnswersTableModelFree | public class XAnswersTableModelFree extends AbstractTableModel implements MouseListener(Code) | | A model for the user's answer table when the question type is "free text"
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_ACTIVE | final public static int COL_ACTIVE(Code) | | |
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) | | |
XAnswersTableModelFree | public XAnswersTableModelFree()(Code) | | Creates a new instance of XAnsersTableModelFree
|
XAnswersTableModelFree | public XAnswersTableModelFree(XTable t)(Code) | | Creates a new instance of XAnswersTableModelFree
Parameters: t - the table component which will visulisethe data held by this table model. |
addOption | protected void addOption(Option option)(Code) | | Adds the new option to the question object
held by this model.
Parameters: option - the new 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 Parameters: the - Class object representing the column |
getColumnCount | public int getColumnCount()(Code) | | Gets the number of columns of this data table.
the number of columns. |
getColumnName | public String getColumnName(int idx)(Code) | | Gets the name of the column located at the specified index
Parameters: idx - the index of the column being queried |
getColumns | public XTableColumn[] getColumns()(Code) | | Gets the columns of this table model
the table cotianing the columns |
getRowCount | public int getRowCount()(Code) | | Gets the number of rows in this data table
the number of rows. |
getValueAt | public Object getValueAt(int rowIndex, int columnIndex)(Code) | | Gets the value of the specified cell at rowIndex and columnIndex
Parameters: rowIndex - the row of the cell to be queried Parameters: columnIndex - the column of the cell to be queried the value of the cell |
isCellEditable | public boolean isCellEditable(int row, int col)(Code) | | Indicates whether the cell is editable
Parameters: row - the row of the cell being queried Parameters: col - the column of the cell being queried true if the cell is editable, false otherwise |
removeOption | protected void removeOption(Option option)(Code) | | Removes the option from the question object held by this model
Parameters: option - the option to be removed |
setCondition | public void setCondition(Condition c)(Code) | | Sets the Condition object of this model
Parameters: c - the new Condition object. |
setValueAt | public void setValueAt(Object value, int rowIndex, int columnIndex)(Code) | | Sets the value of the specified cell
Parameters: value - the new value Parameters: rowIndex - the row of the cell Parameters: columnIndex - the index of the cell |
|
|