Package org.patternfly.component.card
Class Card
- All Implemented Interfaces:
ElementAttributeMethods<HTMLDivElement,,Card> ElementClassListMethods<HTMLDivElement,,Card> ElementConsumerMethods<HTMLDivElement,,Card> ElementContainerMethods<HTMLDivElement,,Card> ElementEventMethods<HTMLDivElement,,Card> ElementIdMethods<HTMLDivElement,,Card> ElementQueryMethods<HTMLDivElement>,HTMLElementAttributeMethods<HTMLDivElement,,Card> HTMLElementDataMethods<HTMLDivElement,,Card> HTMLElementStyleMethods<HTMLDivElement,,Card> HTMLElementVisibilityMethods<HTMLDivElement,,Card> IsElement<HTMLDivElement>,TypedBuilder<HTMLDivElement,,Card> Component,Expandable<HTMLDivElement,,Card> org.patternfly.style.Modifiers.Compact<HTMLDivElement,,Card> org.patternfly.style.Modifiers.Disabled<HTMLDivElement,,Card> org.patternfly.style.Modifiers.FullHeight<HTMLDivElement,,Card> org.patternfly.style.Modifiers.Plain<HTMLDivElement,Card>
public class Card
extends BaseComponent<HTMLDivElement,Card>
implements org.patternfly.style.Modifiers.Compact<HTMLDivElement,Card>, org.patternfly.style.Modifiers.Disabled<HTMLDivElement,Card>, Expandable<HTMLDivElement,Card>, org.patternfly.style.Modifiers.FullHeight<HTMLDivElement,Card>, org.patternfly.style.Modifiers.Plain<HTMLDivElement,Card>
A card is a square or rectangular container that can contain any kind of content. Cards symbolize units of information, and
each one acts as an entry point for users to access more details. For example, in dashboards and catalog views, cards
function as a preview of a detailed page. Cards may also be used in data displays like card views, or for positioning content
on a page.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd(CardExpandableContent expandableContent) add(CardHeader header) addExpandableContent(CardExpandableContent expandableContent) addFooter(CardFooter footer) addHeader(CardHeader header) static Cardcard()Same as clickable(null)Same as clickable(String, false)voidcollapse(boolean fireEvent) disabled(boolean disabled) voidexpand(boolean fireEvent) Same as expandable(null, false)expandable(boolean toggleRightAligned) expandable(org.patternfly.handler.ToggleHandler<Card> toggleHandler) Same as expandable(toggleHandler, false)expandable(org.patternfly.handler.ToggleHandler<Card> toggleHandler, boolean toggleRightAligned) flat()Same as flat(true)flat(boolean flat) Adds/removes modifier(flat)large()Same as large(true)large(boolean large) Adds/removes modifier(large)rounded()Same as rounded(true)rounded(boolean rounded) Adds/removes modifier(rounded)voidselect()Same as select(true, true)voidselect(boolean selected) Same as select(selected, true)voidselect(boolean selected, boolean fireEvent) Same as selectable(multi, null)selectable(SelectionMode selectionMode) Same as selectable(selectionMode, null)selectable(SelectionMode selectionMode, org.patternfly.handler.SelectHandler<Card> selectHandler) selectable(org.patternfly.handler.SelectHandler<Card> selectHandler) Same as selectable(multi, onSelect)booleanselected()that()Methods inherited from class org.patternfly.component.BaseComponent
componentType, elementMethods 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.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggleMethods 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 org.patternfly.style.Modifiers.Compact
compact, compactMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabledMethods inherited from interface org.patternfly.style.Modifiers.FullHeight
fullHeight, fullHeightMethods inherited from interface org.patternfly.style.Modifiers.Plain
plain, plain
-
Method Details
-
card
-
addHeader
-
add
-
addTitle
-
addBody
-
addExpandableContent
-
add
-
flat
Same as flat(true) -
flat
Adds/removes modifier(flat) -
rounded
Same as rounded(true) -
rounded
Adds/removes modifier(rounded) -
large
Same as large(true) -
large
Adds/removes modifier(large) -
selectable
Same as selectable(multi, null) -
selectable
Same as selectable(multi, onSelect) -
selectable
Same as selectable(selectionMode, null) -
selectable
public Card selectable(SelectionMode selectionMode, org.patternfly.handler.SelectHandler<Card> selectHandler) -
clickable
Same as clickable(null) -
clickable
-
clickable
Same as clickable(String, false) -
clickable
-
disabled
- Specified by:
disabledin interfaceorg.patternfly.style.Modifiers.Disabled<HTMLDivElement,Card>
-
expandable
Same as expandable(null, false) -
expandable
-
expandable
Same as expandable(toggleHandler, false) -
expandable
-
name
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,Card>
-
ariaLabel
-
select
public void select()Same as select(true, true) -
select
public void select(boolean selected) Same as select(selected, true) -
select
public void select(boolean selected, boolean fireEvent) -
selected
public boolean selected() -
collapse
public void collapse(boolean fireEvent) - Specified by:
collapsein interfaceExpandable<HTMLDivElement,Card>
-
expand
public void expand(boolean fireEvent) - Specified by:
expandin interfaceExpandable<HTMLDivElement,Card>
-