|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.github.gwtbootstrap.datepicker.client.ui.base.DateBoxBase
public class DateBoxBase
Base DatePicker component.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
Nested classes/interfaces inherited from interface com.github.gwtbootstrap.datepicker.client.ui.base.HasStartView |
---|
HasStartView.ViewMode |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
DateBoxBase()
|
Method Summary | |
---|---|
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. |
void |
addStyle(Style style)
Adds the provided style to the widget. |
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<Date> dateValueChangeHandler)
|
TakesValueEditor<Date> |
asEditor()
Retuen Editor |
protected void |
configure()
configure this datepicker. |
protected void |
configure(Element e)
call jquery datepicker 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-tranceform text |
String |
getPlaceholder()
Get a placeholder attribute (HTML5). |
Date |
getValue()
|
void |
hide()
Hides the widget if it was previously shown. |
boolean |
isSearchQuery()
is the element search-query style? |
void |
onChange()
dateChange event handler. |
void |
onHide()
|
protected void |
onLoad()
|
void |
onShow()
|
void |
reconfigure()
|
protected void |
removeDataIfExists(Element e)
|
void |
removeStyle(Style style)
Removes the provided style from the widget. |
void |
setAlternateSize(AlternateSize size)
|
void |
setAutoClose(boolean autoclose)
Determine if the element will autoclose in some events. |
void |
setEndDate_(Date endDate)
Set the max date in the component. |
void |
setEndDate(String endDate)
Set the max date in the component. |
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 |
setLanguage(String language)
Setup the language of the component. |
void |
setPlaceholder(String placeholder)
Set a placeholder attribute (HTML5). |
void |
setSearchQuery(boolean searchQuery)
Set search-query style to the element. |
void |
setShowOn(Device device)
Sets the kind of device, this widget is shown on. |
void |
setSize(int size)
Sets the widget's size. |
void |
setStartDate_(Date startDate)
Set the min date in the component. |
void |
setStartDate(String startDate)
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 |
setStyle(Style style)
Replaces the widet's style with the provided one. |
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. |
protected void |
updateValue(Element e)
|
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
public DateBoxBase()
Method Detail |
---|
public void setFormat(String format)
setFormat
in interface HasDateFormat
public void setLanguage(String language)
HasLanguage
setLanguage
in interface HasLanguage
protected TextBox getBox()
public Date getValue()
getValue
in interface TakesValue<Date>
getValue
in interface HasValue<Date>
public String getOriginalValue()
public void setValue(Date value)
setValue
in interface TakesValue<Date>
setValue
in interface HasValue<Date>
public void setValue(Date value, boolean fireEvents)
setValue
in interface HasValue<Date>
protected void updateValue(Element e)
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Date> dateValueChangeHandler)
addValueChangeHandler
in interface HasValueChangeHandlers<Date>
protected void onLoad()
onLoad
in class Widget
protected void configure(Widget w)
w:
- the widget to configure.public void onChange()
public void onShow()
public void onHide()
public void reconfigure()
protected void configure()
protected void removeDataIfExists(Element e)
protected void configure(Element e)
e:
- Element that will be transformed in a datepicker.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 handler
HandlerRegistration
used to remove this handlerpublic HandlerRegistration addHiddenHandler(HiddenHandler handler)
HiddenEvent
handler.
addHiddenHandler
in interface HasVisibleHandlers
handler
- the hidden handler
HandlerRegistration
used to remove this handlerpublic HandlerRegistration addShowHandler(ShowHandler handler)
ShowEvent
handler.
addShowHandler
in interface HasVisibleHandlers
handler
- the show handler
HandlerRegistration
used to remove this handlerpublic HandlerRegistration addShownHandler(ShownHandler handler)
ShownEvent
handler.
addShownHandler
in interface HasVisibleHandlers
handler
- the shown handler
HandlerRegistration
used to remove this handlerpublic void setWeekStart(int start)
setWeekStart
in interface HasWeekStart
public void setStartDate(String startDate)
setStartDate
in interface HasStartDate
public void setStartDate_(Date startDate)
setStartDate_
in interface HasStartDate
public void setEndDate(String endDate)
setEndDate
in interface HasEndDate
public void setEndDate_(Date endDate)
setEndDate_
in interface HasEndDate
public void setAutoClose(boolean autoclose)
setAutoClose
in interface HasAutoclose
public void setStartView(HasStartView.ViewMode mode)
setStartView
in interface HasStartView
public void setStartView(String mode)
setStartView
in interface HasStartView
public TakesValueEditor<Date> asEditor()
asEditor
in interface IsEditor<TakesValueEditor<Date>>
public HandlerRegistration addChangeHandler(ChangeHandler handler)
addChangeHandler
in interface HasChangeHandlers
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 setSearchQuery(boolean searchQuery)
setSearchQuery
in interface IsSearchQuery
searchQuery
- true:add search-query css-class/false:remove search-query css-classpublic boolean isSearchQuery()
isSearchQuery
in interface IsSearchQuery
public void setAlternateSize(AlternateSize size)
setAlternateSize
in interface HasAlternateSize
public void setSize(int size)
setSize
in interface HasSize
size
- the size of the widget in the Bootstrap grid systempublic String getId()
getId
in interface HasId
public void setId(String id)
setId
in interface HasId
id
- set idpublic void setShowOn(Device device)
The widget is not shown on any other device.
Only works if responsive design is turned on!
setShowOn
in interface IsResponsive
Configurator.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 IsResponsive
Configurator.hasResponsiveDesign()
,
IsResponsive.setShowOn(Device)
public void setStyle(Style style)
setStyle
in interface HasStyle
style
- the style to be applied to the Widget.public void addStyle(Style style)
addStyle
in interface HasStyle
style
- the style to be added to the Widget.public void removeStyle(Style style)
removeStyle
in interface HasStyle
style
- the style to be removed from the Widget.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |