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>, org.patternfly.component.HasAsyncItems<HTMLElement, FinderColumn, FinderItem>, org.patternfly.component.HasIdentifier<HTMLElement, FinderColumn>, org.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>, org.patternfly.component.Ordered<HTMLElement, FinderColumn, FinderItem>, org.patternfly.core.ComponentContext<HTMLElement, FinderColumn>, org.patternfly.core.OuiaSupport<HTMLElement, FinderColumn>
public class FinderColumn
extends org.patternfly.component.SubComponent<HTMLElement, FinderColumn>
implements org.patternfly.core.ComponentContext<HTMLElement, FinderColumn>, org.patternfly.component.HasAsyncItems<HTMLElement, FinderColumn, FinderItem>, org.patternfly.component.HasIdentifier<HTMLElement, FinderColumn>, org.patternfly.component.Ordered<HTMLElement, FinderColumn, FinderItem>
A column in the
Finder, displaying a list of FinderItems that can be selected, filtered, and sorted.-
Field Summary
FieldsFields inherited from interface org.patternfly.component.Ordered
DATA_ORDER -
Method Summary
Modifier and TypeMethodDescriptionactive()Same as active(true)active(boolean active) Adds/removes modifier(active)add(org.patternfly.component.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(org.patternfly.component.AddItemHandler<FinderColumn, FinderItem> onAdd) onPreview(PreviewHandler previewHandler) onRemove(org.patternfly.component.RemoveItemHandler<FinderColumn, FinderItem> onRemove) onSelect(org.patternfly.handler.SelectHandler<FinderItem> selectHandler) onUpdate(org.patternfly.component.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()org.patternfly.core.AsyncStatusstatus()<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 org.patternfly.component.SubComponent
element, ouiaComponentType, registerSubComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.core.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 org.patternfly.component.HasAsyncItems
addItemsMethods inherited from interface org.patternfly.component.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 org.patternfly.component.Ordered
addOrdered, defaultOrder, orderedMethods inherited from interface org.patternfly.core.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 interfaceorg.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>
-
add
- Specified by:
addin interfaceorg.patternfly.component.HasAsyncItems<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 interfaceorg.patternfly.component.Ordered<HTMLElement, FinderColumn, FinderItem>
-
pinnable
Same as pinnable(true) -
pinnable
Adds/removes modifier(pinnable) -
store
- Specified by:
storein interfaceorg.patternfly.core.ComponentContext<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 interfaceorg.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>
-
onUpdate
public FinderColumn onUpdate(org.patternfly.component.UpdateItemHandler<FinderColumn, FinderItem> onUpdate) - Specified by:
onUpdatein interfaceorg.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>
-
onRemove
public FinderColumn onRemove(org.patternfly.component.RemoveItemHandler<FinderColumn, FinderItem> onRemove) - Specified by:
onRemovein interfaceorg.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>
-
onSelect
-
onPreview
-
finder
-
comparator
- Specified by:
comparatorin interfaceorg.patternfly.component.Ordered<HTMLElement, FinderColumn, FinderItem>
-
load
- Specified by:
loadin interfaceorg.patternfly.component.HasAsyncItems<HTMLElement, FinderColumn, FinderItem>
-
reload
- Specified by:
reloadin interfaceorg.patternfly.component.HasAsyncItems<HTMLElement, FinderColumn, FinderItem>
-
reset
public void reset()- Specified by:
resetin interfaceorg.patternfly.component.HasAsyncItems<HTMLElement, FinderColumn, FinderItem>
-
status
public org.patternfly.core.AsyncStatus status()- Specified by:
statusin interfaceorg.patternfly.component.HasAsyncItems<HTMLElement, FinderColumn, FinderItem>
-
identifier
- Specified by:
identifierin interfaceorg.patternfly.component.HasIdentifier<HTMLElement, FinderColumn>
-
has
- Specified by:
hasin interfaceorg.patternfly.core.ComponentContext<HTMLElement, FinderColumn>
-
get
- Specified by:
getin interfaceorg.patternfly.core.ComponentContext<HTMLElement, FinderColumn>
-
iterator
- Specified by:
iteratorin interfaceIterable<FinderItem>
-
size
public int size()- Specified by:
sizein interfaceorg.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceorg.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>
-
contains
- Specified by:
containsin interfaceorg.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>
-
item
- Specified by:
itemin interfaceorg.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>
-
updateItem
- Specified by:
updateItemin interfaceorg.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>
-
removeItem
- Specified by:
removeItemin interfaceorg.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>
-
clear
public void clear()- Specified by:
clearin interfaceorg.patternfly.component.HasItems<HTMLElement, FinderColumn, FinderItem>
-
select
-
select
-
select
-
select
-
select
-
select
-