Package org.patternfly.component.icon
Class Icon
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLElement,Icon>
-
- org.patternfly.component.icon.Icon
-
- All Implemented Interfaces:
Container<HTMLElement,Icon>,Finder<HTMLElement>,HasElement<HTMLElement,Icon>,HasHTMLElement<HTMLElement,Icon>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,Icon>,Component,WithProgress<HTMLElement,Icon>,Modifiers.Inline<HTMLElement,Icon>
public class Icon extends BaseComponent<HTMLElement,Icon> implements Modifiers.Inline<HTMLElement,Icon>, WithProgress<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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Iconicon(Element icon)Factory method to create a new instance of this component.static Iconicon(PredefinedIcon icon)Factory method to create a new instance of this component.IconiconSize(Size size)Iconprogress(boolean inProgress, String label, Consumer<Spinner> spinnerConsumer)Iconsize(Size size)Modifies the size of this component.Iconstatus(Status status)Iconthat()-
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.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, id, innerHtml, 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.Inline
inline, inline
-
Methods inherited from interface org.patternfly.component.WithProgress
inProgress, progress, progress, progress, startProgress, stopProgress, toggleProgress
-
-
-
-
Method Detail
-
icon
public static Icon icon(PredefinedIcon icon)
Factory method to create a new instance of this component.
-
icon
public static Icon icon(Element icon)
Factory method to create a new instance of this component.
-
progress
public Icon progress(boolean inProgress, String label, Consumer<Spinner> spinnerConsumer)
- Specified by:
progressin interfaceWithProgress<HTMLElement,Icon>
-
that
public Icon that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Icon>
-
-