Class HeaderLevel
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.widgets.calendar.HeaderLevel
- All Implemented Interfaces:
HasHandlers
Defines one level of headers shown above the event area in a
Timeline
.-
Field Summary
Fields inherited from class com.smartgwt.client.core.RefDataClass
id
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
ConstructorDescriptionHeaderLevel
(JavaScriptObject jsObj) HeaderLevel
(TimeUnit unit) HeaderLevel
(TimeUnit unit, String[] titles) -
Method Summary
Modifier and TypeMethodDescriptionIf set, the width for each of the spans in this headerLevel.static HeaderLevel
getOrCreateRef
(JavaScriptObject jsObj) String[]
Optional sparse array of titles for the spans on this headerLevel.getUnit()
Unit of time shown at this level of header.setHeaderWidth
(Integer headerWidth) If set, the width for each of the spans in this headerLevel.void
setHoverCustomizer
(HeaderLevelHoverCustomizer customizer) Customize the Hover text for a given span in a HeaderLevel.void
setTitleFormatter
(HeaderLevelTitleCustomizer customizer) Customize the Title text for a given span in a HeaderLevel.Optional sparse array of titles for the spans on this headerLevel.Unit of time shown at this level of header.Methods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetID
Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
HeaderLevel
public HeaderLevel() -
HeaderLevel
-
HeaderLevel
-
HeaderLevel
-
-
Method Details
-
getOrCreateRef
-
setHeaderWidth
If set, the width for each of the spans in this headerLevel. Note that this setting only has an effect on the innermost headerLevel.- Parameters:
headerWidth
- New headerWidth value. Default value is null- Returns:
HeaderLevel
instance, for chaining setter calls
-
getHeaderWidth
If set, the width for each of the spans in this headerLevel. Note that this setting only has an effect on the innermost headerLevel.- Returns:
- Current headerWidth value. Default value is null
-
setTitles
Optional sparse array of titles for the spans on this headerLevel. If a given span in this headerLevel has a corresponding entry in this array, it will be used as the span's title.If not specified, default titles are generated (eg "Q1" for unit "quarter") and then passed into the
formatter function
, if one has been installed, for further customization.- Parameters:
titles
- New titles value. Default value is null- Returns:
HeaderLevel
instance, for chaining setter calls
-
getTitles
Optional sparse array of titles for the spans on this headerLevel. If a given span in this headerLevel has a corresponding entry in this array, it will be used as the span's title.If not specified, default titles are generated (eg "Q1" for unit "quarter") and then passed into the
formatter function
, if one has been installed, for further customization.- Returns:
- Current titles value. Default value is null
-
setUnit
Unit of time shown at this level of header.- Parameters:
unit
- New unit value. Default value is null- Returns:
HeaderLevel
instance, for chaining setter calls
-
getUnit
Unit of time shown at this level of header.- Returns:
- Current unit value. Default value is null
-
setTitleFormatter
Customize the Title text for a given span in a HeaderLevel.- Parameters:
headerLevel
- HeaderLevel a reference to this headerLevelstartDate
- Date the start of the date-range covered by this span in this levelendDate
- Date the end of the date-range covered by this span in this level - may be nulldefaultValue
- String the default title as generated by the Timelinecalendar
- Calendar a reference to the Calendar or Timeline
-
setHoverCustomizer
Customize the Hover text for a given span in a HeaderLevel.- Parameters:
headerLevel
- HeaderLevel a reference to this headerLevelstartDate
- Date the start of the date-range covered by this span in this levelendDate
- Date the end of the date-range covered by this span in this level - may be nulldefaultValue
- String the default hover text as generated by the TimelinecalendarView
- CalendarView a reference to the CalendarView the headerLevel is in
-