Class AbstractLookupFormElement<T>
java.lang.Object
org.minimalj.frontend.form.element.AbstractFormElement<T>
org.minimalj.frontend.form.element.AbstractLookupFormElement<T>
- All Implemented Interfaces:
Enable
,FormElement<T>
- Direct Known Subclasses:
EnumSetFormElement
,FormLookupFormElement
,ReferenceFormElement
,SmallCodeListFormElement
,SmallListFormElement
public abstract class AbstractLookupFormElement<T> extends AbstractFormElement<T> implements Enable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AbstractLookupFormElement.LookupParser
-
Field Summary
Fields Modifier and Type Field Description protected Frontend.Input<java.lang.String>
lookup
protected Frontend.Input<java.lang.String>
readOnlyInput
protected Frontend.SwitchComponent
switchComponent
-
Method Summary
Modifier and Type Method Description Frontend.IComponent
getComponent()
protected Frontend.Search<java.lang.String>
getSearch()
T
getValue()
void
inputChanged(Frontend.IComponent source)
protected abstract void
lookup()
protected java.lang.String
render(T value)
void
setEnabled(boolean enabled)
This should not be called from application code directly.void
setValue(T object)
protected void
setValueInternal(T object)
Methods inherited from class org.minimalj.frontend.form.element.AbstractFormElement
fireChange, getCaption, getConstraint, getProperty, height, height, listener, setChangeListener
-
Field Details
-
Method Details
-
setEnabled
public final 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
-
getComponent
- Specified by:
getComponent
in interfaceFormElement<T>
-
getValue
- Specified by:
getValue
in interfaceFormElement<T>
-
setValue
- Specified by:
setValue
in interfaceFormElement<T>
-
setValueInternal
-
render
-
inputChanged
-
lookup
protected abstract void lookup() -
getSearch
-