use of org.jaffa.modules.messaging.components.queuelist.dto.QueueListOutDto in project jaffa-framework by jaffa-projects.
the class QueueListForm method populateRows.
/**
* This will populate the input GridModel with the data in the finderOutDto of the Component.
* @param rows The GridModel object to populate.
*/
public void populateRows(GridModel rows) {
rows.clearRows();
QueueListOutDto outputDto = (QueueListOutDto) ((QueueListComponent) getComponent()).getFinderOutDto();
if (outputDto != null && outputDto.getRows() != null) {
GridModelRow row;
for (QueueListOutRowDto rowDto : outputDto.getRows()) {
row = rows.newRow();
row.addElement("queue", rowDto.getQueue());
row.addElement("pending", rowDto.getPending());
row.addElement("error", rowDto.getError());
row.addElement("inProcess", rowDto.getInProcess());
row.addElement("activeConsumer", rowDto.getActiveConsumer());
row.addElement("started", rowDto.getStarted());
row.addElement("stopped", rowDto.getStopped());
}
}
}
Aggregations