labels.getLabel("createtime"),
labels.getLabel("starttime") }));
int colorIndex = 0;
for (Iterator i = entries.iterator(); i.hasNext(); colorIndex = 1 - colorIndex) {
PipeExecutionRequest entry = (PipeExecutionRequest) i.next();
TR row = tt.getRow();
Date creationTime = entry.getCreatedDate();
String formattedCreationTime;
if (creationTime != null) {
formattedCreationTime = dFormat.format(creationTime);
} else {
formattedCreationTime = "";
}
Date startTime = entry.getStartedDate();
String formattedStartTime;
if (startTime != null) {
formattedStartTime = dFormat.format(startTime);
} else {
formattedStartTime = "Queued";
}
queueTable.addElement(row.addElement(
new TD().addElement(new A("EditPipe?pipeid="
+ entry.getPipe().getId(), entry.getPipe()
.getName()))).addElement(
new TD().addElement(formattedCreationTime)).addElement(
new TD().addElement(formattedStartTime)));
}