Class ComboBoxFormElement<T>
java.lang.Object
org.minimalj.frontend.form.element.AbstractFormElement<T>
org.minimalj.frontend.form.element.ComboBoxFormElement<T>
- All Implemented Interfaces:
Enable
,FormElement<T>
,Mocking
- Direct Known Subclasses:
CodeFormElement
public class ComboBoxFormElement<T> extends AbstractFormElement<T> implements Enable, Mocking
-
Constructor Summary
Constructors Constructor Description ComboBoxFormElement(PropertyInterface property, java.util.List<T> values)
-
Method Summary
Modifier and Type Method Description Frontend.IComponent
getComponent()
T
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(T value)
Methods inherited from class org.minimalj.frontend.form.element.AbstractFormElement
fireChange, getCaption, getConstraint, getProperty, height, height, listener, setChangeListener
-
Constructor Details
-
Method Details
-
getComponent
- Specified by:
getComponent
in interfaceFormElement<T>
-
setEnabled
public void setEnabled(boolean enabled)Description copied from interface:Enable
This should not be called from application code directly. Instead the field in the model class belonging to the form field should be annotated withEnabled
.- Specified by:
setEnabled
in interfaceEnable
- Parameters:
enabled
- the new status of the FormElement
-
getValue
- Specified by:
getValue
in interfaceFormElement<T>
-
setValue
- Specified by:
setValue
in interfaceFormElement<T>
-
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.
-