public class DatePickerMonth extends Object implements org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>, HasSelectSupport<org.dominokit.domino.ui.datepicker.DatePickerElement>, HasValue<DatePickerMonth,Date>, DatePickerElement.SelectionHandler, org.gwtproject.editor.client.TakesValue<Date>
DatePickerIsElement,
DatePicker,
HasSelectSupport,
HasValue,
DatePickerElement.SelectionHandler,
TakesValue| Modifier and Type | Class and Description |
|---|---|
protected static interface |
DatePickerMonth.InternalHandler |
| Constructor and Description |
|---|
DatePickerMonth(elemental2.core.JsDate date,
org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dateTimeFormatInfo,
DatePickerMonth.InternalHandler daySelectionHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDayClickHandler(org.dominokit.domino.ui.datepicker.DatePickerMonth.DayClickHandler dayClickHandler)
Adds a day click handler
|
void |
addDaySelectionHandler(org.dominokit.domino.ui.datepicker.DatePickerMonth.DaySelectionHandler daySelectionHandler)
Adds a day selection handler
|
void |
clearDayClickHandlers()
Clears all the day click handlers
|
void |
clearDaySelectionHandlers()
Clears all the day selection handlers
|
static DatePickerMonth |
create(elemental2.core.JsDate date,
org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dateTimeFormatInfo,
DatePickerMonth.InternalHandler daySelectionHandler)
Creates month element passing the current date and date time format along with a handler for
selecting a day
|
elemental2.dom.HTMLDivElement |
element() |
org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo |
getDateTimeFormatInfo() |
List<org.dominokit.domino.ui.datepicker.DatePickerMonth.DayClickHandler> |
getDayClickHandlers() |
List<org.dominokit.domino.ui.datepicker.DatePickerMonth.DaySelectionHandler> |
getDaySelectionHandlers() |
org.dominokit.domino.ui.datepicker.DatePickerElement |
getSelectedItem() |
Date |
getValue() |
void |
init()
Initialize the element by creating the content elements and update it with the provided date
|
void |
onElementClick(org.dominokit.domino.ui.datepicker.DatePickerElement datePickerElement)
A method that will be called when the element is clicked
|
void |
removeDayClickHandler(org.dominokit.domino.ui.datepicker.DatePickerMonth.DayClickHandler dayClickHandler)
Removes a day click handler
|
void |
removeDaySelectionHandler(org.dominokit.domino.ui.datepicker.DatePickerMonth.DaySelectionHandler daySelectionHandler)
Remove a day selection handler
|
void |
selectElement(org.dominokit.domino.ui.datepicker.DatePickerElement datePickerElement)
Will be called when selecting the item
|
void |
setBackground(Color background)
Sets the background of this month
|
void |
setDateTimeFormatInfo(org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dateTimeFormatInfo)
Sets the date time format
|
void |
setValue(Date value) |
DatePickerMonth |
value(Date value) |
DatePickerMonth |
value(Date value,
boolean silent) |
public DatePickerMonth(elemental2.core.JsDate date,
org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dateTimeFormatInfo,
DatePickerMonth.InternalHandler daySelectionHandler)
public void init()
public static DatePickerMonth create(elemental2.core.JsDate date, org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dateTimeFormatInfo, DatePickerMonth.InternalHandler daySelectionHandler)
date - the current datedateTimeFormatInfo - the DateTimeFormatInfodaySelectionHandler - the day selection handler to be called when selecting the daypublic void addDaySelectionHandler(org.dominokit.domino.ui.datepicker.DatePickerMonth.DaySelectionHandler daySelectionHandler)
daySelectionHandler - A DaySelectionHandler to be called when selecting the daypublic void removeDaySelectionHandler(org.dominokit.domino.ui.datepicker.DatePickerMonth.DaySelectionHandler daySelectionHandler)
daySelectionHandler - A DaySelectionHandler to removepublic List<org.dominokit.domino.ui.datepicker.DatePickerMonth.DaySelectionHandler> getDaySelectionHandlers()
public void clearDaySelectionHandlers()
public void addDayClickHandler(org.dominokit.domino.ui.datepicker.DatePickerMonth.DayClickHandler dayClickHandler)
dayClickHandler - A DayClickHandler to addpublic void removeDayClickHandler(org.dominokit.domino.ui.datepicker.DatePickerMonth.DayClickHandler dayClickHandler)
dayClickHandler - A DayClickHandler to removepublic List<org.dominokit.domino.ui.datepicker.DatePickerMonth.DayClickHandler> getDayClickHandlers()
public void clearDayClickHandlers()
public elemental2.dom.HTMLDivElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>public org.dominokit.domino.ui.datepicker.DatePickerElement getSelectedItem()
getSelectedItem in interface HasSelectSupport<org.dominokit.domino.ui.datepicker.DatePickerElement>public DatePickerMonth value(Date value)
value in interface HasValue<DatePickerMonth,Date>value - V to set as a value of the componentpublic DatePickerMonth value(Date value, boolean silent)
value in interface HasValue<DatePickerMonth,Date>value - V to set as a value of the componentsilent - boolean if true set the value without triggering change handlerspublic Date getValue()
getValue in interface org.gwtproject.editor.client.TakesValue<Date>public void setValue(Date value)
setValue in interface org.gwtproject.editor.client.TakesValue<Date>public void selectElement(org.dominokit.domino.ui.datepicker.DatePickerElement datePickerElement)
selectElement in interface DatePickerElement.SelectionHandlerdatePickerElement - the selected DatePickerElementpublic void onElementClick(org.dominokit.domino.ui.datepicker.DatePickerElement datePickerElement)
onElementClick in interface DatePickerElement.SelectionHandlerdatePickerElement - the clicked DatePickerElementpublic void setDateTimeFormatInfo(org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dateTimeFormatInfo)
dateTimeFormatInfo - A new DateTimeFormatInfopublic org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo getDateTimeFormatInfo()
DateTimeFormatInfoCopyright © 2019–2022 Dominokit. All rights reserved.