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:
Nested Class Summary |
---|
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 |
Field Summary | |
---|---|
static String |
CLASSNAME
|
protected String |
currentLocale
|
protected int |
currentResolution
|
protected DateTimeService |
dts
|
protected boolean |
enabled
|
protected boolean |
immediate
|
protected boolean |
readonly
|
static int |
RESOLUTION_DAY
|
static int |
RESOLUTION_HOUR
|
static int |
RESOLUTION_MIN
|
static int |
RESOLUTION_MONTH
|
static int |
RESOLUTION_MSEC
|
static int |
RESOLUTION_SEC
|
static int |
RESOLUTION_YEAR
|
static String |
WEEK_NUMBERS
|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
VDateField()
|
Method Summary | |
---|---|
ApplicationConnection |
getClient()
|
Date |
getCurrentDate()
|
String |
getCurrentLocale()
|
int |
getCurrentResolution()
|
protected Date |
getDate()
Returns a copy of the current date. |
DateTimeService |
getDateTimeService()
|
String |
getId()
|
int |
getMilliseconds()
|
boolean |
isEnabled()
|
boolean |
isImmediate()
|
boolean |
isReadonly()
|
boolean |
isShowISOWeekNumbers()
Returns whether ISO 8601 week numbers should be shown in the date selector or not. |
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
|
void |
setCurrentDate(Date date)
|
void |
setCurrentLocale(String currentLocale)
|
void |
setCurrentResolution(int currentResolution)
|
protected void |
setDate(Date date)
Sets the current date for this VDateField. |
void |
setMilliseconds(int ms)
|
void |
updateFromUIDL(UIDL uidl,
ApplicationConnection client)
|
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
Field Detail |
---|
CLASSNAME
public static final String CLASSNAME
See Also:
immediate
protected boolean immediate
RESOLUTION_YEAR
public static final int RESOLUTION_YEAR
See Also:
RESOLUTION_MONTH
public static final int RESOLUTION_MONTH
See Also:
RESOLUTION_DAY
public static final int RESOLUTION_DAY
See Also:
RESOLUTION_HOUR
public static final int RESOLUTION_HOUR
See Also:
RESOLUTION_MIN
public static final int RESOLUTION_MIN
See Also:
RESOLUTION_SEC
public static final int RESOLUTION_SEC
See Also:
RESOLUTION_MSEC
public static final int RESOLUTION_MSEC
See Also:
WEEK_NUMBERS
public static final String WEEK_NUMBERS
See Also:
currentResolution
protected int currentResolution
currentLocale
protected String currentLocale
readonly
protected boolean readonly
enabled
protected boolean enabled
dts
protected DateTimeService dts
Constructor Detail |
---|
VDateField
public VDateField()
Method Detail |
---|
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event)
- Specified by:
onBrowserEvent
in interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in classcom.google.gwt.user.client.ui.Widget
updateFromUIDL
public void updateFromUIDL(UIDL uidl,
ApplicationConnection client)
- Specified by:
updateFromUIDL
in interfacePaintable
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:
- true if week number should be shown, false otherwise
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.
getDate
protected Date getDate()
- Returns:
- A copy of the current date
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.
setDate
protected void setDate(Date date)
- Parameters:
date
- The new date to use
Sets the current date for this VDateField.