Package org.patternfly.component.label
Class Label
- All Implemented Interfaces:
Attachable,Finder<HTMLElement>,HasElement<HTMLElement,,Label> HasHTMLElement<HTMLElement,,Label> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,Label> Closeable<HTMLElement,,Label> Component,HasValue<String>,WithIcon<HTMLElement,,Label> WithIconAndText<HTMLElement,,Label> WithIdentifier<HTMLElement,,Label> WithText<HTMLElement,,Label> ComponentContext<HTMLElement,,Label> Modifiers.Compact<HTMLElement,,Label> Modifiers.Disabled<HTMLElement,Label>
public class Label
extends BaseComponentFlat<HTMLElement,Label>
implements Closeable<HTMLElement,Label>, Modifiers.Compact<HTMLElement,Label>, ComponentContext<HTMLElement,Label>, Modifiers.Disabled<HTMLElement,Label>, HasValue<String>, WithText<HTMLElement,Label>, WithIcon<HTMLElement,Label>, WithIconAndText<HTMLElement,Label>, WithIdentifier<HTMLElement,Label>, Attachable
The label component allows users to add specific element captions for user clarity and convenience.
-
Method Summary
Modifier and TypeMethodDescriptionariaCloseLabel(String label) voidattach(MutationRecord mutationRecord) clickable(ComponentHandler<Label> clickHandler) closable()closable(CloseHandler<Label> closeHandler) voidvoiddetach(MutationRecord mutationRecord) disabled(boolean disabled) editable()editable(LabelEditCancelHandler cancelHandler, LabelEditCompleteHandler completeHandler) boolean<T> TbooleaninthashCode()iconAndText(Element icon, String text, IconPosition iconPosition) static Labelstatic Labelstatic Labelstatic LabelonClick(ComponentHandler<Label> clickHandler) onClose(CloseHandler<Label> closeHandler) onEditCancel(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.BaseComponentFlat
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.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, uniqueIdMethods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, titleMethods inherited from interface org.patternfly.style.Modifiers.Compact
compact, compactMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabledMethods inherited from interface org.patternfly.component.WithIconAndText
iconAndText, iconAndText
-
Method Details
-
label
-
label
-
label
-
label
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
equals
-
hashCode
public int hashCode() -
disabled
- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement,Label>
-
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 interfaceWithIcon<HTMLElement,Label>
-
removeIcon
- Specified by:
removeIconin interfaceWithIcon<HTMLElement,Label>
-
iconAndText
- Specified by:
iconAndTextin interfaceWithIconAndText<HTMLElement,Label>
-
href
-
text
- Specified by:
textin interfaceWithText<HTMLElement,Label>
-
textMaxWidth
-
store
- Specified by:
storein interfaceComponentContext<HTMLElement,Label>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Label>
-
ariaCloseLabel
-
onClose
- Specified by:
onClosein interfaceCloseable<HTMLElement,Label>
-
onClick
-
onEditCancel
-
onEditComplete
-
identifier
- Specified by:
identifierin interfaceWithIdentifier<HTMLElement,Label>
-
has
- Specified by:
hasin interfaceComponentContext<HTMLElement,Label>
-
get
- Specified by:
getin interfaceComponentContext<HTMLElement,Label>
-
value
-
text
- Specified by:
textin interfaceWithText<HTMLElement,Label>
-
close
- Specified by:
closein interfaceCloseable<HTMLElement,Label>
-