public class VDateField extends com.google.gwt.user.client.ui.FlowPanel implements Field, com.google.gwt.user.client.ui.HasEnabled
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
static String |
CLASSNAME |
ApplicationConnection |
client
For internal use only.
|
protected String |
currentLocale |
protected Resolution |
currentResolution |
DateTimeService |
dts
For internal use only.
|
protected boolean |
enabled |
boolean |
immediate
For internal use only.
|
String |
paintableId
For internal use only.
|
protected boolean |
readonly |
static Resolution |
RESOLUTION_DAY
Deprecated.
|
static Resolution |
RESOLUTION_HOUR
Deprecated.
|
static Resolution |
RESOLUTION_MIN
Deprecated.
|
static Resolution |
RESOLUTION_MONTH
Deprecated.
|
static Resolution |
RESOLUTION_SEC
Deprecated.
|
static Resolution |
RESOLUTION_YEAR
Deprecated.
|
protected boolean |
showISOWeekNumbers |
Constructor and Description |
---|
VDateField() |
Modifier and Type | Method and Description |
---|---|
ApplicationConnection |
getClient() |
Date |
getCurrentDate() |
String |
getCurrentLocale() |
Resolution |
getCurrentResolution() |
Date |
getDate()
Returns a copy of the current date.
|
DateTimeService |
getDateTimeService() |
String |
getId() |
int |
getMilliseconds() |
static double |
getTime(int y,
int m,
int d,
int h,
int mi,
int s,
int ms)
We need this redundant native function because Java's Date object doesn't
have a setMilliseconds method.
|
boolean |
isEnabled() |
boolean |
isImmediate() |
boolean |
isReadonly() |
boolean |
isShowISOWeekNumbers()
Returns whether ISO 8601 week numbers should be shown in the date
selector or not.
|
static String |
resolutionToString(Resolution res)
For internal use only.
|
void |
setCurrentDate(Date date) |
void |
setCurrentLocale(String currentLocale) |
void |
setCurrentResolution(Resolution currentResolution) |
protected void |
setDate(Date date)
Sets the current date for this VDateField.
|
void |
setEnabled(boolean enabled) |
void |
setImmediate(boolean immediate) |
void |
setMilliseconds(int ms) |
void |
setReadonly(boolean readonly) |
void |
setShowISOWeekNumbers(boolean showISOWeekNumbers) |
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, 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, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex, remove
forEach, spliterator
public static final String CLASSNAME
public String paintableId
public ApplicationConnection client
public boolean immediate
@Deprecated public static final Resolution RESOLUTION_YEAR
@Deprecated public static final Resolution RESOLUTION_MONTH
@Deprecated public static final Resolution RESOLUTION_DAY
@Deprecated public static final Resolution RESOLUTION_HOUR
@Deprecated public static final Resolution RESOLUTION_MIN
@Deprecated public static final Resolution RESOLUTION_SEC
protected Resolution currentResolution
protected String currentLocale
protected boolean readonly
protected boolean enabled
public DateTimeService dts
protected boolean showISOWeekNumbers
public static String resolutionToString(Resolution res)
public static double getTime(int y, int m, int d, int h, int mi, int s, int ms)
For internal use only. May be removed or replaced in the future.
public int getMilliseconds()
public void setMilliseconds(int ms)
public Resolution getCurrentResolution()
public void setCurrentResolution(Resolution currentResolution)
public String getCurrentLocale()
public void setCurrentLocale(String currentLocale)
public Date getCurrentDate()
public void setCurrentDate(Date date)
public boolean isImmediate()
public void setImmediate(boolean immediate)
public boolean isReadonly()
public void setReadonly(boolean readonly)
public boolean isEnabled()
isEnabled
in interface com.google.gwt.user.client.ui.HasEnabled
public void setEnabled(boolean enabled)
setEnabled
in interface com.google.gwt.user.client.ui.HasEnabled
public DateTimeService getDateTimeService()
public String getId()
public ApplicationConnection getClient()
public boolean isShowISOWeekNumbers()
public void setShowISOWeekNumbers(boolean showISOWeekNumbers)
public Date getDate()
setDate(Date)
to change
the current date.
For internal use only. May be removed or replaced in the future.
protected void setDate(Date date)
date
- The new date to useCopyright © 2019 Vaadin Ltd. All rights reserved.