Interface GanttRenderer<R,B>
- Type Parameters:
R- the type of theGanttRowraw dataB- the type of theGanttBlockraw data
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DataCollectionTemplateGanttTimeLineRenderer,ForecastActivityDetailGanttTimeLineRenderer,GanttBaseRenderer,GanttTimeLineRenderer,GanttTreeRenderer,MultistageGroupGanttTimeLineRenderer,MultistageGroupGanttTreeRenderer,ProjectGanttTimeLineRenderer,ProjectGanttTreeRenderer
Class to abstract the Gantt renderer components
To reduce the iteration over the GanttRows the
rendering process will be driven by the
GanttView
object, that call the addRow(GanttView, GanttRow)
method for each renderer associated.
Then the GanttView will call the getHtml method to collect the
generated rows, and produce the complete HTML.-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbuildDisplayScript(GanttView<R, B> view, StringBuilder sb) org.apache.ecs.ElementgetJSVariableName(GanttView<R, B> view) doublegetWidth()voidsetItemClickEvent(String event) voidsetItemContextMenuEvent(String event) voidsetWidth(double width)
-
Method Details
-
addRow
-
buildHtml
- Parameters:
view- the callingGanttView- Returns:
- the complete HTML generated for all the added rows.
-
buildDisplayScript
- Parameters:
view- the callingGanttViewsb- theStringBuilderin which append the setup script code
-
getJSVariableName
- Parameters:
view- the callingGanttView- Returns:
- the JS variable name generated for the component's client side object
-
setWidth
void setWidth(double width) - Parameters:
width- the width (percentage) to set to this renderer component
-
getWidth
double getWidth()- Returns:
- the width (percentage) to set to this renderer component
-
setItemClickEvent
- Parameters:
event- the item click event to associate to the item HTML element
-
setItemContextMenuEvent
- Parameters:
event- the context menu event to associate to the item HTML element
-