Class DefaultEventFactory
- java.lang.Object
-
- org.eclipse.nebula.widgets.ganttchart.DefaultEventFactory
-
- All Implemented Interfaces:
IEventFactory
public class DefaultEventFactory extends java.lang.Object implements IEventFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultEventFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GanttEvent
createGanttEvent(GanttChart parent, GanttSection gs, java.lang.String name, java.util.Calendar start, java.util.Calendar end)
Creates a new GanttEvent and adds it to the given GanttChart.
-
-
-
Method Detail
-
createGanttEvent
public GanttEvent createGanttEvent(GanttChart parent, GanttSection gs, java.lang.String name, java.util.Calendar start, java.util.Calendar end)
Description copied from interface:IEventFactory
Creates a new GanttEvent and adds it to the given GanttChart. If a GanttSection is specified, it is directly added to the GanttSection aswell.- Specified by:
createGanttEvent
in interfaceIEventFactory
- Parameters:
parent
- The GanttChart to add the GanttEvent to.gs
- The GanttSection to add the GanttEvent to. Can benull
.name
- The name that should be set to the GanttEvent.start
- The start date of the GanttEvent.end
- The end date of the GanttEvent.- Returns:
- The newly created GanttEvent that was added to the GanttChart.
-
-