public class DateBoxAppended extends AppendButton implements HasValue<Date>, HasDateFormat, HasIcon, HasValueChangeHandlers<Date>, HasVisibility, HasChangeHandlers, HasVisibleHandlers, HasAllDatePickerHandlers, HasAlternateSize, IsEditor<TakesValueEditor<Date>>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasStartView.ViewMode
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_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, 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 DateBoxAppended()
public void setAlternateSize(AlternateSize size)
setAlternateSize
in interface HasAlternateSize
public void setAlignment(ValueBoxBase.TextAlignment align)
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Date> dateValueChangeHandler)
addValueChangeHandler
in interface HasValueChangeHandlers<Date>
public void setFormat(String format)
setFormat
in interface HasDateFormat
public void setBaseIcon(BaseIconType type)
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)
It sets css class name to <i> tag. You can set any icons style.
setCustomIconStyle
in interface HasIcon
public void setIconPosition(IconPosition position)
setIconPosition
in interface HasIcon
position
- icon's positionpublic void setAutoClose(boolean autoclose)
setAutoClose
in interface HasAutoclose
public void setEndDate(String date)
setEndDate
in interface HasEndDate
public void setEndDate_(Date date)
setEndDate_
in interface HasEndDate
public void setLanguage(String language)
setLanguage
in interface HasLanguage
public void setStartDate(String date)
setStartDate
in interface HasStartDate
public void setStartDate_(Date date)
setStartDate_
in interface HasStartDate
public void setStartView(HasStartView.ViewMode mode)
setStartView
in interface HasStartView
public void setStartView(String mode)
setStartView
in interface HasStartView
public void setWeekStart(int start)
setWeekStart
in interface HasWeekStart
public TakesValueEditor<Date> asEditor()
asEditor
in interface IsEditor<TakesValueEditor<Date>>
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 handlerpublic HandlerRegistration addChangeHandler(ChangeHandler handler)
addChangeHandler
in interface HasChangeHandlers
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 boolean isReadOnly()
ValueBoxBase.isReadOnly()
public void setReadOnly(boolean readonly)
ValueBoxBase.setReadOnly(boolean)
Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.