public class TimeBoxBase extends Widget implements HasVisibleHandlers, HasPlaceholder, HasTemplate, HasShowInputs, HasSecondStep, HasModalBackdrop, HasMinuteStep, HasDisableFocus, HasDefaultTime, HasShowSeconds, HasMeridian, HasAlternateSize, IsSearchQuery, HasSize, HasId, IsResponsive, HasStyle, HasValue<Date>, HasEnabled, HasValueChangeHandlers<Date>, HasVisibility, HasTimeFormat
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledHasTemplate.TemplateHasDefaultTime.DefaultTimeDEBUG_ID_PREFIX| Constructor and Description |
|---|
TimeBoxBase() |
| Modifier and Type | Method and Description |
|---|---|
HandlerRegistration |
addHiddenHandler(HiddenHandler handler)
Adds a
HiddenEvent handler. |
HandlerRegistration |
addHideHandler(HideHandler handler)
Adds a
HideEvent handler. |
HandlerRegistration |
addShowHandler(ShowHandler handler)
Adds a
ShowEvent handler. |
HandlerRegistration |
addShownHandler(ShownHandler handler)
Adds a
ShownEvent handler. |
void |
addStyle(Style style)
Adds the provided style to the widget.
|
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<Date> handler) |
protected void |
configure()
configure this timepicker
|
protected void |
configure(Element e,
String template,
String defaultTime,
int minuteStep,
boolean showSeconds,
int secondStep,
boolean showMeridian,
boolean showInputs,
boolean disableFocus,
boolean modalBackdrop)
call jquery timepicker plugin in a element.
|
protected void |
configure(Widget w)
Configure the elements for a specific widget.
|
protected TextBox |
getBox()
Returns the internal instance of textbox element.
|
String |
getId()
Get ID
|
String |
getOriginalValue()
Get un-transformed text
|
String |
getPlaceholder()
Get a placeholder attribute (HTML5).
|
Date |
getValue() |
void |
hide()
Hides the widget if it was previously shown.
|
boolean |
isEnabled() |
boolean |
isReadOnly() |
boolean |
isSearchQuery()
is the element search-query style?
|
protected void |
onLoad() |
protected void |
onUnload()
This method is called immediately before a widget will be detached from the browser's document.
|
void |
reconfigure()
Removes any data in the time picker and reconfigures it
|
protected void |
removeDataIfExists(Element e)
Safely removes data
|
void |
removeStyle(Style style)
Removes the provided style from the widget.
|
void |
setAlternateSize(AlternateSize size) |
void |
setDefaultTime(HasDefaultTime.DefaultTime defaultTime)
Set the defaultTime of the component.
|
void |
setDefaultTime(String defaultTime)
Set the defaultTime of the component.
|
void |
setDisableFocus(boolean disableFocus)
Sets the disableFocus property component
|
void |
setEnabled(boolean enabled) |
void |
setFormat(String format)
Set the format in the component.
|
void |
setHideOn(Device device)
Sets the kind of device, this widget is hidden on.
|
void |
setId(String id)
Set ID
|
void |
setMeridian(boolean meridian)
Determine if the element will meridian in some events.
|
void |
setMinuteStep(int minuteStep)
Sets the minuteStep property on the component
|
void |
setModalBackdrop(boolean modalBackdrop)
Sets the hasModalBackdrop property component
|
void |
setPlaceholder(String placeholder)
Set a placeholder attribute (HTML5).
|
void |
setReadOnly(boolean readonly) |
void |
setSearchQuery(boolean searchQuery)
Set search-query style to the element.
|
void |
setSecondStep(int secondStep)
Sets the secondStep property on the component
|
void |
setShowInputs(boolean showInputs)
Sets the showInputs property component
|
void |
setShowOn(Device device)
Sets the kind of device, this widget is shown on.
|
void |
setShowSeconds(boolean showSeconds)
Sets the showSeconds property component
|
void |
setSize(int size)
Sets the widget's size.
|
void |
setStyle(Style style)
Replaces the widet's style with the provided one.
|
void |
setTemplate(HasTemplate.Template template)
Set the template of the timepicker.
|
void |
setTemplate(String template)
Set the template of the timepicker.
|
void |
setValue(Date value) |
void |
setValue(Date value,
boolean fireEvents) |
void |
show()
Shows the widget if it was previously hidden.
|
void |
toggle()
Toggles the view state of the widget.
|
protected void |
updateValue(Element e) |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfireEventpublic TimeBoxBase()
public boolean isReadOnly()
ValueBoxBase.isReadOnly()public void setReadOnly(boolean readonly)
ValueBoxBase.setReadOnly(boolean)protected TextBox getBox()
public String getOriginalValue()
protected void updateValue(Element e)
protected void configure()
protected void configure(Widget w)
w: - the widget to configure.protected void configure(Element e, String template, String defaultTime, int minuteStep, boolean showSeconds, int secondStep, boolean showMeridian, boolean showInputs, boolean disableFocus, boolean modalBackdrop)
e: - Element that will be transformed in a timepicker.public void show()
public void hide()
public void toggle()
HasVisibilityIt will be hidden if it was previously shown and shown if it was previously hidden.
protected void removeDataIfExists(Element e)
e: - Element that will be clearedpublic void reconfigure()
protected void onUnload()
public void setPlaceholder(String placeholder)
setPlaceholder in interface HasPlaceholderplaceholder - the String to show. Use a empty string or null to remove the attribute.public String getPlaceholder()
getPlaceholder in interface HasPlaceholderpublic void setTemplate(HasTemplate.Template template)
setTemplate in interface HasTemplatepublic void setTemplate(String template)
setTemplate in interface HasTemplatepublic void setMeridian(boolean meridian)
setMeridian in interface HasMeridianpublic void setAlternateSize(AlternateSize size)
setAlternateSize in interface HasAlternateSizepublic void setSize(int size)
setSize in interface HasSizesize - the size of the widget in the Bootstrap grid systempublic void removeStyle(Style style)
removeStyle in interface HasStylestyle - the style to be removed from the Widget.public void setShowOn(Device device)
The widget is not shown on any other device.
Only works if responsive design is turned on!
setShowOn in interface IsResponsiveConfigurator.hasResponsiveDesign(),
IsResponsive.setHideOn(Device)public void setHideOn(Device device)
The widget is not hidden on any other device.
Only works if responsive design is turned on!
setHideOn in interface IsResponsiveConfigurator.hasResponsiveDesign(),
IsResponsive.setShowOn(Device)public void setSearchQuery(boolean searchQuery)
setSearchQuery in interface IsSearchQuerysearchQuery - true:add search-query css-class/false:remove search-query css-classpublic boolean isSearchQuery()
isSearchQuery in interface IsSearchQuerypublic boolean isEnabled()
isEnabled in interface HasEnabledpublic void setEnabled(boolean enabled)
setEnabled in interface HasEnabledpublic void setShowSeconds(boolean showSeconds)
setShowSeconds in interface HasShowSecondspublic void setDisableFocus(boolean disableFocus)
setDisableFocus in interface HasDisableFocuspublic void setModalBackdrop(boolean modalBackdrop)
setModalBackdrop in interface HasModalBackdroppublic void setShowInputs(boolean showInputs)
setShowInputs in interface HasShowInputspublic void setMinuteStep(int minuteStep)
setMinuteStep in interface HasMinuteSteppublic void setSecondStep(int secondStep)
setSecondStep in interface HasSecondSteppublic void setDefaultTime(HasDefaultTime.DefaultTime defaultTime)
setDefaultTime in interface HasDefaultTimepublic void setDefaultTime(String defaultTime)
setDefaultTime in interface HasDefaultTimepublic HandlerRegistration addHideHandler(HideHandler handler)
HideEvent handler.addHideHandler in interface HasVisibleHandlershandler - the hide handlerHandlerRegistration used to remove this handlerpublic HandlerRegistration addHiddenHandler(HiddenHandler handler)
HiddenEvent handler.addHiddenHandler in interface HasVisibleHandlershandler - the hidden handlerHandlerRegistration used to remove this handlerpublic HandlerRegistration addShowHandler(ShowHandler handler)
ShowEvent handler.addShowHandler in interface HasVisibleHandlershandler - the show handlerHandlerRegistration used to remove this handlerpublic HandlerRegistration addShownHandler(ShownHandler handler)
ShownEvent handler.addShownHandler in interface HasVisibleHandlershandler - the shown handlerHandlerRegistration used to remove this handlerpublic HandlerRegistration addValueChangeHandler(ValueChangeHandler<Date> handler)
addValueChangeHandler in interface HasValueChangeHandlers<Date>public void setFormat(String format)
HasTimeFormatsetFormat in interface HasTimeFormatCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.