public class TimePicker extends Object implements org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>
| Modifier and Type | Class and Description |
|---|---|
static interface |
TimePicker.TimeSelectionHandler
A function to implement handlers for time selection changes
|
| Constructor and Description |
|---|
TimePicker() |
TimePicker(org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dateTimeFormatInfo) |
public TimePicker()
public TimePicker(org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dateTimeFormatInfo)
dateTimeFormatInfo - DateTimeFormatInfo to format the timepublic static TimePicker create()
public static TimePicker create(org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dateTimeFormatInfo)
dateTimeFormatInfo - DateTimeFormatInfo to format the timepublic TimePicker showBorder()
public TimePicker setShowSeconds(boolean showSeconds)
showSeconds - boolean, true to show second picker and show seconds in the timepublic boolean isShowSeconds()
public TimePicker setColorScheme(ColorScheme colorScheme)
colorScheme - ColorScheme to color different picker clock elementspublic void setHour(int hour)
hour - int@Deprecated public void setminute(int minute)
setMinute(int)public void setMinute(int minute)
minute - intpublic void setSecond(int second)
second - intpublic TimePicker showNowButton()
public TimePicker hideNowButton()
public TimePicker showClearButton()
public TimePicker hideClearButton()
public TimePicker showCloseButton()
public TimePicker hideCloseButton()
public TimePicker addCloseHandler(PickerHandler closeHandler)
closeHandler - PickerHandler to be called when the picker is closedpublic TimePicker removeCloseHandler(PickerHandler closeHandler)
closeHandler - PickerHandler to be removedpublic List<PickerHandler> getCloseHandlers()
PickerHandlers that handles the close of the pickerpublic TimePicker addShowMinutesHandler(PickerHandler showMinutesHandler)
showMinutesHandler - PickerHandler to be called when the picker shows the minutes
panelpublic TimePicker removeShowMinutesHandler(PickerHandler showMinutesHandler)
showMinutesHandler - PickerHandler to be removedpublic List<PickerHandler> getShowMinutesHandlers()
PickerHandlers that handles the picker shows the minutes panelpublic TimePicker addShowHoursHandler(PickerHandler showHoursHandler)
showHoursHandler - PickerHandler to be called when the picker shows the hours
panelpublic TimePicker removeShowHoursHandler(PickerHandler showHoursHandler)
showHoursHandler - PickerHandler to be removedpublic List<PickerHandler> getShowHoursHandlers()
PickerHandlers that handles the picker shows the hours panelpublic TimePicker addClearHandler(PickerHandler clearHandler)
public TimePicker removeClearHandler(PickerHandler clearHandler)
clearHandler - PickerHandler to be removedpublic List<PickerHandler> getClearHandlers()
PickerHandlers that should be called when the picker is clearedpublic TimePicker addTimeSelectionHandler(TimePicker.TimeSelectionHandler timeSelectionHandler)
timeSelectionHandler - TimePicker.TimeSelectionHandlerpublic TimePicker removeTimeSelectionHandler(TimePicker.TimeSelectionHandler timeSelectionHandler)
timeSelectionHandler - TimePicker.TimeSelectionHandlerpublic List<TimePicker.TimeSelectionHandler> getTimeSelectionHandlers()
TimePicker.TimeSelectionHandlerspublic TimePicker clearTimeSelectionHandlers()
TimePicker.TimeSelectionHandlerspublic TimePicker todayButtonText(String text)
text - String text of the today buttonpublic TimePicker clearButtonText(String text)
text - String text of the clear buttonpublic TimePicker closeButtonText(String text)
text - String text of the close buttonpublic TimePicker fixedWidth()
public TimePicker fixedWidth(String width)
width - String css widthpublic DominoElement<elemental2.dom.HTMLDivElement> getHoursPanel()
HTMLDivElement that contains the hours selection elementspublic DominoElement<elemental2.dom.HTMLDivElement> getMinutesPanel()
HTMLDivElement that contains the minutes selection elementspublic DominoElement<elemental2.dom.HTMLDivElement> getPickerContentContainer()
HTMLDivElement main content containerpublic DominoElement<elemental2.dom.HTMLDivElement> getClockPanel()
HTMLDivElement that contains the current selected time valuespublic boolean isShowSwitchers()
public TimePicker setShowSwitchers(boolean showSwitchers)
showSwitchers - boolean, true to show elements to switch between hour/minutes selectionpublic TimePicker setClockStyle(ClockStyle clockStyle)
clockStyle - ClockStylepublic org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo getDateTimeFormatInfo()
DateTimeFormatInfo used to format the timepublic void setDateTimeFormatInfo(org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo dateTimeFormatInfo)
dateTimeFormatInfo - DateTimeFormatInfo to format the timepublic ColorScheme getColorScheme()
ColorSchemepublic String getFormattedTime()
public boolean isAutoSwitchMinutes()
public void setAutoSwitchMinutes(boolean autoSwitchMinutes)
autoSwitchMinutes - boolean, true to make selecting an hour automatically switch to
minutes selectionpublic boolean isAutoSwitchSeconds()
public void setAutoSwitchSeconds(boolean autoSwitchSeconds)
autoSwitchSeconds - boolean, true to make selecting a minute automatically switch to
seconds selectionpublic ModalDialog createModal(String title)
title - String titlepublic elemental2.dom.HTMLDivElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>Copyright © 2019–2022 Dominokit. All rights reserved.