Image dragImage = ConstHolder.images.bullet_blue()
.createImage();
ProcessTimeLineEntry pte = (ProcessTimeLineEntry) tlo
.getHasDate();
ProcessType processType = pte.getProcessType();
String imageName = processType.getImageName();
if (imageName != null) {
if (imageName.equals("applying")) {
mainWidget = ConstHolder.images.applying()
.createImage();
} else if (imageName.equals("accepted")) {
mainWidget = ConstHolder.images.accepted()
.createImage();
} else if (imageName.equals("rejected")) {
mainWidget = ConstHolder.images.rejected()
.createImage();
} else if (imageName.equals("applied")) {
mainWidget = ConstHolder.images.applied()
.createImage();
} else if (imageName.equals("considering")) {
mainWidget = ConstHolder.images.considering()
.createImage();
}
} else {
if (processType.isPercentage()) {
mainWidget = new ProcessPercentWidget(controller,
processType, pte.getProcessValue());
} else {
mainWidget = new ProcessCheckboxWidget(controller,
processType, pte.getProcessValue());
}
mainLabel = new Label(processType.getName(), false);
}
tlow = new TLOWrapper(zoomableTimeline, tlo, dragImage,
mainWidget, mainLabel);