public class HeaderLevel extends RefDataClass
Timeline
.id
factoryCreated, factoryProperties
Constructor and Description |
---|
HeaderLevel() |
HeaderLevel(JavaScriptObject jsObj) |
HeaderLevel(TimeUnit unit) |
HeaderLevel(TimeUnit unit,
java.lang.String[] titles) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getHeaderWidth()
If set, the width for each of the spans in this headerLevel.
|
static HeaderLevel |
getOrCreateRef(JavaScriptObject jsObj) |
java.lang.String[] |
getTitles()
Optional sparse array of titles for the spans on this headerLevel.
|
TimeUnit |
getUnit()
Unit of time shown at this level of header.
|
void |
setHeaderWidth(java.lang.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.
|
void |
setTitles(java.lang.String... titles)
Optional sparse array of titles for the spans on this headerLevel.
|
void |
setUnit(TimeUnit unit)
Unit of time shown at this level of header.
|
getRef, getRef, internalSetID
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, 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
public HeaderLevel()
public HeaderLevel(JavaScriptObject jsObj)
public HeaderLevel(TimeUnit unit)
public HeaderLevel(TimeUnit unit, java.lang.String[] titles)
public static HeaderLevel getOrCreateRef(JavaScriptObject jsObj)
public void setHeaderWidth(java.lang.Integer headerWidth)
headerWidth
- Default value is nullpublic java.lang.Integer getHeaderWidth()
public void setTitles(java.lang.String... titles)
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.
titles
- Default value is nullpublic java.lang.String[] getTitles()
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.
public void setUnit(TimeUnit unit)
unit
- Default value is nullpublic TimeUnit getUnit()
public void setTitleFormatter(HeaderLevelTitleCustomizer customizer)
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 Timelinepublic void setHoverCustomizer(HeaderLevelHoverCustomizer customizer)
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