Class GanttBaseRenderer<R,B>
java.lang.Object
overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.GanttBaseRenderer<R,B>
- Type Parameters:
R- the type of theGanttRowraw dataB- the type of theGanttBlockraw data
- All Implemented Interfaces:
Serializable,GanttRenderer<R,B>
- Direct Known Subclasses:
GanttTimeLineRenderer,GanttTreeRenderer
public abstract class GanttBaseRenderer<R,B>
extends Object
implements GanttRenderer<R,B>, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Cleanerprotected List<org.apache.ecs.Element> protected List<org.apache.ecs.Element> protected GanttHelperFactoryprotected Stringprotected Stringprotected List<org.apache.ecs.html.Div> protected doublestatic final doubleprotected static final Stringstatic final Stringstatic final Stringstatic final intprotected Map<GanttBlockIndicator.GanttBlockIndicatorType, String> protected static final LogChannelstatic final Stringprotected static final org.apache.ecs.html.Divprotected static final Stringprotected static final Stringstatic final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAllow the caller to add an event name to the list of events that should be validated by the event fire-wallprotected voidaddEventValidation(GanttView view) protected StringAccording to the current configuration, generate the CSS string to set to main html element generated from this rendererprotected org.apache.ecs.html.DivbuildGridCol(GanttView view, double columnWidth) protected org.apache.ecs.html.DivbuildGridRow(GanttView view) protected Cleanercleaner()protected voidreset the generated HTML elements to be ready to start a new rendering processprotected intprotected GanttHeaderRendererHelperprotected StringdoublegetWidth()protected voidvoidsetItemClickEvent(String event) voidsetItemContextMenuEvent(String event) voidsetWidth(double width) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.GanttRenderer
addRow, buildDisplayScript, buildHtml, getJSVariableName
-
Field Details
-
TOOLTIP_ATTRIBUTE
- See Also:
-
PROXY_TOOLTIP_CLASS
- See Also:
-
PROXY_TOOLTIP_DATA_ATTRIBUTE
- See Also:
-
ROW_CLASS
- See Also:
-
HEADER_CLASS
- See Also:
-
HEADER_ROW_CLASS
- See Also:
-
EVENT_PARAM_ATTRIBUTE
- See Also:
-
HEADER_ROW_HEIGHT
public static final int HEADER_ROW_HEIGHT- See Also:
-
NO_CLICK_EVENT
- See Also:
-
DEFAULT_WIDTH
public static final double DEFAULT_WIDTH- See Also:
-
LOG
-
NULL_EL
protected static final org.apache.ecs.html.Div NULL_EL -
_helperFactory
-
_itemClickEvent
-
_itemContextMenuEvent
-
_width
protected double _width -
_eventsToValidate
-
_renderedRows
-
_gridRows
-
_gridCols
-
_cleaner
-
indicatorIconsMap
-
-
Constructor Details
-
GanttBaseRenderer
public GanttBaseRenderer()
-
-
Method Details
-
setWidth
public void setWidth(double width) - Specified by:
setWidthin interfaceGanttRenderer<R,B> - Parameters:
width- the width (percentage) to set to this renderer component
-
setItemClickEvent
- Specified by:
setItemClickEventin interfaceGanttRenderer<R,B> - Parameters:
event- the item click event to associate to the item HTML element
-
setItemContextMenuEvent
- Specified by:
setItemContextMenuEventin interfaceGanttRenderer<R,B> - Parameters:
event- the context menu event to associate to the item HTML element
-
addEventValidation
- Parameters:
view- theGanttViewfor which add the renderer events to the event fire-wall validation
-
buildContainerStyle
According to the current configuration, generate the CSS string to set to main html element generated from this renderer- Parameters:
config- theGanttViewConfigurationto consider- Returns:
- the generated CSS string
-
getHeaderHeight
- Parameters:
config- theGanttViewConfigurationto consider- Returns:
- the number of pixels to use as height for the whole header HTML element
-
getHelper
- Parameters:
type- the required brick type- Returns:
- the right implementation of
GanttHeaderRendererHelperaccording to the required type - Throws:
UnsupportedOperationException- if the given type is unknown
-
clearRenderedElements
protected void clearRenderedElements()reset the generated HTML elements to be ready to start a new rendering process -
buildGridRow
- Parameters:
view- the targetGanttView- Returns:
- a
Divthat represents a background grid row
-
buildGridCol
- Parameters:
view- the targetGanttView- Returns:
- a
Divthat represents a background grid column
-
getRowBaseStyle
- Parameters:
config- theGanttViewConfigurationto consider- Returns:
- the CSS string
-
addEvent
Allow the caller to add an event name to the list of events that should be validated by the event fire-wall- Parameters:
event- the event to add
-
getWidth
public double getWidth()- Specified by:
getWidthin interfaceGanttRenderer<R,B> - Returns:
- the width (percentage) to set to this renderer component
-
cleaner
-
initIndicatorsMap
protected void initIndicatorsMap()
-