|
|
@ -93,13 +93,13 @@ public class GanttTableDataContentPane extends AbstractTableDataContentPane{ |
|
|
|
ganttDefinition.setEndTime(endTime == null ? StringUtils.EMPTY : String.valueOf(endTime)); |
|
|
|
ganttDefinition.setEndTime(endTime == null ? StringUtils.EMPTY : String.valueOf(endTime)); |
|
|
|
|
|
|
|
|
|
|
|
Object markTime = markerTimeComboBox.getSelectedItem(); |
|
|
|
Object markTime = markerTimeComboBox.getSelectedItem(); |
|
|
|
ganttDefinition.setMarkTime(isNoneObject(markTime) ? StringUtils.EMPTY : String.valueOf(markTime)); |
|
|
|
ganttDefinition.setMarkTime(isNoneObject(markTime) ? null : String.valueOf(markTime)); |
|
|
|
|
|
|
|
|
|
|
|
Object process = processComboBox.getSelectedItem(); |
|
|
|
Object process = processComboBox.getSelectedItem(); |
|
|
|
ganttDefinition.setProgress(isNoneObject(process) ? StringUtils.EMPTY : String.valueOf(process)); |
|
|
|
ganttDefinition.setProgress(isNoneObject(process) ? null : String.valueOf(process)); |
|
|
|
|
|
|
|
|
|
|
|
Object taskID = taskIDComboBox.getSelectedItem(); |
|
|
|
Object taskID = taskIDComboBox.getSelectedItem(); |
|
|
|
ganttDefinition.setLinkID(isNoneObject(taskID) ? StringUtils.EMPTY : String.valueOf(taskID)); |
|
|
|
ganttDefinition.setLinkID(isNoneObject(taskID) ? null : String.valueOf(taskID)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private boolean isNoneObject(Object markTime) { |
|
|
|
private boolean isNoneObject(Object markTime) { |
|
|
@ -117,9 +117,9 @@ public class GanttTableDataContentPane extends AbstractTableDataContentPane{ |
|
|
|
seriesComboBox.setSelectedItem(ganttDefinition.getSeriesName()); |
|
|
|
seriesComboBox.setSelectedItem(ganttDefinition.getSeriesName()); |
|
|
|
startTimeComboBox.setSelectedItem(ganttDefinition.getStartTime()); |
|
|
|
startTimeComboBox.setSelectedItem(ganttDefinition.getStartTime()); |
|
|
|
endTimeComboBox.setSelectedItem(ganttDefinition.getEndTime()); |
|
|
|
endTimeComboBox.setSelectedItem(ganttDefinition.getEndTime()); |
|
|
|
markerTimeComboBox.setSelectedItem(StringUtils.isEmpty(ganttDefinition.getMarkTime()) ? NONE : ganttDefinition.getMarkTime()); |
|
|
|
markerTimeComboBox.setSelectedItem(ganttDefinition.getMarkTime() == null ? NONE : ganttDefinition.getMarkTime()); |
|
|
|
processComboBox.setSelectedItem(StringUtils.isEmpty(ganttDefinition.getProgress()) ? NONE : ganttDefinition.getProgress()); |
|
|
|
processComboBox.setSelectedItem(ganttDefinition.getProgress() == null ? NONE : ganttDefinition.getProgress()); |
|
|
|
taskIDComboBox.setSelectedItem(StringUtils.isEmpty(ganttDefinition.getLinkID()) ? NONE : ganttDefinition.getLinkID()); |
|
|
|
taskIDComboBox.setSelectedItem(ganttDefinition.getLinkID() == null ? NONE : ganttDefinition.getLinkID()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|