Package org.patternfly.component.label
Class Label
- All Implemented Interfaces:
Attachable,ElementAttributeMethods<HTMLElement,,Label> ElementClassListMethods<HTMLElement,,Label> ElementConsumerMethods<HTMLElement,,Label> ElementContainerMethods<HTMLElement,,Label> ElementEventMethods<HTMLElement,,Label> ElementIdMethods<HTMLElement,,Label> ElementQueryMethods<HTMLElement>,ElementTextDelegate<HTMLElement,,Label> ElementTextMethods<HTMLElement,,Label> HTMLElementAttributeMethods<HTMLElement,,Label> HTMLElementDataMethods<HTMLElement,,Label> HTMLElementStyleMethods<HTMLElement,,Label> HTMLElementVisibilityMethods<HTMLElement,,Label> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,Label> Closeable<HTMLElement,,Label> Component,ComponentIcon<HTMLElement,,Label> ComponentIconAndText<HTMLElement,,Label> HasIdentifier<HTMLElement,,Label> HasValue<String>,org.patternfly.core.ComponentContext<HTMLElement,,Label> org.patternfly.style.Modifiers.Compact<HTMLElement,,Label> org.patternfly.style.Modifiers.Disabled<HTMLElement,Label>
public class Label
extends BaseComponent<HTMLElement,Label>
implements Attachable, Closeable<HTMLElement,Label>, org.patternfly.style.Modifiers.Compact<HTMLElement,Label>, org.patternfly.core.ComponentContext<HTMLElement,Label>, ComponentIcon<HTMLElement,Label>, ComponentIconAndText<HTMLElement,Label>, org.patternfly.style.Modifiers.Disabled<HTMLElement,Label>, ElementTextDelegate<HTMLElement,Label>, HasIdentifier<HTMLElement,Label>, HasValue<String>
The label component allows users to add specific element captions for user clarity and convenience.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionariaCloseLabel(String label) voidattach(MutationRecord mutationRecord) closable()voidvoiddetach(MutationRecord mutationRecord) disabled(boolean disabled) editable()editable(LabelEditCancelHandler cancelHandler, LabelEditCompleteHandler completeHandler) booleanfilled()Same as filled(true)filled(boolean filled) Adds/removes modifier(filled)<T> TbooleaninthashCode()iconAndText(Element icon, String text, IconPosition iconPosition) static Labelstatic Labelstatic Labelstatic LabelonEditCancel(LabelEditCancelHandler cancelHandler) onEditComplete(LabelEditCompleteHandler completeHandler) outline()Same as outline(true)outline(boolean outline) Adds/removes modifier(outline)<T> Labeltext()textMaxWidth(String maxWidth) that()value()Methods inherited from class org.patternfly.component.BaseComponent
componentType, elementMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.core.ComponentContext
get, getMethods inherited from interface org.patternfly.component.ComponentIcon
iconMethods inherited from interface org.patternfly.component.ComponentIconAndText
iconAndText, iconAndTextMethods 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.Compact
compact, compactMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabled
-
Method Details
-
label
-
label
-
label
-
label
-
textDelegate
- Specified by:
textDelegatein interfaceElementTextDelegate<HTMLElement,Label>
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
equals
-
hashCode
public int hashCode() -
disabled
- Specified by:
disabledin interfaceorg.patternfly.style.Modifiers.Disabled<HTMLElement,Label>
-
filled
Same as filled(true) -
filled
Adds/removes modifier(filled) -
outline
Same as outline(true) -
outline
Adds/removes modifier(outline) -
closable
-
closable
-
clickable
-
clickable
-
editable
-
editable
public Label editable(LabelEditCancelHandler cancelHandler, LabelEditCompleteHandler completeHandler) -
icon
- Specified by:
iconin interfaceComponentIcon<HTMLElement,Label>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLElement,Label>
-
iconAndText
- Specified by:
iconAndTextin interfaceComponentIconAndText<HTMLElement,Label>
-
href
-
status
-
text
- Specified by:
textin interfaceElementTextDelegate<HTMLElement,Label> - Specified by:
textin interfaceElementTextMethods<HTMLElement,Label>
-
textMaxWidth
-
store
- Specified by:
storein interfaceorg.patternfly.core.ComponentContext<HTMLElement,Label>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Label>
-
ariaCloseLabel
-
onClose
- Specified by:
onClosein interfaceCloseable<HTMLElement,Label>
-
onClick
-
onEditCancel
-
onEditComplete
-
identifier
- Specified by:
identifierin interfaceHasIdentifier<HTMLElement,Label>
-
has
- Specified by:
hasin interfaceorg.patternfly.core.ComponentContext<HTMLElement,Label>
-
get
- Specified by:
getin interfaceorg.patternfly.core.ComponentContext<HTMLElement,Label>
-
value
-
text
- Specified by:
textin interfaceElementTextDelegate<HTMLElement,Label> - Specified by:
textin interfaceElementTextMethods<HTMLElement,Label>
-
close
- Specified by:
closein interfaceCloseable<HTMLElement,Label>
-