Interface ComponentLayout
-
- All Superinterfaces:
Iterable<Component>
,SerializableData
- All Known Implementing Classes:
ActionRow
public interface ComponentLayout extends SerializableData, Iterable<Component>
Represents a top-level layout used forComponents
such asButtons
.Components must always be contained within such a layout.
- See Also:
ActionRow
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ComponentLayout.Type
The layout types
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Button>
getButtons()
List of buttons in this component layout.List<Component>
getComponents()
List representation of this component layout.ComponentLayout.Type
getType()
TheComponentLayout.Type
of layout-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface net.dv8tion.jda.api.utils.data.SerializableData
toData
-
-
-
-
Method Detail
-
getComponents
@Nonnull List<Component> getComponents()
List representation of this component layout.
This list is modifiable. Note that empty action rows are not supported.- Returns:
List
of components in this action row
-
getType
@Nonnull ComponentLayout.Type getType()
TheComponentLayout.Type
of layout- Returns:
- The layout
ComponentLayout.Type
orComponentLayout.Type.UNKNOWN
-
-