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 void
attachField
(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.HasComponents
Create the field container of this form.int
boolean
removeSearchField
(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, streamFieldsCreated
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getElement
Methods 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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods 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:AbstractForm
Create the field container of this form. This will be invoked only if no container was already set. Default implementation creates aFormLayout
.- Overrides:
createContainer
in 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:
getSearchFieldCount
in interfaceObjectSearchBuilder<T extends StoredObject>
-
attachField
Description copied from class:AbstractForm
Attach 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:
attachField
in classAbstractForm<Object>
- Parameters:
fieldName
- Name of the fieldfield
- Field
-
removeSearchField
- Specified by:
removeSearchField
in interfaceObjectSearchBuilder<T extends StoredObject>
-
getFilterPredicate
- Specified by:
getFilterPredicate
in interfaceObjectSearchBuilder<T extends StoredObject>
-
getFilterText
- Specified by:
getFilterText
in interfaceObjectSearchBuilder<T extends StoredObject>
-
getObjectClass
- Specified by:
getObjectClass
in interfaceObjectSearchBuilder<T extends StoredObject>
-