public class DateBoxAppended extends AppendButton implements HasValue<Date>, HasDateFormat, HasIcon, HasValueChangeHandlers<Date>, HasVisibility, HasChangeHandlers, HasVisibleHandlers, HasAllDatePickerHandlers, HasAlternateSize, IsEditor<TakesValueEditor<Date>>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledHasStartView.ViewModeInsertPanel.ForIsWidgetHasWidgets.ForIsWidgetDEBUG_ID_PREFIX| Constructor and Description |
|---|
DateBoxAppended() |
| Modifier and Type | Method and Description |
|---|---|
HandlerRegistration |
addChangeHandler(ChangeHandler handler) |
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> dateValueChangeHandler) |
TakesValueEditor<Date> |
asEditor() |
Date |
getValue() |
void |
hide()
Hides the widget if it was previously shown.
|
boolean |
isReadOnly() |
void |
setAlignment(ValueBoxBase.TextAlignment align) |
void |
setAlternateSize(AlternateSize size) |
void |
setAutoClose(boolean autoclose)
Determine if the element will autoclose in some events.
|
void |
setBaseIcon(BaseIconType type)
Sets the BaseType of the Icon.
|
void |
setCustomIconStyle(String customIconStyle)
Set custom icon style.
|
void |
setEndDate_(Date date)
Set the max date in the component.
|
void |
setEndDate(String date)
Set the max date in the component.
|
void |
setFormat(String format)
Set the format in the component.
|
void |
setIcon(IconType type)
Sets the Type of the Icon.
|
void |
setIconPosition(IconPosition position)
Deprecated.
|
void |
setIconSize(IconSize size)
Sets the size of the icon.
|
void |
setLanguage(String language)
Setup the language of the component.
|
void |
setReadOnly(boolean readonly) |
void |
setStartDate_(Date date)
Set the min date in the component.
|
void |
setStartDate(String date)
Set the min date in the component.
|
void |
setStartView(HasStartView.ViewMode mode)
Set the view mode of the datepicker.
|
void |
setStartView(String mode)
Set the view mode of the datepicker.
|
void |
setValue(Date value) |
void |
setValue(Date value,
boolean fireEvents) |
void |
setWeekStart(int start)
Define the first day of week in the datepicker.
|
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, setStyleadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, 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, waitfireEventaddgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removepublic DateBoxAppended()
public void setAlternateSize(AlternateSize size)
setAlternateSize in interface HasAlternateSizepublic void setAlignment(ValueBoxBase.TextAlignment align)
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Date> dateValueChangeHandler)
addValueChangeHandler in interface HasValueChangeHandlers<Date>public void setFormat(String format)
setFormat in interface HasDateFormatpublic void setBaseIcon(BaseIconType type)
setBaseIcon in interface HasIconpublic void setIconSize(IconSize size)
Default is DEFAULT.
setIconSize in interface HasIconsize - the new size.public void setCustomIconStyle(String customIconStyle)
It sets css class name to <i> tag. You can set any icons style.
setCustomIconStyle in interface HasIconpublic void setIconPosition(IconPosition position)
setIconPosition in interface HasIconposition - icon's positionpublic void setAutoClose(boolean autoclose)
setAutoClose in interface HasAutoclosepublic void setEndDate(String date)
setEndDate in interface HasEndDatepublic void setEndDate_(Date date)
setEndDate_ in interface HasEndDatepublic void setLanguage(String language)
setLanguage in interface HasLanguagepublic void setStartDate(String date)
setStartDate in interface HasStartDatepublic void setStartDate_(Date date)
setStartDate_ in interface HasStartDatepublic void setStartView(HasStartView.ViewMode mode)
setStartView in interface HasStartViewpublic void setStartView(String mode)
setStartView in interface HasStartViewpublic void setWeekStart(int start)
setWeekStart in interface HasWeekStartpublic TakesValueEditor<Date> asEditor()
asEditor in interface IsEditor<TakesValueEditor<Date>>public 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 addChangeHandler(ChangeHandler handler)
addChangeHandler in interface HasChangeHandlerspublic 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 boolean isReadOnly()
ValueBoxBase.isReadOnly()public void setReadOnly(boolean readonly)
ValueBoxBase.setReadOnly(boolean)Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.