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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionariaCloseLabel
(String label) void
attach
(MutationRecord mutationRecord) clickable
(ComponentHandler<Label> clickHandler) closable()
closable
(CloseHandler<Label> closeHandler) void
void
detach
(MutationRecord mutationRecord) disabled
(boolean disabled) editable()
editable
(LabelEditCancelHandler cancelHandler, LabelEditCompleteHandler completeHandler) boolean
<T> T
boolean
int
hashCode()
iconAndText
(Element icon, String text, IconPosition iconPosition) static Label
static Label
static Label
static Label
onClick
(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> Label
text()
textMaxWidth
(String maxWidth) that()
value()
Methods inherited from class org.patternfly.component.BaseComponentFlat
componentType, element
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.patternfly.core.ComponentContext
get, get
Methods 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, 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.Compact
compact, compact
Methods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabled
Methods inherited from interface org.patternfly.component.WithIconAndText
iconAndText, iconAndText
-
Method Details
-
label
-
label
-
label
-
label
-
attach
- Specified by:
attach
in interfaceAttachable
-
detach
- Specified by:
detach
in interfaceAttachable
-
equals
-
hashCode
public int hashCode() -
disabled
- Specified by:
disabled
in 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:
icon
in interfaceWithIcon<HTMLElement,
Label>
-
removeIcon
- Specified by:
removeIcon
in interfaceWithIcon<HTMLElement,
Label>
-
iconAndText
- Specified by:
iconAndText
in interfaceWithIconAndText<HTMLElement,
Label>
-
href
-
text
- Specified by:
text
in interfaceWithText<HTMLElement,
Label>
-
textMaxWidth
-
store
- Specified by:
store
in interfaceComponentContext<HTMLElement,
Label>
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLElement,
Label>
-
ariaCloseLabel
-
onClose
- Specified by:
onClose
in interfaceCloseable<HTMLElement,
Label>
-
onClick
-
onEditCancel
-
onEditComplete
-
identifier
- Specified by:
identifier
in interfaceWithIdentifier<HTMLElement,
Label>
-
has
- Specified by:
has
in interfaceComponentContext<HTMLElement,
Label>
-
get
- Specified by:
get
in interfaceComponentContext<HTMLElement,
Label>
-
value
-
text
- Specified by:
text
in interfaceWithText<HTMLElement,
Label>
-
close
- Specified by:
close
in interfaceCloseable<HTMLElement,
Label>
-