public class MaterialTimePicker extends gwt.material.design.client.base.MaterialWidget implements gwt.material.design.client.base.HasError, gwt.material.design.client.base.HasPlaceholder, gwt.material.design.client.base.HasOrientation, com.google.gwt.event.logical.shared.HasCloseHandlers<Date>, com.google.gwt.event.logical.shared.HasOpenHandlers<Date>, com.google.gwt.user.client.ui.HasValue<Date>, gwt.material.design.client.base.HasIcon
xmlns:ma='urn:import:gwt.material.design.addins.client'
<ma:timepicker.MaterialTimePicker placeholder="Time Arrival" />
gwt.material.design.client.base.MaterialWidget.Featurecom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
MaterialTimePicker() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<Date> handler) |
com.google.gwt.event.shared.HandlerRegistration |
addOpenHandler(com.google.gwt.event.logical.shared.OpenHandler<Date> handler) |
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Date> handler) |
protected void |
afterHide()
Called after the lolliclock event
afterHide. |
protected void |
afterShow()
Called after the lolliclock event
afterShow. |
protected void |
beforeShow()
Called after the lolliclock event
afterShow. |
void |
clear() |
void |
clearErrorOrSuccess() |
protected void |
clearTimePickerValue(com.google.gwt.dom.client.Element e) |
protected void |
fireCloseEvent() |
protected void |
fireOpenEvent() |
protected void |
fireValueChangeEvent() |
gwt.material.design.client.ui.MaterialIcon |
getIcon() |
gwt.material.design.client.constants.Orientation |
getOrientation() |
String |
getPlaceholder() |
String |
getTime() |
protected String |
getTime(com.google.gwt.dom.client.Element e) |
Date |
getValue() |
void |
initTimePicker() |
protected void |
initTimePicker(String clockId,
com.google.gwt.dom.client.Element e,
String orientation,
boolean autoClose,
boolean hour24) |
boolean |
isAutoClose() |
boolean |
isHour24()
False (default) change to 24 hours system.
|
boolean |
isIconPrefix() |
protected void |
onLoad() |
void |
reset()
Side effects:
Resets the time to now
Clears erros/success message
|
void |
setAutoClose(boolean autoClose) |
void |
setEnabled(boolean enabled) |
void |
setError(String error) |
void |
setHelperText(String helperText) |
void |
setHour24(boolean hour24) |
void |
setIconColor(String iconColor) |
void |
setIconFontSize(double size,
com.google.gwt.dom.client.Style.Unit unit) |
void |
setIconPosition(gwt.material.design.client.constants.IconPosition position) |
void |
setIconPrefix(boolean prefix) |
void |
setIconSize(gwt.material.design.client.constants.IconSize size) |
void |
setIconType(gwt.material.design.client.constants.IconType iconType) |
void |
setOrientation(gwt.material.design.client.constants.Orientation orientation) |
void |
setPlaceholder(String placeholder) |
void |
setSuccess(String success) |
void |
setValue(Date time) |
void |
setValue(Date time,
boolean fireEvents) |
protected void |
setValue(com.google.gwt.dom.client.Element e,
String time) |
add, add, clearActiveClass, enableFeature, getBackgroundColor, getCenterOn, getCenterOnMixin, getCircleMixin, getColorsMixin, getDataAttribute, getDepth, getEnabledMixin, getFlexboxMixin, getFloat, getFloatMixin, getFocusableMixin, getFontSize, getFontSizeMixin, getFontWeight, getFontWeightMixin, getGridMixin, getHideOn, getHideOnMixin, getHoverableMixin, getId, getIdMixin, getInitialClasses, getOpacity, getScrollspy, getScrollspyMixin, getSeparatorMixin, getShadow, getShadowMixin, getShowOn, getShowOnMixin, getTabIndex, getTextAlign, getTextAlignMixin, getTextColor, getTooltip, getTooltipDelayMs, getTooltipMixin, getTooltipPosition, getTruncateMixin, getWaves, getWavesMixin, getWidth, getWidth, insert, insert, isCircle, isEnabled, isFeatureEnabled, isHoverable, isSeparator, setAccessKey, setBackgroundColor, setBottom, setCenterOn, setCircle, setDataAttribute, setDepth, setDisplay, setFlex, setFlexAlignContent, setFlexAlignItems, setFlexAlignSelf, setFlexBasis, setFlexDirection, setFlexGrow, setFlexJustifyContent, setFlexOrder, setFlexShrink, setFlexWrap, setFloat, setFocus, setFontSize, setFontSize, setFontWeight, setGrid, setGwtDisplay, setHideOn, setHoverable, setId, setInitialClasses, setLayoutPosition, setLeft, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setOffset, setOpacity, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setRight, setScrollspy, setSeparator, setShadow, setShowOn, setTabIndex, setTextAlign, setTextColor, setTooltip, setTooltipDelayMs, setTooltipPosition, setTop, setTruncate, setVisibility, setWaves, stopTouchStartEvent, stopTouchStartEventadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, remove, removeadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic MaterialTimePicker()
protected void onLoad()
onLoad in class gwt.material.design.client.base.MaterialWidgetpublic void reset()
public boolean isAutoClose()
public void setAutoClose(boolean autoClose)
public boolean isHour24()
false in case 12 hours mode is set;
true otherwise.public void setHour24(boolean hour24)
hour24 - public String getPlaceholder()
getPlaceholder in interface gwt.material.design.client.base.HasPlaceholderpublic void setPlaceholder(String placeholder)
setPlaceholder in interface gwt.material.design.client.base.HasPlaceholderplaceholder - The placeholder text to set.public gwt.material.design.client.constants.Orientation getOrientation()
getOrientation in interface gwt.material.design.client.base.HasOrientationpublic void setOrientation(gwt.material.design.client.constants.Orientation orientation)
setOrientation in interface gwt.material.design.client.base.HasOrientationorientation - The orientation to set: Can be Horizontal or Vertical.public void setError(String error)
setError in interface gwt.material.design.client.base.HasErrorpublic void setSuccess(String success)
setSuccess in interface gwt.material.design.client.base.HasErrorpublic void setHelperText(String helperText)
setHelperText in interface gwt.material.design.client.base.HasErrorpublic void clearErrorOrSuccess()
clearErrorOrSuccess in interface gwt.material.design.client.base.HasErrorpublic void initTimePicker()
protected void initTimePicker(String clockId, com.google.gwt.dom.client.Element e, String orientation, boolean autoClose, boolean hour24)
clockId - The clock id for the lolliclock.e - The HTML element serving as container for textual content.orientation - The initial orientation.autoClose - Autoclose true or falsehour24 - Set this false otherwise.protected void beforeShow()
afterShow.protected void afterShow()
afterShow.protected void afterHide()
afterHide.time - The time given by lolliclock in 12-hours hh:mm aa
format.public void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledsetEnabled in class gwt.material.design.client.base.MaterialWidgetpublic com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<Date> handler)
addCloseHandler in interface com.google.gwt.event.logical.shared.HasCloseHandlers<Date>public com.google.gwt.event.shared.HandlerRegistration addOpenHandler(com.google.gwt.event.logical.shared.OpenHandler<Date> handler)
addOpenHandler in interface com.google.gwt.event.logical.shared.HasOpenHandlers<Date>protected void fireCloseEvent()
protected void fireOpenEvent()
protected void fireValueChangeEvent()
public void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetsclear in class com.google.gwt.user.client.ui.Panelprotected void clearTimePickerValue(com.google.gwt.dom.client.Element e)
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Date> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<Date>public void setValue(Date time, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<Date>public gwt.material.design.client.ui.MaterialIcon getIcon()
getIcon in interface gwt.material.design.client.base.HasIconpublic void setIconType(gwt.material.design.client.constants.IconType iconType)
setIconType in interface gwt.material.design.client.base.HasIconpublic void setIconPosition(gwt.material.design.client.constants.IconPosition position)
setIconPosition in interface gwt.material.design.client.base.HasIconpublic void setIconSize(gwt.material.design.client.constants.IconSize size)
setIconSize in interface gwt.material.design.client.base.HasIconpublic void setIconFontSize(double size, com.google.gwt.dom.client.Style.Unit unit)
setIconFontSize in interface gwt.material.design.client.base.HasIconpublic void setIconColor(String iconColor)
setIconColor in interface gwt.material.design.client.base.HasIconpublic void setIconPrefix(boolean prefix)
setIconPrefix in interface gwt.material.design.client.base.HasIconpublic boolean isIconPrefix()
isIconPrefix in interface gwt.material.design.client.base.HasIconCopyright © 2016. All rights reserved.