Class ToggleGroupItem
java.lang.Object
org.patternfly.component.SubComponent<HTMLDivElement, ToggleGroupItem>
org.patternfly.component.togglegroup.ToggleGroupItem
- All Implemented Interfaces:
ElementAttributeMethods<HTMLDivElement, ToggleGroupItem>, ElementClassListMethods<HTMLDivElement, ToggleGroupItem>, ElementConsumerMethods<HTMLDivElement, ToggleGroupItem>, ElementContainerDelegate<HTMLDivElement, ToggleGroupItem>, ElementContainerMethods<HTMLDivElement, ToggleGroupItem>, ElementEventMethods<HTMLDivElement, ToggleGroupItem>, ElementIdMethods<HTMLDivElement, ToggleGroupItem>, ElementQueryMethods<HTMLDivElement>, ElementTextMethods<HTMLDivElement, ToggleGroupItem>, HTMLElementAttributeMethods<HTMLDivElement, ToggleGroupItem>, HTMLElementDataMethods<HTMLDivElement, ToggleGroupItem>, HTMLElementStyleMethods<HTMLDivElement, ToggleGroupItem>, HTMLElementVisibilityMethods<HTMLDivElement, ToggleGroupItem>, IsElement<HTMLDivElement>, TypedBuilder<HTMLDivElement, ToggleGroupItem>, ComponentIcon<HTMLDivElement, ToggleGroupItem>, ComponentIconAndText<HTMLDivElement, ToggleGroupItem>, HasIdentifier<HTMLDivElement, ToggleGroupItem>, org.patternfly.core.ComponentContext<HTMLDivElement, ToggleGroupItem>, org.patternfly.core.OuiaSupport<HTMLDivElement, ToggleGroupItem>, org.patternfly.style.Modifiers.Disabled<HTMLDivElement, ToggleGroupItem>
public class ToggleGroupItem
extends SubComponent<HTMLDivElement, ToggleGroupItem>
implements org.patternfly.core.ComponentContext<HTMLDivElement, ToggleGroupItem>, ComponentIcon<HTMLDivElement, ToggleGroupItem>, ComponentIconAndText<HTMLDivElement, ToggleGroupItem>, org.patternfly.style.Modifiers.Disabled<HTMLDivElement, ToggleGroupItem>, ElementContainerDelegate<HTMLDivElement, ToggleGroupItem>, ElementTextMethods<HTMLDivElement, ToggleGroupItem>, HasIdentifier<HTMLDivElement, ToggleGroupItem>
An individual toggle button within a
ToggleGroup component.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondisabled(boolean disabled) <T> TbooleaniconAndText(Element icon, String text, IconPosition iconPosition) Retrieves the identifier associated with this component.booleanonClick(org.patternfly.handler.ComponentHandler<ToggleGroupItem> clickHandler) <T> ToggleGroupItemtext()that()static ToggleGroupItemtoggleGroupItem(String identifier) static ToggleGroupItemtoggleGroupItem(String identifier, String text) Methods inherited from class SubComponent
element, ouiaComponentType, registerSubComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.core.ComponentContext
get, getMethods inherited from interface ComponentIcon
iconMethods inherited from interface ComponentIconAndText
iconAndText, iconAndTextMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerDelegate
add, add, addMethods inherited from interface ElementContainerMethods
add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabledMethods inherited from interface org.patternfly.core.OuiaSupport
initOuia, initOuia, ouiaId, ouiaSafe, ouiaTransition
-
Field Details
-
SUB_COMPONENT_ID
- See Also:
-
SUB_COMPONENT_NAME
- See Also:
-
-
Method Details
-
toggleGroupItem
-
toggleGroupItem
-
containerDelegate
- Specified by:
containerDelegatein interfaceElementContainerDelegate<HTMLDivElement, ToggleGroupItem>
-
disabled
- Specified by:
disabledin interfaceorg.patternfly.style.Modifiers.Disabled<HTMLDivElement, ToggleGroupItem>
-
icon
- Specified by:
iconin interfaceComponentIcon<HTMLDivElement, ToggleGroupItem>
-
iconAndText
- Specified by:
iconAndTextin interfaceComponentIconAndText<HTMLDivElement, ToggleGroupItem>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLDivElement, ToggleGroupItem>
-
text
- Specified by:
textin interfaceElementTextMethods<HTMLDivElement, ToggleGroupItem>
-
store
- Specified by:
storein interfaceorg.patternfly.core.ComponentContext<HTMLDivElement, ToggleGroupItem>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement, ToggleGroupItem>
-
onClick
public ToggleGroupItem onClick(org.patternfly.handler.ComponentHandler<ToggleGroupItem> clickHandler) -
identifier
Description copied from interface:HasIdentifierRetrieves the identifier associated with this component.- Specified by:
identifierin interfaceHasIdentifier<HTMLDivElement, ToggleGroupItem>- Returns:
- the identifier of the component
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceorg.patternfly.style.Modifiers.Disabled<HTMLDivElement, ToggleGroupItem>
-
text
- Specified by:
textin interfaceElementTextMethods<HTMLDivElement, ToggleGroupItem>
-
has
- Specified by:
hasin interfaceorg.patternfly.core.ComponentContext<HTMLDivElement, ToggleGroupItem>
-
get
- Specified by:
getin interfaceorg.patternfly.core.ComponentContext<HTMLDivElement, ToggleGroupItem>
-