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>
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) Adds an item to the component.addHeader(FinderColumnHeader header) addSearch(FinderColumnSearch search) voidclear()Clears all items from the component.Retrieves the comparator used for ordering elements in a component.booleanChecks whether the component contains an item associated with the given identifier.static FinderColumnfinderColumn(String identifier) <T> TRetrieves the value associated with the given key from the ComponentContext.booleanDetermines whether a value is stored with the specified key.Retrieves the identifier associated with this component.booleanisEmpty()Checks whether the collection of items in the component is empty.Retrieves the item associated with the specified identifier from the component.iterator()load()onAdd(AddItemHandler<FinderColumn, FinderItem> onAdd) Registers a callback to be invoked whenever a new item is added to the component.onPreview(PreviewHandler previewHandler) onRemove(RemoveItemHandler<FinderColumn, FinderItem> onRemove) Registers a callback to be invoked whenever an item is removed from the component.onSelect(SelectHandler<FinderItem> selectHandler) onUpdate(UpdateItemHandler<FinderColumn, FinderItem> onUpdate) Registers a callback to be invoked whenever an item is updated in the component.ordered(Comparator<FinderItem> comparator) Orders the elements contained in the component using the specified comparator.pinnable()Same as pinnable(true)pinnable(boolean pinnable) Adds/removes modifier(pinnable)reload()voidremoveItem(String identifier) Removes an item from the component based on the provided identifier.voidreset()voidvoidvoidvoidselect(FinderItem item) voidselect(FinderItem item, boolean selected) voidselect(FinderItem item, boolean selected, boolean fireEvent) intsize()Retrieves the total number of items currently contained in the component.status()<T> FinderColumnStores a value associated with a key.that()voidupdateItem(FinderItem item) Updates an existing item in the component.Methods inherited from class SubComponent
element, 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, ordered
-
Field Details
-
SUB_COMPONENT_NAME
- See Also:
-
-
Method Details
-
finderColumn
-
addHeader
-
add
-
addSearch
-
add
-
add
Description copied from interface:HasItemsAdds an item to the component.- Specified by:
addin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>- Parameters:
item- the item to be added to the component- Returns:
- the builder instance after the item has been added
-
add
- Specified by:
addin interfaceHasAsyncItems<HTMLElement, FinderColumn, FinderItem>
-
active
Same as active(true) -
active
Adds/removes modifier(active) -
ordered
Description copied from interface:OrderedOrders the elements contained in the component using the specified comparator. The comparator determines the order in which the elements are arranged.- Specified by:
orderedin interfaceOrdered<HTMLElement, FinderColumn, FinderItem>- Parameters:
comparator- the comparator used to define the ordering of the elements- Returns:
- the builder instance with the elements ordered
-
pinnable
Same as pinnable(true) -
pinnable
Adds/removes modifier(pinnable) -
store
Description copied from interface:ComponentContextStores a value associated with a key.- Specified by:
storein interfaceComponentContext<HTMLElement, FinderColumn>- Type Parameters:
T- the type of the value being stored- Parameters:
key- the key associated with the valuevalue- the value to be stored
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, FinderColumn>
-
onAdd
Description copied from interface:HasItemsRegisters a callback to be invoked whenever a new item is added to the component.- Specified by:
onAddin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>- Parameters:
onAdd- aAddItemHandlerthat takes the builder instance and the item being added as arguments- Returns:
- the builder instance after adding the callback
-
onUpdate
Description copied from interface:HasItemsRegisters a callback to be invoked whenever an item is updated in the component.- Specified by:
onUpdatein interfaceHasItems<HTMLElement, FinderColumn, FinderItem>- Parameters:
onUpdate- aUpdateItemHandlerthat takes the component, the previous state of the item, and the updated state of the item as arguments- Returns:
- the builder instance after adding the callback
-
onRemove
Description copied from interface:HasItemsRegisters a callback to be invoked whenever an item is removed from the component.- Specified by:
onRemovein interfaceHasItems<HTMLElement, FinderColumn, FinderItem>- Parameters:
onRemove- aRemoveItemHandlerthat takes the component and the item being removed as arguments- Returns:
- the builder instance after adding the callback
-
onSelect
-
onPreview
-
comparator
Description copied from interface:OrderedRetrieves the comparator used for ordering elements in a component.- Specified by:
comparatorin interfaceOrdered<HTMLElement, FinderColumn, FinderItem>- Returns:
- the comparator that determines the order of elements
-
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
Description copied from interface:HasIdentifierRetrieves the identifier associated with this component.- Specified by:
identifierin interfaceHasIdentifier<HTMLElement, FinderColumn>- Returns:
- the identifier of the component
-
has
Description copied from interface:ComponentContextDetermines whether a value is stored with the specified key.- Specified by:
hasin interfaceComponentContext<HTMLElement, FinderColumn>- Parameters:
key- the key to check- Returns:
- true if a value is stored with the specified key, false otherwise
-
get
Description copied from interface:ComponentContextRetrieves the value associated with the given key from the ComponentContext.- Specified by:
getin interfaceComponentContext<HTMLElement, FinderColumn>- Type Parameters:
T- the type of the value being retrieved- Parameters:
key- the key associated with the value- Returns:
- the value associated with the key, or null if no value is found
-
iterator
- Specified by:
iteratorin interfaceIterable<FinderItem>
-
size
public int size()Description copied from interface:HasItemsRetrieves the total number of items currently contained in the component.- Specified by:
sizein interfaceHasItems<HTMLElement, FinderColumn, FinderItem>- Returns:
- the number of items contained in the component
-
isEmpty
public boolean isEmpty()Description copied from interface:HasItemsChecks whether the collection of items in the component is empty.- Specified by:
isEmptyin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>- Returns:
trueif the component contains no items;falseotherwise
-
contains
Description copied from interface:HasItemsChecks whether the component contains an item associated with the given identifier.- Specified by:
containsin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>- Parameters:
identifier- the identifier of the item to be checked- Returns:
- true if the component contains an item associated with the provided identifier, false otherwise
-
item
Description copied from interface:HasItemsRetrieves the item associated with the specified identifier from the component.- Specified by:
itemin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>- Parameters:
identifier- the identifier of the item to be retrieved- Returns:
- the item associated with the given identifier, or
nullif no item is found
-
updateItem
Description copied from interface:HasItemsUpdates an existing item in the component.- Specified by:
updateItemin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>- Parameters:
item- the item to be updated
-
removeItem
Description copied from interface:HasItemsRemoves an item from the component based on the provided identifier.- Specified by:
removeItemin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>- Parameters:
identifier- the identifier of the item to be removed
-
clear
public void clear()Description copied from interface:HasItemsClears all items from the component. This method removes any existing items within the component, leaving it empty. Any associated or registered callbacks related to the removal of items may be invoked as part of this operation.- Specified by:
clearin interfaceHasItems<HTMLElement, FinderColumn, FinderItem>
-
select
-
select
-
select
-
select
-
select
-
select
-