public class EnumFormElement<E extends Enum<E>> extends AbstractFormElement<E> implements Enable, Mocking
Constructor and Description |
---|
EnumFormElement(E key,
List<E> allowedValues) |
EnumFormElement(PropertyInterface property) |
EnumFormElement(PropertyInterface property,
List<E> allowedValues) |
Modifier and Type | Method and Description |
---|---|
Frontend.IComponent |
getComponent() |
E |
getValue() |
void |
mock()
The object should have random data after this call.
|
void |
setEnabled(boolean enabled)
This should not be called from application code directly.
|
void |
setValue(E value) |
fireChange, getCaption, getConstraint, getProperty, height, height, listener, setChangeListener
public EnumFormElement(PropertyInterface property)
public EnumFormElement(PropertyInterface property, List<E> allowedValues)
public Frontend.IComponent getComponent()
getComponent
in interface FormElement<E extends Enum<E>>
public void setEnabled(boolean enabled)
Enable
Enabled
.setEnabled
in interface Enable
enabled
- the new status of the FormElementpublic void setValue(E value)
setValue
in interface FormElement<E extends Enum<E>>
Copyright © 2019. All rights reserved.