Class LocalDateTimeFormElement
java.lang.Object
org.minimalj.frontend.form.element.AbstractFormElement<T>
org.minimalj.frontend.form.element.FormatFormElement<java.time.LocalDateTime>
org.minimalj.frontend.form.element.LocalDateTimeFormElement
- All Implemented Interfaces:
Enable
,FormElement<java.time.LocalDateTime>
,Mocking
public class LocalDateTimeFormElement extends FormatFormElement<java.time.LocalDateTime>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LocalDateTimeFormElement(PropertyInterface property, boolean editable)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
getAllowedCharacters(PropertyInterface property)
protected int
getAllowedSize(PropertyInterface property)
protected Frontend.InputType
getInputType()
void
mock()
The object should have random data after this call.java.time.LocalDateTime
parse(java.lang.String string)
java.lang.String
render(java.time.LocalDateTime value)
Methods inherited from class org.minimalj.frontend.form.element.FormatFormElement
getComponent, getSearch, getValue, setEnabled, setValue
Methods inherited from class org.minimalj.frontend.form.element.AbstractFormElement
fireChange, getCaption, getConstraint, getProperty, height, height, listener, setChangeListener
-
Constructor Details
-
Method Details
-
getAllowedCharacters
- Specified by:
getAllowedCharacters
in classFormatFormElement<java.time.LocalDateTime>
-
getAllowedSize
- Specified by:
getAllowedSize
in classFormatFormElement<java.time.LocalDateTime>
-
getInputType
- Overrides:
getInputType
in classFormatFormElement<java.time.LocalDateTime>
-
parse
public java.time.LocalDateTime parse(java.lang.String string)- Specified by:
parse
in classFormatFormElement<java.time.LocalDateTime>
-
render
public java.lang.String render(java.time.LocalDateTime value)- Specified by:
render
in classFormatFormElement<java.time.LocalDateTime>
-
mock
public void mock()Description copied from interface:Mocking
The object should have random data after this call. And a possible validation should report no errors.
-