net.sourceforge.hivegui.table
Class EmptyDataListModel<T>

java.lang.Object
  extended by net.sourceforge.hivegui.table.EmptyDataListModel<T>
All Implemented Interfaces:
DataListModel<T>

public final class EmptyDataListModel<T>
extends java.lang.Object
implements DataListModel<T>

Author:
Jean-Francois Poilpret

Field Summary
protected  java.lang.Class<T> _beanClass
           
 
Constructor Summary
EmptyDataListModel(java.lang.Class<T> beanClass)
           
 
Method Summary
 void addDataListModelListener(DataListModelListener listener)
           
 void addRow(int row, T item)
           
 void addRow(T item)
           
 void clear()
           
 T getRow(int row)
           
 java.lang.Class<T> getRowClass()
           
 int getRowCount()
           
 T[] getRows()
           
 void removeDataListModelListener(DataListModelListener listener)
           
 void removeRow(int row)
           
 void removeRow(T item)
           
 void setRow(int row, T item)
           
 void setRows(T[] items)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_beanClass

protected final java.lang.Class<T> _beanClass
Constructor Detail

EmptyDataListModel

public EmptyDataListModel(java.lang.Class<T> beanClass)
Method Detail

setRows

public void setRows(T[] items)
Specified by:
setRows in interface DataListModel<T>

addRow

public void addRow(T item)
Specified by:
addRow in interface DataListModel<T>

addRow

public void addRow(int row,
                   T item)
Specified by:
addRow in interface DataListModel<T>

setRow

public void setRow(int row,
                   T item)
Specified by:
setRow in interface DataListModel<T>

removeRow

public void removeRow(T item)
Specified by:
removeRow in interface DataListModel<T>

removeRow

public void removeRow(int row)
Specified by:
removeRow in interface DataListModel<T>

clear

public void clear()
Specified by:
clear in interface DataListModel<T>

getRowClass

public java.lang.Class<T> getRowClass()
Specified by:
getRowClass in interface DataListModel<T>

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface DataListModel<T>

getRow

public T getRow(int row)
Specified by:
getRow in interface DataListModel<T>

getRows

public T[] getRows()
Specified by:
getRows in interface DataListModel<T>

addDataListModelListener

public void addDataListModelListener(DataListModelListener listener)
Specified by:
addDataListModelListener in interface DataListModel<T>

removeDataListModelListener

public void removeDataListModelListener(DataListModelListener listener)
Specified by:
removeDataListModelListener in interface DataListModel<T>