com.vaadin.client.ui
Class VDateField

java.lang.Object
  extended by FlowPanel
      extended by com.vaadin.client.ui.VDateField
All Implemented Interfaces:
Field
Direct Known Subclasses:
VDateFieldCalendar, VTextualDate

public class VDateField
extends FlowPanel
implements Field


Field Summary
static java.lang.String CLASSNAME
           
 ApplicationConnection client
          For internal use only.
protected  java.lang.String currentLocale
           
protected  com.vaadin.shared.ui.datefield.Resolution currentResolution
           
 DateTimeService dts
          For internal use only.
protected  boolean enabled
           
 boolean immediate
          For internal use only.
 java.lang.String paintableId
          For internal use only.
protected  boolean readonly
           
static com.vaadin.shared.ui.datefield.Resolution RESOLUTION_DAY
          Deprecated. 
static com.vaadin.shared.ui.datefield.Resolution RESOLUTION_HOUR
          Deprecated. 
static com.vaadin.shared.ui.datefield.Resolution RESOLUTION_MIN
          Deprecated. 
static com.vaadin.shared.ui.datefield.Resolution RESOLUTION_MONTH
          Deprecated. 
static com.vaadin.shared.ui.datefield.Resolution RESOLUTION_SEC
          Deprecated. 
static com.vaadin.shared.ui.datefield.Resolution RESOLUTION_YEAR
          Deprecated. 
protected  boolean showISOWeekNumbers
           
 
Constructor Summary
VDateField()
           
 
Method Summary
 ApplicationConnection getClient()
           
 java.util.Date getCurrentDate()
           
 java.lang.String getCurrentLocale()
           
 com.vaadin.shared.ui.datefield.Resolution getCurrentResolution()
           
 java.util.Date getDate()
          Returns a copy of the current date.
 DateTimeService getDateTimeService()
           
 java.lang.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 java.lang.String resolutionToString(com.vaadin.shared.ui.datefield.Resolution res)
          For internal use only.
 void setCurrentDate(java.util.Date date)
           
 void setCurrentLocale(java.lang.String currentLocale)
           
 void setCurrentResolution(com.vaadin.shared.ui.datefield.Resolution currentResolution)
           
protected  void setDate(java.util.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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values

paintableId

public java.lang.String paintableId
For internal use only. May be removed or replaced in the future.


client

public ApplicationConnection client
For internal use only. May be removed or replaced in the future.


immediate

public boolean immediate
For internal use only. May be removed or replaced in the future.


RESOLUTION_YEAR

@Deprecated
public static final com.vaadin.shared.ui.datefield.Resolution RESOLUTION_YEAR
Deprecated. 

RESOLUTION_MONTH

@Deprecated
public static final com.vaadin.shared.ui.datefield.Resolution RESOLUTION_MONTH
Deprecated. 

RESOLUTION_DAY

@Deprecated
public static final com.vaadin.shared.ui.datefield.Resolution RESOLUTION_DAY
Deprecated. 

RESOLUTION_HOUR

@Deprecated
public static final com.vaadin.shared.ui.datefield.Resolution RESOLUTION_HOUR
Deprecated. 

RESOLUTION_MIN

@Deprecated
public static final com.vaadin.shared.ui.datefield.Resolution RESOLUTION_MIN
Deprecated. 

RESOLUTION_SEC

@Deprecated
public static final com.vaadin.shared.ui.datefield.Resolution RESOLUTION_SEC
Deprecated. 

currentResolution

protected com.vaadin.shared.ui.datefield.Resolution currentResolution

currentLocale

protected java.lang.String currentLocale

readonly

protected boolean readonly

enabled

protected boolean enabled

dts

public DateTimeService dts
For internal use only. May be removed or replaced in the future.


showISOWeekNumbers

protected boolean showISOWeekNumbers
Constructor Detail

VDateField

public VDateField()
Method Detail

resolutionToString

public static java.lang.String resolutionToString(com.vaadin.shared.ui.datefield.Resolution res)
For internal use only. May be removed or replaced in the future.


getTime

public 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.

For internal use only. May be removed or replaced in the future.


getMilliseconds

public int getMilliseconds()

setMilliseconds

public void setMilliseconds(int ms)

getCurrentResolution

public com.vaadin.shared.ui.datefield.Resolution getCurrentResolution()

setCurrentResolution

public void setCurrentResolution(com.vaadin.shared.ui.datefield.Resolution currentResolution)

getCurrentLocale

public java.lang.String getCurrentLocale()

setCurrentLocale

public void setCurrentLocale(java.lang.String currentLocale)

getCurrentDate

public java.util.Date getCurrentDate()

setCurrentDate

public void setCurrentDate(java.util.Date date)

isImmediate

public boolean isImmediate()

setImmediate

public void setImmediate(boolean immediate)

isReadonly

public boolean isReadonly()

setReadonly

public void setReadonly(boolean readonly)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getDateTimeService

public DateTimeService getDateTimeService()

getId

public java.lang.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

setShowISOWeekNumbers

public void setShowISOWeekNumbers(boolean showISOWeekNumbers)

getDate

public java.util.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.

For internal use only. May be removed or replaced in the future.

Returns:
A copy of the current date

setDate

protected void setDate(java.util.Date date)
Sets the current date for this VDateField.

Parameters:
date - The new date to use


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.