Package com.storedobject.ui
Class ObjectFilter<T extends StoredObject>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.Component>
com.storedobject.vaadin.AbstractForm<Object>
com.storedobject.vaadin.Form
com.storedobject.ui.ObjectFilter<T>
- All Implemented Interfaces:
ObjectSearchBuilder<T>,com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.vaadin.AbstractForm
AbstractForm.ValueHandler -
Field Summary
Fields inherited from class com.storedobject.vaadin.AbstractForm
container, data, objectData -
Constructor Summary
ConstructorsConstructorDescriptionObjectFilter(Class<T> objectClass) ObjectFilter(Class<T> objectClass, StringList columns) ObjectFilter(Class<T> objectClass, StringList columns, Consumer<ObjectSearchBuilder<T>> changeConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattachField(String fieldName, com.vaadin.flow.component.HasValue<?, ?> field) Attach a field to the form.static <O extends StoredObject>
ObjectFilter<O> create(Class<O> objectClass, StringList columns) protected com.vaadin.flow.component.HasComponentsCreate the field container of this form.intbooleanremoveSearchField(String fieldName) Methods inherited from class com.storedobject.vaadin.AbstractForm
add, addField, addField, addFields, addIncludeFieldChecker, addValidator, addValidator, clearError, clearErrors, clearFields, commit, connect, connect, connect, constructed, createField, createField, createObjectInstance, detachField, dumpValues, generateFieldNames, getBinder, getColumns, getColumnSpan, getComponent, getContainer, getContent, getErrorDisplay, getField, getFieldLabel, getFieldLabel, getFieldName, getFieldNames, getLabel, getObject, getObject, getView, initContent, isFieldEditable, isFieldEditable, isFieldVisible, isFieldVisible, isReadOnly, load, markError, newLine, remove, removeAll, removeField, removeField, removeField, setColumns, setColumnSpan, setErrorDisplay, setFieldLabel, setFieldLabel, setIncludeFieldChecker, setObject, setObject, setReadOnly, setRequired, setRequired, setRequired, setRequired, setRequired, setRequired, setRequired, setRequired, setView, streamFieldNamesCreated, streamFieldsCreatedMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.storedobject.core.ObjectSearchBuilder
addSearchField
-
Constructor Details
-
ObjectFilter
-
ObjectFilter
-
ObjectFilter
public ObjectFilter(Class<T> objectClass, StringList columns, Consumer<ObjectSearchBuilder<T>> changeConsumer)
-
-
Method Details
-
createContainer
protected com.vaadin.flow.component.HasComponents createContainer()Description copied from class:AbstractFormCreate the field container of this form. This will be invoked only if no container was already set. Default implementation creates aFormLayout.- Overrides:
createContainerin classAbstractForm<Object>- Returns:
- Field container created.
-
create
public static <O extends StoredObject> ObjectFilter<O> create(Class<O> objectClass, StringList columns) -
getSearchFieldCount
public int getSearchFieldCount()- Specified by:
getSearchFieldCountin interfaceObjectSearchBuilder<T extends StoredObject>
-
attachField
Description copied from class:AbstractFormAttach a field to the form. This is invoked whenever a field is added to the form. The default implementation adds the field component (if it is a component) to the field container.- Overrides:
attachFieldin classAbstractForm<Object>- Parameters:
fieldName- Name of the fieldfield- Field
-
removeSearchField
- Specified by:
removeSearchFieldin interfaceObjectSearchBuilder<T extends StoredObject>
-
getFilterPredicate
- Specified by:
getFilterPredicatein interfaceObjectSearchBuilder<T extends StoredObject>
-
getFilterText
- Specified by:
getFilterTextin interfaceObjectSearchBuilder<T extends StoredObject>
-
getObjectClass
- Specified by:
getObjectClassin interfaceObjectSearchBuilder<T extends StoredObject>
-