com.vaadin.terminal.gwt.client.ui.datefield
Class VDateField

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.FlowPanel
                      extended by com.vaadin.terminal.gwt.client.ui.datefield.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.HasVisibility, 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, 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 Field


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  ApplicationConnection client
           
protected  String currentLocale
           
protected  int currentResolution
           
protected  DateTimeService dts
           
protected  boolean enabled
           
protected  boolean immediate
           
protected  String paintableId
           
protected  boolean readonly
           
static int RESOLUTION_DAY
           
static int RESOLUTION_HOUR
           
static int RESOLUTION_MIN
           
static int RESOLUTION_MONTH
           
static int RESOLUTION_SEC
           
static int RESOLUTION_YEAR
           
protected  boolean showISOWeekNumbers
           
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()
           
protected static double getTime(int y, int m, int d, int h, int mi, int s, int ms)
           
 boolean isEnabled()
           
 boolean isImmediate()
           
 boolean isReadonly()
           
 boolean isShowISOWeekNumbers()
          Returns whether ISO 8601 week numbers should be shown in the date selector or not.
 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)
           
 
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, onBrowserEvent, 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, 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.user.client.ui.InsertPanel.ForIsWidget
add
 
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:
Constant Field Values

paintableId

protected String paintableId

client

protected ApplicationConnection client

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

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

showISOWeekNumbers

protected boolean showISOWeekNumbers
Constructor Detail

VDateField

public VDateField()
Method Detail

getTime

protected static double getTime(int y,
                                int m,
                                int d,
                                int h,
                                int mi,
                                int s,
                                int ms)

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.