Package org.teamapps.ux.component.form
Class AbstractForm<RECORD>
java.lang.Object
org.teamapps.ux.component.AbstractComponent
org.teamapps.ux.component.form.AbstractForm<RECORD>
- All Implemented Interfaces:
ClientObject,Component
- Direct Known Subclasses:
GenericForm,ResponsiveForm
-
Field Summary
FieldsFields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddComponent(Component component) protected voidaddField(String propertyName, AbstractField<?> field) voidaddMultiFieldValidator(MultiFieldValidator multiFieldValidator) voidapplyFieldValuesToRecord(RECORD record) voidapplyRecordValuesToFields(RECORD record) void<V> AbstractField<V> getFieldByPropertyName(String propertyName) List<AbstractField<?>> Map<String, AbstractField<?>> getFieldValue(String fieldName) convenience method for field.getValue()abstract List<FormLayoutPolicy> voidhandleUiEvent(UiEvent event) booleanChecks whether any of the form fields have been mutated by the client.voidsetFieldValue(String fieldName, Object value) convenience method for field.setValue(...).voidsetPropertyExtractor(PropertyExtractor<RECORD> propertyExtractor) voidsetPropertyInjector(PropertyInjector<RECORD> propertyInjector) voidsetPropertyProvider(PropertyProvider<RECORD> propertyProvider) voidsetSectionCollapsed(String sectionId, boolean collapsed) protected voidvalidate()Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiReference, getDebuggingId, getId, getParent, getSessionContext, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setAttribute, setCssStyle, setDebuggingId, setParent, setVisible, toggleCssClass, toString, unrenderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.ux.component.ClientObject
createUiReference, getId, handleUiQuery, isRendered, render, unrenderMethods inherited from interface org.teamapps.ux.component.Component
getParent, isVisible, setAriaLabel, setAttribute, setAttribute, setCssStyle, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setParent, setShadow, setVisible, toggleCssClass, toggleCssClass
-
Field Details
-
onFieldValueChanged
-
-
Constructor Details
-
AbstractForm
public AbstractForm()
-
-
Method Details
-
clearAllFields
public void clearAllFields() -
setFieldValue
-
getFieldValue
-
addField
-
addComponent
-
getLayoutPolicies
-
createUiComponent
- Specified by:
createUiComponentin classAbstractComponent
-
updateLayoutPolicies
protected void updateLayoutPolicies() -
applyRecordValuesToFields
-
applyFieldValuesToRecord
-
getPropertyProvider
-
setPropertyProvider
-
setPropertyExtractor
-
getPropertyInjector
-
setPropertyInjector
-
handleUiEvent
- Specified by:
handleUiEventin interfaceClientObject
-
getFields
-
getFieldsMap
-
getFieldByPropertyName
-
getAllChildren
-
setSectionCollapsed
-
addMultiFieldValidator
-
validate
-
isChangedByClient
public boolean isChangedByClient()Checks whether any of the form fields have been mutated by the client.- Returns:
- true if any of the form fields' values have been changed, false otherwise
-