Package org.patternfly.component.card
Class Card
- All Implemented Interfaces:
Container<HTMLDivElement,
,Card> Finder<HTMLDivElement>
,HasElement<HTMLDivElement,
,Card> HasHTMLElement<HTMLDivElement,
,Card> IsElement<HTMLDivElement>
,TypedBuilder<HTMLDivElement,
,Card> Component
,Expandable<HTMLDivElement,
,Card> Modifiers.Compact<HTMLDivElement,
,Card> Modifiers.Disabled<HTMLDivElement,
,Card> Modifiers.FullHeight<HTMLDivElement,
,Card> Modifiers.Plain<HTMLDivElement,
Card>
public class Card
extends BaseComponent<HTMLDivElement,Card>
implements Modifiers.Compact<HTMLDivElement,Card>, Modifiers.Disabled<HTMLDivElement,Card>, Modifiers.FullHeight<HTMLDivElement,Card>, Modifiers.Plain<HTMLDivElement,Card>, Expandable<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 Card
card()
Same as clickable(null)Same as clickable(String, false)clickable
(ComponentHandler<Card> onClick) void
collapse
(boolean fireEvent) disabled
(boolean disabled) void
expand
(boolean fireEvent) Same as expandable(null, false)expandable
(boolean toggleRightAligned) expandable
(ToggleHandler<Card> toggleHandler) Same as expandable(toggleHandler, false)expandable
(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)void
select()
Same as select(true, true)void
select
(boolean selected) Same as select(selected, true)void
select
(boolean selected, boolean fireEvent) Same as selectable(multi, null)selectable
(SelectionMode selectionMode) Same as selectable(selectionMode, null)selectable
(SelectionMode selectionMode, SelectHandler<Card> selectHandler) selectable
(SelectHandler<Card> selectHandler) Same as selectable(multi, onSelect)boolean
selected()
that()
Methods inherited from class org.patternfly.component.BaseComponent
componentType, element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
Methods inherited from interface org.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggle
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, innerHtml, on, on, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, title
Methods inherited from interface org.patternfly.style.Modifiers.Compact
compact, compact
Methods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabled
Methods inherited from interface org.patternfly.style.Modifiers.FullHeight
fullHeight, fullHeight
Methods 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
-
clickable
Same as clickable(null) -
clickable
-
clickable
Same as clickable(String, false) -
clickable
-
disabled
- Specified by:
disabled
in interfaceModifiers.Disabled<HTMLDivElement,
Card>
-
expandable
Same as expandable(null, false) -
expandable
-
expandable
Same as expandable(toggleHandler, false) -
expandable
-
name
-
that
- Specified by:
that
in 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:
collapse
in interfaceExpandable<HTMLDivElement,
Card>
-
expand
public void expand(boolean fireEvent) - Specified by:
expand
in interfaceExpandable<HTMLDivElement,
Card>
-