public class DateField
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.text.SimpleDateFormat |
dateformat |
static java.text.SimpleDateFormat |
fulldateformat |
Constructor and Description |
---|
DateField(PageActionManager actionmanager,
boolean compactshow,
boolean twolines,
java.lang.String label,
java.lang.String helper,
boolean readonly,
boolean isactive,
boolean timeedit,
java.util.Date inputvalue,
boolean defaultvalue)
creates a date field
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatNiceDate(java.util.Date date)
formats a date in nice format showing both date and time
|
static java.lang.String |
formatNiceDate(java.util.Date date,
boolean showdate)
An utility to format a date in a nice format in English
|
javafx.scene.layout.Pane |
generate()
generate the javafx pane corresponding to that field
|
javafx.scene.control.DatePicker |
getDatePicker() |
public static java.text.SimpleDateFormat dateformat
public static java.text.SimpleDateFormat fulldateformat
public DateField(PageActionManager actionmanager, boolean compactshow, boolean twolines, java.lang.String label, java.lang.String helper, boolean readonly, boolean isactive, boolean timeedit, java.util.Date inputvalue, boolean defaultvalue)
actionmanager
- action manager on the fieldcompactshow
- if true, choice field is shown as compact as possible,
if false, displayed to be aligned to other business
fields of a data objecttwolines
- if true, show in two lines (for display in a menu)label
- label of the choice fieldhelper
- multi-line helper explaining the business usage of the
choice fieldreadonly
- if true, field is read-only, if false, field is
read-writeisactive
- true if activetimeedit
- if true, possible to edit time, if false only possible
to edit dateinputvalue
- input valuedefaultvalue
- if true, default value is current time, if false,
default value is emptypublic static java.lang.String formatNiceDate(java.util.Date date, boolean showdate)
date
- date to showshowdate
- if true, show date and time, if false, show only datapublic static java.lang.String formatNiceDate(java.util.Date date)
date
- date to showpublic javafx.scene.control.DatePicker getDatePicker()
public javafx.scene.layout.Pane generate()