public class DateTimeBoxAppended extends AppendButton implements HasValue<Date>, HasDateFormat, HasIcon, HasValueChangeHandlers<Date>, HasVisibility, HasChangeHandlers, HasVisibleHandlers, HasAllDateTimePickerHandlers, HasAlternateSize, IsEditor<TakesValueEditor<Date>>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasViewMode.ViewMode
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
DateTimeBoxAppended() |
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() |
PickerPosition |
getPickerPosition() |
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 |
setDaysOfWeekDisabled(String value)
Disable days of week view.
|
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 |
setHighlightToday(boolean highlight) |
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 |
setMaxView(HasViewMode.ViewMode mode)
Set the Max ViewMode
|
void |
setMaxView(String mode)
Set the Max ViewMode
|
void |
setMinuteStep(int minutes) |
void |
setMinView(HasViewMode.ViewMode mode)
Set the Min ViewMode
|
void |
setMinView(String mode)
Set the Min ViewMode
|
void |
setPickerPosition(PickerPosition pickerPosition) |
void |
setReadOnly(boolean readonly) |
void |
setShowTodayButton(boolean show) |
void |
setStartDate_(Date date)
Set the min date in the component.
|
void |
setStartDate(String date)
Set the min date in the component.
|
void |
setStartView(HasViewMode.ViewMode mode)
Set the Start ViewMode
|
void |
setStartView(String mode)
Set the Start ViewMode
|
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 DateTimeBoxAppended()
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 setMinView(HasViewMode.ViewMode mode)
setMinView
in interface HasViewMode
mode
- ViewMode.{HOUR,DAY,MONTH,YEAR,DECADE}public void setMinView(String mode)
setMinView
in interface HasViewMode
mode
- One of (HOUR,DAY,MONTH,YEAR,DECADE), case-insensitivepublic void setMaxView(HasViewMode.ViewMode mode)
setMaxView
in interface HasViewMode
mode
- ViewMode.{HOUR,DAY,MONTH,YEAR,DECADE}public void setMaxView(String mode)
setMaxView
in interface HasViewMode
mode
- One of (HOUR,DAY,MONTH,YEAR,DECADE), case-insensitivepublic void setStartView(HasViewMode.ViewMode mode)
setStartView
in interface HasViewMode
mode
- ViewMode.{HOUR,DAY,MONTH,YEAR,DECADE}public void setStartView(String mode)
setStartView
in interface HasViewMode
mode
- One of (HOUR,DAY,MONTH,YEAR,DECADE), case-insensitivepublic 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)
public void setDaysOfWeekDisabled(String value)
HasDaysOfWeek
setDaysOfWeekDisabled
in interface HasDaysOfWeek
value
- Days of week which are disabled: "0,6"public void setMinuteStep(int minutes)
setMinuteStep
in interface HasMinutes
public void setShowTodayButton(boolean show)
setShowTodayButton
in interface HasToday
public void setHighlightToday(boolean highlight)
setHighlightToday
in interface HasToday
public void setPickerPosition(PickerPosition pickerPosition)
public PickerPosition getPickerPosition()
Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.