public class RepeatTableModel extends AbstractTableModel
Repeat
and
AbstractTableModel
.Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
listenerList
Constructor and Description |
---|
RepeatTableModel(Repeat repeat)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue()
|
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount()
Implements
TableModel.getColumnCount() |
String |
getColumnName(int col)
Implements
TableModel.getColumnName(int) |
int |
getRowCount()
Implements
TableModel.getRowCount() |
Object |
getSelectionColumnValue(int col) |
FormControl[] |
getSelectionControls()
Getter for
elems |
Object |
getValueAt(int rowIndex,
int columnIndex)
Implements
TableModel.getValueAt(int, int) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeValue()
calls
Repeat.removeSelection() for repeat with the right
arguments (calling Repeat.getSelectionIndex() |
void |
setSelection(int i)
Call
Repeat.setSelection(int) for repeat |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
public void addValue()
public int getColumnCount()
TableModel.getColumnCount()
public String getColumnName(int col)
TableModel.getColumnName(int)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
col
- column Indexpublic FormControl[] getSelectionControls()
elems
public int getRowCount()
TableModel.getRowCount()
public Object getSelectionColumnValue(int col)
col
- Column index.public Object getValueAt(int rowIndex, int columnIndex)
TableModel.getValueAt(int, int)
rowIndex
- index of the rowcolumnIndex
- index of the columnpublic void removeValue()
Repeat.removeSelection()
for repeat
with the right
arguments (calling Repeat.getSelectionIndex()
public void setSelection(int i)
Repeat.setSelection(int)
for repeat
i
- index of the new selectionpublic Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
Copyright © 2015 universAAL Consortium. All Rights Reserved.