Class DescriptionList
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement, DescriptionList>
org.patternfly.component.list.DescriptionList
- All Implemented Interfaces:
Iterable<DescriptionListGroup>,ElementAttributeMethods<HTMLElement, DescriptionList>,ElementClassListMethods<HTMLElement, DescriptionList>,ElementConsumerMethods<HTMLElement, DescriptionList>,ElementContainerMethods<HTMLElement, DescriptionList>,ElementEventMethods<HTMLElement, DescriptionList>,ElementIdMethods<HTMLElement, DescriptionList>,ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement, DescriptionList>,HTMLElementDataMethods<HTMLElement, DescriptionList>,HTMLElementStyleMethods<HTMLElement, DescriptionList>,HTMLElementVisibilityMethods<HTMLElement, DescriptionList>,IsElement<HTMLElement>,TypedBuilder<HTMLElement, DescriptionList>,Component,HasItems<HTMLElement, DescriptionList, DescriptionListGroup>,Ordered<HTMLElement, DescriptionList, DescriptionListGroup>,Modifiers.Compact<HTMLElement, DescriptionList>,Modifiers.Horizontal<HTMLElement, DescriptionList>
public class DescriptionList
extends BaseComponent<HTMLElement, DescriptionList>
implements Modifiers.Compact<HTMLElement, DescriptionList>, Modifiers.Horizontal<HTMLElement, DescriptionList>, Ordered<HTMLElement, DescriptionList, DescriptionListGroup>
A description list contains terms and their corresponding descriptions.
- See Also:
-
Field Summary
Fields inherited from interface org.patternfly.component.Ordered
DATA_ORDER -
Method Summary
Modifier and TypeMethodDescriptionadd(DescriptionListGroup item) Same as autoColumnWidths(true)autoColumnWidths(boolean autoColumnWidths) Sets the description list to format automatically.autoFit()Same as autoFit(true)autoFit(boolean autoFit) Sets the description list to auto-fit.autoFitMin(String autoFitMin) Same asautoFitMin(breakpoints(default_, autoFitMin))autoFitMin(Breakpoints<String> autoFitMin) Sets the minimum column size for the auto-fit layout at various breakpoints.voidclear()Same ascolumns(breakpoints(default_, columns))columns(Breakpoints<Integer> columns) Sets the number of columns on the description list at various breakpoints.Retrieves the comparator used for ordering elements in a component.booleanstatic DescriptionListdisplaySize(Size size) Sets the display size of the descriptions in the description list.Same as fillColumns(true)fillColumns(boolean fillColumns) Sets the default placement of description list groups to fill from top to bottom.fluid()Same as fluid(true)fluid(boolean fluid) Sets a horizontal description list to have fluid styling.horizontalTermWidth(String horizontalTermWidth) Same ashorizontalTermWidth(breakpoints(default_, horizontalTermWidth))horizontalTermWidth(Breakpoints<String> horizontalTermWidth) Sets the horizontal description list's term column width at various breakpoints.Same as inlineGrid(true)inlineGrid(boolean inlineGrid) Modifies the description list display to inline-grid.booleanisEmpty()iterator()onRemove(BiConsumer<DescriptionList, DescriptionListGroup> onRemove) ordered(Comparator<DescriptionListGroup> comparator) Orders the elements contained in the component using the specified comparator.orientation(Breakpoints<Orientation> orientation) Indicates how the menu will align at various breakpoints.orientation(Orientation orientation) Same asorientation(breakpoints(default_, orientation))voidremoveItem(String identifier) intsize()that()Methods inherited from class org.patternfly.component.BaseComponent
componentType, element, registerComponentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.patternfly.style.Modifiers.Compact
compact, compactMethods inherited from interface org.patternfly.style.Modifiers.Horizontal
horizontal, horizontalMethods inherited from interface org.patternfly.component.Ordered
addOrdered, defaultOrder, ordered
-
Method Details
-
descriptionList
-
add
- Specified by:
addin interfaceHasItems<HTMLElement, DescriptionList, DescriptionListGroup>
-
autoColumnWidths
Same as autoColumnWidths(true) -
autoColumnWidths
Sets the description list to format automatically. -
autoFit
Same as autoFit(true) -
autoFit
Sets the description list to auto-fit. -
autoFitMin
Same asautoFitMin(breakpoints(default_, autoFitMin)) -
autoFitMin
Sets the minimum column size for the auto-fit layout at various breakpoints. -
columns
Same ascolumns(breakpoints(default_, columns)) -
columns
Sets the number of columns on the description list at various breakpoints. -
displaySize
Sets the display size of the descriptions in the description list. -
fillColumns
Same as fillColumns(true) -
fillColumns
Sets the default placement of description list groups to fill from top to bottom. -
fluid
Same as fluid(true) -
fluid
Sets a horizontal description list to have fluid styling. -
horizontalTermWidth
Same ashorizontalTermWidth(breakpoints(default_, horizontalTermWidth)) -
horizontalTermWidth
Sets the horizontal description list's term column width at various breakpoints. -
inlineGrid
Same as inlineGrid(true) -
inlineGrid
Modifies the description list display to inline-grid. -
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, DescriptionList, DescriptionListGroup>- Parameters:
comparator- the comparator used to define the ordering of the elements- Returns:
- the builder instance with the elements ordered
-
orientation
Same asorientation(breakpoints(default_, orientation)) -
orientation
Indicates how the menu will align at various breakpoints. -
termWidth
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, DescriptionList>
-
onAdd
- Specified by:
onAddin interfaceHasItems<HTMLElement, DescriptionList, DescriptionListGroup>
-
onRemove
- Specified by:
onRemovein interfaceHasItems<HTMLElement, DescriptionList, DescriptionListGroup>
-
comparator
Description copied from interface:OrderedRetrieves the comparator used for ordering elements in a component.- Specified by:
comparatorin interfaceOrdered<HTMLElement, DescriptionList, DescriptionListGroup>- Returns:
- the comparator that determines the order of elements
-
iterator
- Specified by:
iteratorin interfaceIterable<DescriptionListGroup>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLElement, DescriptionList, DescriptionListGroup>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLElement, DescriptionList, DescriptionListGroup>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLElement, DescriptionList, DescriptionListGroup>
-
item
- Specified by:
itemin interfaceHasItems<HTMLElement, DescriptionList, DescriptionListGroup>
-
removeItem
- Specified by:
removeItemin interfaceHasItems<HTMLElement, DescriptionList, DescriptionListGroup>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLElement, DescriptionList, DescriptionListGroup>
-