|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.universAAL.ui.handler.gui.swing.model.FormControl.swingModel.RepeatTableModel
public class RepeatTableModel
This class implements a multiple inheritance of Repeat
and
AbstractTableModel
.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
RepeatTableModel(Repeat repeat)
Constructor method. |
Method Summary | |
---|---|
void |
addValue()
Call Repeat.addValue() and then
AbstractTableModel.fireTableRowsInserted(int, int) |
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 |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public RepeatTableModel(Repeat repeat)
repeat
- initial Repeat
objectMethod Detail |
---|
public void addValue()
Repeat.addValue()
and then
AbstractTableModel.fireTableRowsInserted(int, int)
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 column
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |