Package org.patternfly.component.icon
Class Icon
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement,,Icon> ElementClassListMethods<HTMLElement,,Icon> ElementConsumerMethods<HTMLElement,,Icon> ElementContainerMethods<HTMLElement,,Icon> ElementEventMethods<HTMLElement,,Icon> ElementIdMethods<HTMLElement,,Icon> ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement,,Icon> HTMLElementDataMethods<HTMLElement,,Icon> HTMLElementStyleMethods<HTMLElement,,Icon> HTMLElementVisibilityMethods<HTMLElement,,Icon> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,Icon> Component,ComponentProgress<HTMLElement,,Icon> org.patternfly.style.Modifiers.Inline<HTMLElement,Icon>
public class Icon
extends BaseComponent<HTMLElement,Icon>
implements org.patternfly.style.Modifiers.Inline<HTMLElement,Icon>, ComponentProgress<HTMLElement,Icon>
An icon component is a container that allows for icons of varying dimensions, as well as spinners, to seamlessly replace each
other without shifting surrounding content.
icon(check());
icon(filter())
.size(IconSize.lg);
icon(exclamationTriangle())
.inline()
.status(warning);
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic IconFactory method to create a new instance of this component.static Iconicon(org.patternfly.icon.PredefinedIcon icon) Factory method to create a new instance of this component.Size of icon.progressIconSize(IconSize progressIconSize) Size of progress icon.Size of the icon component container and icon.status(org.patternfly.style.Status status) 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.patternfly.component.ComponentProgress
inProgress, progress, progress, progress, startProgress, stopProgress, toggleProgressMethods 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 org.patternfly.style.Modifiers.Inline
inline, inline
-
Method Details
-
icon
Factory method to create a new instance of this component. -
icon
Factory method to create a new instance of this component. -
size
Size of the icon component container and icon. -
iconSize
Size of icon. Overrides the icon size set by the size property. -
progressIconSize
Size of progress icon. Overrides the icon size set by thesize(IconSize)property. -
status
-
progress
- Specified by:
progressin interfaceComponentProgress<HTMLElement,Icon>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Icon>
-