public class TimeBoxAppended extends AppendButton implements HasValue<Date>, HasIcon, HasVisibility, HasVisibleHandlers, HasPlaceholder, HasTemplate, HasShowInputs, HasSecondStep, HasModalBackdrop, HasMinuteStep, HasDisableFocus, HasDefaultTime, HasShowSeconds, HasMeridian
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasTemplate.Template
HasDefaultTime.DefaultTime
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
TimeBoxAppended() |
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. |
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<Date> handler) |
String |
getPlaceholder()
Get a placeholder attribute (HTML5).
|
Date |
getValue() |
void |
hide()
Hides the widget if it was previously shown.
|
void |
setBaseIcon(BaseIconType type)
Sets the BaseType of the Icon.
|
void |
setCustomIconStyle(String customIconStyle)
Set custom icon style.
|
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 |
setIcon(IconType type)
Sets the Type of the Icon.
|
void |
setIconPosition(IconPosition position)
Set icon position , left or right
|
void |
setIconSize(IconSize size)
Sets the size of the icon.
|
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 |
setSecondStep(int secondStep)
Sets the secondStep property on the component
|
void |
setShowInputs(boolean showInputs)
Sets the showInputs property component
|
void |
setShowSeconds(boolean showSeconds)
Sets the showSeconds property component
|
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.
|
addStyle, getId, pullRight, removeStyle, setHideOn, setId, setPullRight, setShowOn, setStyle
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, 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, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
add
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex, remove
public TimeBoxAppended()
public void setDefaultTime(HasDefaultTime.DefaultTime defaultTime)
setDefaultTime
in interface HasDefaultTime
public void setDefaultTime(String defaultTime)
setDefaultTime
in interface HasDefaultTime
public void setDisableFocus(boolean disableFocus)
setDisableFocus
in interface HasDisableFocus
public void setMeridian(boolean meridian)
setMeridian
in interface HasMeridian
public void setMinuteStep(int minuteStep)
setMinuteStep
in interface HasMinuteStep
public void setModalBackdrop(boolean modalBackdrop)
setModalBackdrop
in interface HasModalBackdrop
public void setPlaceholder(String placeholder)
setPlaceholder
in interface HasPlaceholder
placeholder
- the String to show. Use a empty string or null to remove the attribute.public String getPlaceholder()
getPlaceholder
in interface HasPlaceholder
public void setSecondStep(int secondStep)
setSecondStep
in interface HasSecondStep
public void setShowInputs(boolean showInputs)
setShowInputs
in interface HasShowInputs
public void setShowSeconds(boolean showSeconds)
HasShowSeconds
setShowSeconds
in interface HasShowSeconds
public void setTemplate(HasTemplate.Template template)
setTemplate
in interface HasTemplate
public void setTemplate(String template)
setTemplate
in interface HasTemplate
public void setBaseIcon(BaseIconType type)
HasIcon
setBaseIcon
in interface HasIcon
public void setIconSize(IconSize size)
Default is DEFAULT.
setIconSize
in interface HasIcon
size
- the new size.public void setCustomIconStyle(String customIconStyle)
HasIcon
It sets css class name to <i> tag. You can set any icons style.
setCustomIconStyle
in interface HasIcon
public void setIconPosition(IconPosition position)
HasIcon
setIconPosition
in interface HasIcon
position
- icon's positionpublic HandlerRegistration addValueChangeHandler(ValueChangeHandler<Date> handler)
addValueChangeHandler
in interface HasValueChangeHandlers<Date>
public void show()
public void hide()
public void toggle()
It will be hidden if it was previously shown and shown if it was previously hidden.
public HandlerRegistration addHideHandler(HideHandler handler)
HideEvent
handler.addHideHandler
in interface HasVisibleHandlers
handler
- the hide handlerHandlerRegistration
used to remove this handlerpublic HandlerRegistration addHiddenHandler(HiddenHandler handler)
HiddenEvent
handler.addHiddenHandler
in interface HasVisibleHandlers
handler
- the hidden handlerHandlerRegistration
used to remove this handlerpublic HandlerRegistration addShowHandler(ShowHandler handler)
ShowEvent
handler.addShowHandler
in interface HasVisibleHandlers
handler
- the show handlerHandlerRegistration
used to remove this handlerpublic HandlerRegistration addShownHandler(ShownHandler handler)
ShownEvent
handler.addShownHandler
in interface HasVisibleHandlers
handler
- the shown handlerHandlerRegistration
used to remove this handlerCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.