public abstract class DatePickerBaseAppearance extends Object implements DatePicker.DatePickerAppearance
Modifier and Type | Class and Description |
---|---|
static interface |
DatePickerBaseAppearance.DatePickerResources |
static interface |
DatePickerBaseAppearance.DatePickerStyle |
Modifier and Type | Field and Description |
---|---|
protected DatePickerBaseAppearance.DatePickerResources |
resources |
protected DatePickerBaseAppearance.DatePickerStyle |
style |
Constructor and Description |
---|
DatePickerBaseAppearance(DatePickerBaseAppearance.DatePickerResources resources) |
Modifier and Type | Method and Description |
---|---|
String |
dateSelector() |
String |
daySelector()
Returns the selector that identifies the element representing a day.
|
<any> |
getDateCells(XElement parent) |
boolean |
isDisabled(Element cell) |
String |
leftMonthSelector()
Returns the selector that identifies the element representing the left
month arrow.
|
String |
leftYearSelector()
Returns the selector that identifies the element representing the left
year arrow (in the month / year picker).
|
String |
monthButtonSelector()
Returns the selector that identifies the element representing the month
button (for displaying the month / year picker).
|
String |
monthPickerCancelSelector()
Returns the selector that identifies the element representing the month
picker cancel button (in the month / year picker).
|
String |
monthPickerMonthSelector()
Returns the selector that identifies the elements representing the months
(in the month / year picker).
|
String |
monthPickerOkSelector()
Returns the selector that identifies the element representing the OK
button (in the month / year picker).
|
String |
monthPickerYearSelector()
Returns the selector that identifies the element representing the year
(in the month / year picker).
|
void |
onHtmlChange(Element cell,
SafeHtml html) |
void |
onMonthButtonHtmlChange(XElement parent,
SafeHtml html) |
void |
onMonthPickerSize(XElement monthPicker,
int width,
int height) |
void |
onMonthSelected(Element cell,
boolean select) |
void |
onUpdateDateStyle(Element cell,
DatePicker.DateState type,
boolean add) |
void |
onUpdateDayOfWeeks(XElement parent,
List<SafeHtml> days) |
void |
render(SafeHtmlBuilder sb)
Renders the appearance of a date picker as HTML into a
SafeHtmlBuilder , suitable for passing to
Element#setInnerSafeHtml(SafeHtml) on a container element. |
void |
renderMonthPicker(SafeHtmlBuilder sb,
DatePicker.DatePickerMessages messages,
String[] monthNames)
Renders the appearance of a month / year picker as HTML into a
SafeHtmlBuilder , suitable for passing to
Element#setInnerSafeHtml(SafeHtml) on a container element. |
String |
rightMonthSelector()
Returns the selector that identifies the element representing the right
month arrow.
|
String |
rightYearSelector()
Returns the selector that identifies the element representing the right
year arrow (in the month / year picker).
|
String |
todayButtonSelector()
Returns the selector that identifies the element representing the today
button.
|
protected final DatePickerBaseAppearance.DatePickerResources resources
protected final DatePickerBaseAppearance.DatePickerStyle style
public DatePickerBaseAppearance(DatePickerBaseAppearance.DatePickerResources resources)
public String dateSelector()
dateSelector
in interface DatePicker.DatePickerAppearance
public String daySelector()
DatePicker.DatePickerAppearance
daySelector
in interface DatePicker.DatePickerAppearance
public <any> getDateCells(XElement parent)
getDateCells
in interface DatePicker.DatePickerAppearance
public boolean isDisabled(Element cell)
isDisabled
in interface DatePicker.DatePickerAppearance
public String leftMonthSelector()
DatePicker.DatePickerAppearance
leftMonthSelector
in interface DatePicker.DatePickerAppearance
public String leftYearSelector()
DatePicker.DatePickerAppearance
leftYearSelector
in interface DatePicker.DatePickerAppearance
public String monthButtonSelector()
DatePicker.DatePickerAppearance
monthButtonSelector
in interface DatePicker.DatePickerAppearance
public String monthPickerCancelSelector()
DatePicker.DatePickerAppearance
monthPickerCancelSelector
in interface DatePicker.DatePickerAppearance
public String monthPickerMonthSelector()
DatePicker.DatePickerAppearance
monthPickerMonthSelector
in interface DatePicker.DatePickerAppearance
public String monthPickerOkSelector()
DatePicker.DatePickerAppearance
monthPickerOkSelector
in interface DatePicker.DatePickerAppearance
public String monthPickerYearSelector()
DatePicker.DatePickerAppearance
monthPickerYearSelector
in interface DatePicker.DatePickerAppearance
public void onMonthButtonHtmlChange(XElement parent, SafeHtml html)
onMonthButtonHtmlChange
in interface DatePicker.DatePickerAppearance
public void onMonthSelected(Element cell, boolean select)
onMonthSelected
in interface DatePicker.DatePickerAppearance
public void onHtmlChange(Element cell, SafeHtml html)
onHtmlChange
in interface DatePicker.DatePickerAppearance
public void onUpdateDateStyle(Element cell, DatePicker.DateState type, boolean add)
onUpdateDateStyle
in interface DatePicker.DatePickerAppearance
public void onUpdateDayOfWeeks(XElement parent, List<SafeHtml> days)
onUpdateDayOfWeeks
in interface DatePicker.DatePickerAppearance
public void render(SafeHtmlBuilder sb)
DatePicker.DatePickerAppearance
SafeHtmlBuilder
, suitable for passing to
Element#setInnerSafeHtml(SafeHtml)
on a container element.render
in interface DatePicker.DatePickerAppearance
sb
- receives the rendered appearancepublic void renderMonthPicker(SafeHtmlBuilder sb, DatePicker.DatePickerMessages messages, String[] monthNames)
DatePicker.DatePickerAppearance
SafeHtmlBuilder
, suitable for passing to
Element#setInnerSafeHtml(SafeHtml)
on a container element.renderMonthPicker
in interface DatePicker.DatePickerAppearance
sb
- receives the rendered appearancemessages
- the translatable messages (e.g. for ToolTips)monthNames
- the month namespublic String rightMonthSelector()
DatePicker.DatePickerAppearance
rightMonthSelector
in interface DatePicker.DatePickerAppearance
public String rightYearSelector()
DatePicker.DatePickerAppearance
rightYearSelector
in interface DatePicker.DatePickerAppearance
public String todayButtonSelector()
DatePicker.DatePickerAppearance
todayButtonSelector
in interface DatePicker.DatePickerAppearance
public void onMonthPickerSize(XElement monthPicker, int width, int height)
onMonthPickerSize
in interface DatePicker.DatePickerAppearance
Copyright © 2018. All rights reserved.