/** Return true if the bufferList is empty */ public boolean isEmpty() { return getRowCount()==0; }
public boolean isEmpty() { return getRowCount()==0; }
public int getRowCount() { return list.getRowCount(); }
private Object[] getAllRows(BufferList bufferList) { Object[] bufferListArray=null; synchronized(bufferList) { if (bufferList.getRowCount()>0) { bufferListArray=bufferList.getCollection().toArray(); } } return bufferListArray; }
public synchronized void addRow(Object obj) { if (!enabled || bufferSize<=0) return; // remove the oldest element if the buffer is to capacity. if (getRowCount()>=bufferSize && bufferHolder.shouldReplaceWith(obj)) { bufferHolder.remove(obj); } if (getRowCount()<bufferSize) { bufferHolder.add(obj); } }
public Object[][] getData() { Object[][] data=list.getData(); for (int i=0;i<list.getRowCount();i++) { if (data[i][0] instanceof JAMonDetailRow) data[i]=((JAMonDetailRow)data[i][0]).getJAMonDetailRow(); } return data; }