fix gantt substeps.
*/
package com.hack23.cia.web.impl.ui.application.views.common.chartfactory.impl;
+import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.Map;
import java.util.Map.Entry;
import java.util.SortedSet;
+import java.util.TimeZone;
import java.util.TreeMap;
import java.util.TreeSet;
import java.util.function.Function;
import org.joda.time.DateTime;
import org.tltv.gantt.Gantt;
+import org.tltv.gantt.client.shared.AbstractStep.CaptionMode;
import org.tltv.gantt.client.shared.Resolution;
import org.tltv.gantt.client.shared.Step;
import org.tltv.gantt.client.shared.SubStep;
@@ -112,6 +115,7 @@ public final void createRoleGhant(final VerticalLayout roleSummaryLayoutTabsheet
*/
protected abstract StepMapping<T> getStepMapping();
+
/**
* Creates the generic gantt.
*
@@ -141,7 +145,7 @@ private Gantt createGenericGantt(final List<T> assignmentList, final Function<T,
final String stepName = entry.getKey();
- final Step step = new Step();
+ final Step step = new Step(stepName,CaptionMode.HTML);
step.setDescription(stepName);
final List<T> assignments = entry.getValue();
@@ -221,8 +225,8 @@ private void addViewGenericRoleMemberToStep(final String stepName, final Step st
.toString();
}
- final SubStep sameRoleSubStep = new SubStep(stepName + '.' + subStepName);
-
+ final SubStep sameRoleSubStep = new SubStep(stepName + '.' + subStepName,CaptionMode.HTML);
+ sameRoleSubStep.setDescription(stepName + '.' + subStepName);
sameRoleSubStep.setBackgroundColor(stepMapping.getBackgroundColor(assignmentData));
sameRoleSubStep.setStartDate(stepMapping.getFromDate(assignmentData).getTime());
