public class HeaderLevel extends RefDataClass
Timeline
.id
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.
|
void |
setHeaderWidth(java.lang.Integer headerWidth)
If set, the width for each of the spans in this headerLevel.
|
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj) |
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
doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, 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
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 void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setHeaderWidth(java.lang.Integer headerWidth)
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
- . See String
. 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.
String
public void setUnit(TimeUnit unit)
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 Timeline