Class FinderColumn
java.lang.Object
org.patternfly.component.SubComponent<HTMLElement, FinderColumn>
org.patternfly.extension.finder.FinderColumn
- All Implemented Interfaces:
Iterable<FinderItem>, ElementAttributeMethods<HTMLElement, FinderColumn>, ElementClassListMethods<HTMLElement, FinderColumn>, ElementConsumerMethods<HTMLElement, FinderColumn>, ElementContainerMethods<HTMLElement, FinderColumn>, ElementEventMethods<HTMLElement, FinderColumn>, ElementIdMethods<HTMLElement, FinderColumn>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, FinderColumn>, HTMLElementDataMethods<HTMLElement, FinderColumn>, HTMLElementStyleMethods<HTMLElement, FinderColumn>, HTMLElementVisibilityMethods<HTMLElement, FinderColumn>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, FinderColumn>, HasAsyncItems<HTMLElement, FinderColumn, FinderItem>, HasIdentifier<HTMLElement, FinderColumn>, HasItems<HTMLElement, FinderColumn, FinderItem>, Ordered<HTMLElement, FinderColumn, FinderItem>, ComponentContext<HTMLElement, FinderColumn>, OuiaSupport<HTMLElement, FinderColumn>
public class FinderColumn
extends SubComponent<HTMLElement, FinderColumn>
implements ComponentContext<HTMLElement, FinderColumn>, HasAsyncItems<HTMLElement, FinderColumn, FinderItem>, HasIdentifier<HTMLElement, FinderColumn>, Ordered<HTMLElement, FinderColumn, FinderItem>
-
Field Summary
FieldsFields inherited from interface Ordered
DATA_ORDER -
Method Summary
Modifier and TypeMethodDescriptionactive()Same as active(true)active(boolean active) Adds/removes modifier(active)add(AsyncItems<FinderColumn, FinderItem> items) add(FinderColumnHeader header) add(FinderColumnSearch search) add(FinderItem item) addHeader(FinderColumnHeader header) addSearch(FinderColumnSearch search) voidclear()booleanSame as defaultSearch("Filter by name")defaultSearch(String placeholder) Configures the currentFinderColumninstance with a default search functionality.finder()static FinderColumnfinderColumn(String identifier) static FinderColumnfinderColumn(String identifier, String header) <T> TbooleanbooleanisEmpty()iterator()load()onAdd(AddItemHandler<FinderColumn, FinderItem> onAdd) onPreview(PreviewHandler previewHandler) onRemove(RemoveItemHandler<FinderColumn, FinderItem> onRemove) onSelect(SelectHandler<FinderItem> selectHandler) onUpdate(UpdateItemHandler<FinderColumn, FinderItem> onUpdate) ordered(Comparator<FinderItem> comparator) pinnable()Same as pinnable(true)pinnable(boolean pinnable) Adds/removes modifier(pinnable)reload()voidremoveItem(String identifier) voidreset()voidvoidvoidvoidselect(FinderItem item) voidselect(FinderItem item, boolean selected) voidselect(FinderItem item, boolean selected, boolean fireEvent) showSearchThreshold(int size) Configures the currentFinderColumninstance to show the search component when the size of the items in the column is greater than or equal to the specified value.intsize()status()<T> FinderColumnthat()toggleSearch(Predicate<FinderColumn> predicate) Toggles the visibility of the search component in the column based on the provided predicate.voidupdateItem(FinderItem item) Methods inherited from class SubComponent
element, ouiaComponentType, registerSubComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentContext
get, getMethods 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 HasAsyncItems
addItemsMethods 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, spliteratorMethods inherited from interface Ordered
addOrdered, defaultOrder, orderedMethods inherited from interface OuiaSupport
initOuia, initOuia, ouiaId, ouiaSafe, ouiaTransition
-
Field Details
-
SUB_COMPONENT_ID
- See Also:
-
SUB_COMPONENT_NAME
- See Also:
-
-
Method Details
-
finderColumn
-
finderColumn
-
addHeader
-
add
-
addSearch
-
add
-
add
- Specified by:
addin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
add
- Specified by:
addin interfaceHasAsyncItems<HTMLElement, FinderColumn, FinderItem>
-
active
Same as active(true) -
active
Adds/removes modifier(active) -
defaultSearch
Same as defaultSearch("Filter by name")- Returns:
- the current
FinderColumninstance with the default search functionality added
-
defaultSearch
Configures the currentFinderColumninstance with a default search functionality. The search functionality allows filtering of items in the column based on the content of a search input field. The provided placeholder text for the search input is used to indicate the purpose of the search field to the user.- Parameters:
placeholder- the placeholder text to display in the search input field- Returns:
- the current
FinderColumninstance with the configured default search functionality
-
ordered
- Specified by:
orderedin interfaceOrdered<HTMLElement, FinderColumn, FinderItem>
-
pinnable
Same as pinnable(true) -
pinnable
Adds/removes modifier(pinnable) -
store
- Specified by:
storein interfaceComponentContext<HTMLElement, FinderColumn>
-
showSearchThreshold
Configures the currentFinderColumninstance to show the search component when the size of the items in the column is greater than or equal to the specified value. The visibility condition is evaluated based on the number of items in the column.If no search component is present in the column, this method does nothing.
- Parameters:
size- the minimum number of items required in the column to show the search component- Returns:
- the current
FinderColumninstance with updated search visibility configuration
-
toggleSearch
Toggles the visibility of the search component in the column based on the provided predicate. The predicate is evaluated against the current column and determines whether the search component should be visible. Additionally, the visibility of the search component reacts to items being added to or removed from the column.If no search component is present in the column, this method does nothing.
- Parameters:
predicate- aPredicatethat evaluates the visibility condition for the search component based on the currentFinderColumn- Returns:
- the current
FinderColumninstance with updated search visibility
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, FinderColumn>
-
onAdd
- Specified by:
onAddin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
onUpdate
- Specified by:
onUpdatein interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
onRemove
- Specified by:
onRemovein interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
onSelect
-
onPreview
-
finder
-
comparator
- Specified by:
comparatorin interfaceOrdered<HTMLElement, FinderColumn, FinderItem>
-
load
- Specified by:
loadin interfaceHasAsyncItems<HTMLElement, FinderColumn, FinderItem>
-
reload
- Specified by:
reloadin interfaceHasAsyncItems<HTMLElement, FinderColumn, FinderItem>
-
reset
public void reset()- Specified by:
resetin interfaceHasAsyncItems<HTMLElement, FinderColumn, FinderItem>
-
status
- Specified by:
statusin interfaceHasAsyncItems<HTMLElement, FinderColumn, FinderItem>
-
identifier
- Specified by:
identifierin interfaceHasIdentifier<HTMLElement, FinderColumn>
-
has
- Specified by:
hasin interfaceComponentContext<HTMLElement, FinderColumn>
-
get
- Specified by:
getin interfaceComponentContext<HTMLElement, FinderColumn>
-
iterator
- Specified by:
iteratorin interfaceIterable<FinderItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
item
- Specified by:
itemin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
updateItem
- Specified by:
updateItemin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
removeItem
- Specified by:
removeItemin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
select
-
select
-
select
-
select
-
select
-
select
-