- java.lang.Object
-
- javax.swing.AbstractListModel<T>
-
- com.iamsoft.util.ui.swing.TableListModel<T>
-
- Type Parameters:
T- the type of the elements of this model
- All Implemented Interfaces:
Serializable,ListModel<T>
public class TableListModel<T> extends AbstractListModel<T>
List model based on a table model.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description TableListModel(TableModel pTableModel, int pColumnIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnIndex()Index of table column to use for list values.TgetElementAt(int pIdx)intgetSize()voidsetColumnIndex(int pColumnIndex)-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Constructor Detail
-
TableListModel
public TableListModel(TableModel pTableModel, int pColumnIndex)
-
-
Method Detail
-
getColumnIndex
public int getColumnIndex()
Index of table column to use for list values.
-
setColumnIndex
public void setColumnIndex(int pColumnIndex)
-
getElementAt
public T getElementAt(int pIdx)
-
getSize
public int getSize()
-
-