com.vaadin.terminal.gwt.client.ui
Class VDateField
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.FlowPanel
com.vaadin.terminal.gwt.client.ui.VDateField
- All Implemented Interfaces:
- com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.InsertPanel, com.google.gwt.user.client.ui.InsertPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Paintable, Field, Iterable<com.google.gwt.user.client.ui.Widget>
- Direct Known Subclasses:
- VDateFieldCalendar, VTextualDate
public class VDateField
- extends com.google.gwt.user.client.ui.FlowPanel
- implements Paintable, Field
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel |
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget |
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
Methods inherited from class com.google.gwt.user.client.ui.FlowPanel |
add, clear, insert, insert |
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget |
add |
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
getWidget, getWidgetCount, getWidgetIndex, remove |
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget |
getWidgetIndex |
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
getWidget, getWidgetCount, getWidgetIndex, remove |
CLASSNAME
public static final String CLASSNAME
- See Also:
- Constant Field Values
immediate
protected boolean immediate
RESOLUTION_YEAR
public static final int RESOLUTION_YEAR
- See Also:
- Constant Field Values
RESOLUTION_MONTH
public static final int RESOLUTION_MONTH
- See Also:
- Constant Field Values
RESOLUTION_DAY
public static final int RESOLUTION_DAY
- See Also:
- Constant Field Values
RESOLUTION_HOUR
public static final int RESOLUTION_HOUR
- See Also:
- Constant Field Values
RESOLUTION_MIN
public static final int RESOLUTION_MIN
- See Also:
- Constant Field Values
RESOLUTION_SEC
public static final int RESOLUTION_SEC
- See Also:
- Constant Field Values
RESOLUTION_MSEC
public static final int RESOLUTION_MSEC
- See Also:
- Constant Field Values
WEEK_NUMBERS
public static final String WEEK_NUMBERS
- See Also:
- Constant Field Values
currentResolution
protected int currentResolution
currentLocale
protected String currentLocale
readonly
protected boolean readonly
enabled
protected boolean enabled
dts
protected DateTimeService dts
VDateField
public VDateField()
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event)
- Specified by:
onBrowserEvent
in interface com.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in class com.google.gwt.user.client.ui.Widget
updateFromUIDL
public void updateFromUIDL(UIDL uidl,
ApplicationConnection client)
- Specified by:
updateFromUIDL
in interface Paintable
getMilliseconds
public int getMilliseconds()
setMilliseconds
public void setMilliseconds(int ms)
getCurrentResolution
public int getCurrentResolution()
setCurrentResolution
public void setCurrentResolution(int currentResolution)
getCurrentLocale
public String getCurrentLocale()
setCurrentLocale
public void setCurrentLocale(String currentLocale)
getCurrentDate
public Date getCurrentDate()
setCurrentDate
public void setCurrentDate(Date date)
isImmediate
public boolean isImmediate()
isReadonly
public boolean isReadonly()
isEnabled
public boolean isEnabled()
getDateTimeService
public DateTimeService getDateTimeService()
getId
public String getId()
getClient
public ApplicationConnection getClient()
isShowISOWeekNumbers
public boolean isShowISOWeekNumbers()
- Returns whether ISO 8601 week numbers should be shown in the date
selector or not. ISO 8601 defines that a week always starts with a Monday
so the week numbers are only shown if this is the case.
- Returns:
- true if week number should be shown, false otherwise
getDate
protected Date getDate()
- Returns a copy of the current date. Modifying the returned date will not
modify the value of this VDateField. Use
setDate(Date)
to change
the current date.
- Returns:
- A copy of the current date
setDate
protected void setDate(Date date)
- Sets the current date for this VDateField.
- Parameters:
date
- The new date to use
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.