Class Finder
- All Implemented Interfaces:
Iterable<FinderColumn>, Attachable, ElementAttributeMethods<HTMLElement, Finder>, ElementClassListMethods<HTMLElement, Finder>, ElementConsumerMethods<HTMLElement, Finder>, ElementContainerMethods<HTMLElement, Finder>, ElementEventMethods<HTMLElement, Finder>, ElementIdMethods<HTMLElement, Finder>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, Finder>, HTMLElementDataMethods<HTMLElement, Finder>, HTMLElementStyleMethods<HTMLElement, Finder>, HTMLElementVisibilityMethods<HTMLElement, Finder>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, Finder>, Component, HasItems<HTMLElement, Finder, FinderColumn>
public class Finder
extends BaseComponent<HTMLElement, Finder>
implements Attachable, HasItems<HTMLElement, Finder, FinderColumn>
-
Method Summary
Modifier and TypeMethodDescriptionadd(FinderColumn item) add(FinderPreview preview) Adds the specifiedFinderPreviewinstance to the finder.addColumn(FinderColumn column) Same asHasItems.addItem(HasIdentifier)<T> FinderaddColumns(Iterable<T> items, Function<T, FinderColumn> display) addPreview(FinderPreview preview) Adds the specifiedFinderPreviewinstance to the finder.voidattach(MutationRecord mutationRecord) voidclear()booleanvoiddetach(MutationRecord mutationRecord) static Finderfinder()booleanisEmpty()iterator()onAdd(AddItemHandler<Finder, FinderColumn> onAdd) onRemove(RemoveItemHandler<Finder, FinderColumn> onRemove) onUpdate(UpdateItemHandler<Finder, FinderColumn> onUpdate) voidremoveItem(String identifier) intsize()that()voidupdateItem(FinderColumn item) Methods inherited from class BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HasItems
addItem, addItems, items, replaceItemElement, updateItem, updateItemMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
finder
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
addColumns
-
addColumn
Same asHasItems.addItem(HasIdentifier) -
add
- Specified by:
addin interfaceHasItems<HTMLElement, Finder, FinderColumn>
-
addPreview
Adds the specifiedFinderPreviewinstance to the finder. This method ensures that any previously added preview is safely removed before adding the new one.- Parameters:
preview- theFinderPreviewinstance to add. Represents the preview component to be added to the finder.- Returns:
- the current
Finderinstance, allowing for method chaining.
-
add
Adds the specifiedFinderPreviewinstance to the finder. This method ensures that any previously added preview is safely removed before adding the new one.Preview can be managed on a column basis by using
FinderColumn.onPreview(PreviewHandler)or on an item basis by usingFinderItem.onPreview(PreviewHandler).- Parameters:
preview- theFinderPreviewinstance to add. Represents the preview component to be added to the finder.- Returns:
- the current
Finderinstance, allowing for method chaining.
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, Finder>
-
onAdd
- Specified by:
onAddin interfaceHasItems<HTMLElement, Finder, FinderColumn>
-
onUpdate
- Specified by:
onUpdatein interfaceHasItems<HTMLElement, Finder, FinderColumn>
-
onRemove
- Specified by:
onRemovein interfaceHasItems<HTMLElement, Finder, FinderColumn>
-
iterator
- Specified by:
iteratorin interfaceIterable<FinderColumn>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLElement, Finder, FinderColumn>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLElement, Finder, FinderColumn>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLElement, Finder, FinderColumn>
-
item
- Specified by:
itemin interfaceHasItems<HTMLElement, Finder, FinderColumn>
-
updateItem
- Specified by:
updateItemin interfaceHasItems<HTMLElement, Finder, FinderColumn>
-
removeItem
- Specified by:
removeItemin interfaceHasItems<HTMLElement, Finder, FinderColumn>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLElement, Finder, FinderColumn>
-