A date editor component that can be bound to any bindable Property. that is compatible with java.util.Date.
Since
DateField
extends
AbstractField
it
implements the
com.itmill.toolkit.data.Buffered
interface. A
DateField
is in write-through mode by default, so
com.itmill.toolkit.ui.AbstractField
must be
called to enable buffering.
3.0
Inheritance Path. java.lang.Object-> com.itmill.toolkit.ui.AbstractComponent -> com.itmill.toolkit.ui.AbstractField -> com.itmill.toolkit.ui.DateField
Parameters
dataSource
the Property to be edited with this editor
Constructs a new
DateField
that's bound to the specified
Property
and has no caption.
Parameters
caption
The caption of the datefield.
Constructs an empty
DateField
with caption.
Parameters
caption
caption
String
for the editor
text
initial text content of the editor
Constructs a new
DateField
with the given caption and
initial text contents. The editor constructed this way will not be bound
to a Property unless
setPropertyDataSource(com.itmill.toolkit.data.Property)
is called to bind it.
Parameters
caption
caption
String
for the editor
dataSource
the Property to be edited with this editor
Constructs a new
DateField
that's bound to the specified
Property
and has the given caption
String
.
Set DateField datasource. Datasource type must assignable to Date.