public abstract class FormatFormElement<T> extends AbstractFormElement<T> implements Enable, Mocking
Modifier and Type | Field and Description |
---|---|
protected Frontend.Input<String> |
textField |
protected boolean |
typed |
Constructor and Description |
---|
FormatFormElement(PropertyInterface property,
boolean editable) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getAllowedCharacters(PropertyInterface property) |
protected abstract int |
getAllowedSize(PropertyInterface property) |
Frontend.IComponent |
getComponent() |
protected Frontend.InputType |
getInputType() |
protected Frontend.Search<String> |
getSearch(PropertyInterface property) |
T |
getValue() |
protected abstract T |
parse(String text) |
protected abstract String |
render(T value) |
void |
setEnabled(boolean enabled)
This should not be called from application code directly.
|
void |
setValue(T value) |
fireChange, getCaption, getConstraint, getProperty, height, height, listener, setChangeListener
protected Frontend.Input<String> textField
protected boolean typed
public FormatFormElement(PropertyInterface property, boolean editable)
protected abstract String getAllowedCharacters(PropertyInterface property)
protected abstract int getAllowedSize(PropertyInterface property)
protected Frontend.InputType getInputType()
protected Frontend.Search<String> getSearch(PropertyInterface property)
public Frontend.IComponent getComponent()
getComponent
in interface FormElement<T>
public final T getValue()
getValue
in interface FormElement<T>
public final void setValue(T value)
setValue
in interface FormElement<T>
public void setEnabled(boolean enabled)
Enable
Enabled
.setEnabled
in interface Enable
enabled
- the new status of the FormElementCopyright © 2019. All rights reserved.