}
public void setModelValue(Object model, Object value) throws Exception {
}
};
UneditingEditor editor3=new UneditingEditor();
FieldInfo linkFieldInfo = new FieldInfo(id3, label3, modifier3, editor3);
pipeListFieldInfo.addColumn(linkFieldInfo);
}
{
// -----------------
// Finish time
// -----------------
String id4 = "endtime";
String label4 = "endtimelist";
ModelModifier modifier4 = new DefaultModelModifier() {
public Object getModelValue(Object model) throws Exception {
Date end=((Pipe) model).getEndTime();
if(end==null||(pipeSet!=null&&pipeSet.contains((Pipe)model))){
return "";
}
return dateFormat.format(end);
}
public void setModelValue(Object model, Object value) throws Exception {
}
};
UneditingEditor editor4=new UneditingEditor();
FieldInfo linkFieldInfo = new FieldInfo(id4, label4, modifier4, editor4);
pipeListFieldInfo.addColumn(linkFieldInfo);
}
{
// -----------------
// Duration of pipe execution
// -----------------
String id4 = "duration";
String label4 = "duration";
ModelModifier modifier4 = new DefaultModelModifier() {
public Object getModelValue(Object model) throws Exception {
Long duration=((Pipe)model).getDuration();
if(duration==0)
return "";
else if(pipeSet!=null&&pipeSet.contains((Pipe)model))
return environment.getLabel(PIPE_RUNNING, language );
else
return DurationFormatUtils.formatDuration(duration,DURATION_FORMAT);
}
public void setModelValue(Object model, Object value) throws Exception {
}
};
UneditingEditor editor4=new UneditingEditor();
FieldInfo linkFieldInfo = new FieldInfo(id4, label4, modifier4, editor4);
pipeListFieldInfo.addColumn(linkFieldInfo);
}
{
// -----------------
// Last status
// -----------------
String id4 = "status";
String label4 = "laststatus";
ModelModifier modifier4 = new DefaultModelModifier() {
public Object getModelValue(Object model) throws Exception {
String status=((Pipe) model).getLastStatus();
if(status!=null && (pipeSet==null||!pipeSet.contains((Pipe)model)))
return status;
return "";
}
public void setModelValue(Object model, Object value) throws Exception {
}
};
UneditingEditor editor4=new UneditingEditor();
FieldInfo linkFieldInfo = new FieldInfo(id4, label4, modifier4, editor4);
pipeListFieldInfo.addColumn(linkFieldInfo);
}
{
// -----------------
// Last user
// -----------------
String id6 = "lastuser";
String label6 = "lastuser";
ModelModifier modifier6 = new DefaultModelModifier() {
public Object getModelValue(Object model) throws Exception {
String user=((Pipe) model).getUser();
if(user!=null && (pipeSet==null||!pipeSet.contains((Pipe)model)))
return user;
return "";
}
public void setModelValue(Object model, Object value) throws Exception {
}
};
UneditingEditor editor6=new UneditingEditor();
FieldInfo linkFieldInfo = new FieldInfo(id6, label6, modifier6, editor6);
pipeListFieldInfo.addColumn(linkFieldInfo);
}