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,Modifiers.Inline<HTMLElement,Icon>,WithProgress<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(String iconClass)Factory method to create a new instance of this component.static Iconicon(PredefinedIcon predefinedIcon)Factory method to create a new instance of this component.IconiconSize(Size size)IconinProgress(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, addAll, addAll, addAll, addAll, addAll
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, css, id, id, innerHtml, on, textContent, toggle, toggle, toggle
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, title
-
Methods inherited from interface org.patternfly.core.Modifiers.Inline
inline, inline
-
Methods inherited from interface org.patternfly.core.WithProgress
inProgress, inProgress, inProgress, isInProgress, startProgress, stopProgress, toggleProgress
-
-
-
-
Method Detail
-
icon
public static Icon icon(PredefinedIcon predefinedIcon)
Factory method to create a new instance of this component.
-
icon
public static Icon icon(String iconClass)
Factory method to create a new instance of this component.
-
that
public Icon that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Icon>
-
inProgress
public Icon inProgress(boolean inProgress, String label, Consumer<Spinner> spinnerConsumer)
- Specified by:
inProgressin interfaceWithProgress<HTMLElement,Icon>
-
-