Package org.patternfly.component.label
Class Label
- java.lang.Object
-
- org.patternfly.component.BaseComponentFlat<HTMLElement,Label>
-
- org.patternfly.component.label.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>,WithText<HTMLElement,Label>,Modifiers.Compact<HTMLElement,Label>
public class Label extends BaseComponentFlat<HTMLElement,Label> implements Closeable<HTMLElement,Label>, Modifiers.Compact<HTMLElement,Label>, WithText<HTMLElement,Label>, WithIcon<HTMLElement,Label>, WithIconAndText<HTMLElement,Label>, HasValue<String>, Attachable
The label component allows users to add specific element captions for user clarity and convenience.
-
-
Method Summary
-
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.jboss.elemento.Attachable
detach
-
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.Compact
compact, compact
-
Methods inherited from interface org.patternfly.component.WithIconAndText
iconAndText, iconAndText
-
-
-
-
Method Detail
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
outline
public Label outline()
Same as outline(true)
-
outline
public Label outline(boolean outline)
Adds/removes modifier(outline)
-
closable
public Label closable()
-
closable
public Label closable(CloseHandler<Label> closeHandler)
-
clickable
public Label clickable()
-
clickable
public Label clickable(ComponentHandler<Label> clickHandler)
-
editable
public Label editable()
-
editable
public Label editable(LabelEditCancelHandler cancelHandler, LabelEditCompleteHandler completeHandler)
-
removeIcon
public Label removeIcon()
- Specified by:
removeIconin interfaceWithIcon<HTMLElement,Label>
-
iconAndText
public Label iconAndText(Element icon, String text, IconPosition iconPosition)
- Specified by:
iconAndTextin interfaceWithIconAndText<HTMLElement,Label>
-
that
public Label that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Label>
-
onClose
public Label onClose(CloseHandler<Label> closeHandler)
- Specified by:
onClosein interfaceCloseable<HTMLElement,Label>
-
onClick
public Label onClick(ComponentHandler<Label> clickHandler)
-
onEditCancel
public Label onEditCancel(LabelEditCancelHandler cancelHandler)
-
onEditComplete
public Label onEditComplete(LabelEditCompleteHandler completeHandler)
-
close
public void close(Event event, boolean fireEvent)
- Specified by:
closein interfaceCloseable<HTMLElement,Label>
-
-