public class HeaderLevel extends RefDataClass
Timeline
.id
factoryCreated, factoryProperties
Constructor and Description |
---|
HeaderLevel() |
HeaderLevel(com.google.gwt.core.client.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(com.google.gwt.core.client.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.
|
HeaderLevel |
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.
|
HeaderLevel |
setTitles(java.lang.String... titles)
Optional sparse array of titles for the spans on this headerLevel.
|
HeaderLevel |
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(com.google.gwt.core.client.JavaScriptObject jsObj)
public HeaderLevel(TimeUnit unit)
public HeaderLevel(TimeUnit unit, java.lang.String[] titles)
public static HeaderLevel getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public HeaderLevel setHeaderWidth(java.lang.Integer headerWidth)
headerWidth
- New headerWidth value. Default value is nullHeaderLevel
instance, for chaining setter callspublic java.lang.Integer getHeaderWidth()
public HeaderLevel 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
- New titles value. Default value is nullHeaderLevel
instance, for chaining setter callspublic 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 HeaderLevel setUnit(TimeUnit unit)
unit
- New unit value. Default value is nullHeaderLevel
instance, for chaining setter callspublic 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