public class IlvFlatTableToListModel extends AbstractListModel implements ListModel, Cloneable
ListModel
view on a given
IlvFlatTableModel
. Every row in the
IlvFlatTableModel
becomes an element in the
ListModel
. You can access the values because each element
implements the Map
interface, by passing a column name as key.listenerList
Constructor and Description |
---|
IlvFlatTableToListModel()
Creates a list model, initially representing nothing.
|
IlvFlatTableToListModel(IlvFlatTableModel model)
Creates a list model, initially representing the given
model . |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns a copy of this object.
|
void |
disconnect()
Drops references to objects to help garbage collection.
|
void |
dispose()
Cleans up this model and drops references to objects to
help garbage collection.
|
Object |
getElementAt(int rowIndex) |
int |
getSize() |
IlvFlatTableModel |
getUnderlyingModel()
Returns the underlying model.
|
void |
setUnderlyingModel(IlvFlatTableModel model)
Sets the underlying model.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
public IlvFlatTableToListModel()
public IlvFlatTableToListModel(IlvFlatTableModel model)
model
.public Object getElementAt(int rowIndex)
getElementAt
in interface ListModel
public IlvFlatTableModel getUnderlyingModel()
IlvFlatTableModel
, or null
denoting
an empty model.public void setUnderlyingModel(IlvFlatTableModel model)
model
- A model, or null
denoting an empty model.public void dispose()
Note: After calling this function, this model is no longer functional.
public void disconnect()
Note: After calling this function, and after some changes occurred in the underlying model, this model is no longer functional.
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.