public class MustDateField extends MustTextField
Modifier and Type | Field and Description |
---|---|
protected java.util.Locale |
locale |
additionalTagFragments, className, editable, enabled, fontSize, maxlength, required, size
comment, focus, name, placeholder, toolTipText
Constructor and Description |
---|
MustDateField()
Constructs a new date input field.
|
MustDateField(java.util.Locale locale,
java.lang.String name)
Constructs a new date input field for locale as specified.
|
Modifier and Type | Method and Description |
---|---|
void |
format()
Formats the date string according to the locale.
|
java.lang.String |
getCrpeCompareString()
Returns the component's value as a string to compare in Crystal Reports.
|
java.lang.String |
getSqlCompareString()
Returns the component's value as a string to compare in sql where clauses.
|
java.sql.Date |
getSqlDate()
Returns the component's value as an sql date.
|
boolean |
isValid()
Returns true the text field is valid.
|
void |
setDate(java.sql.Date newDate)
Sets the date.
|
void |
setTodayValue()
Sets the value of the date field to today.
|
fetchYourValueFromRequest, getCreationTag, getText, getTextOrNullIfEmpty, isFilled, isModified, isRequirementUnfulfilled, setAdditionalTagFragments, setClassName, setColumns, setDefaultAdditionalTagFragments, setDefaultClassName, setEditable, setEnabled, setFontSize, setMaxlength, setRequired, setText, toString
destroy, getName, setComment, setFocus, setPlaceHolder, setToolTipText
public MustDateField()
public MustDateField(java.util.Locale locale, java.lang.String name)
locale
- the formatting relevant localename
- the name of the date field to be used.public void setDate(java.sql.Date newDate)
newDate
- the new value of the date fieldpublic void setTodayValue()
public boolean isValid()
isValid
in class MustTextField
public void format()
public java.sql.Date getSqlDate()
public java.lang.String getSqlCompareString()
public java.lang.String getCrpeCompareString()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de