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 forComponentssuch asButtons.Components must always be contained within such a layout.
- See Also:
ActionRow
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classComponentLayout.TypeThe 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.TypegetType()TheComponentLayout.Typeof 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:
Listof components in this action row
-
getType
@Nonnull ComponentLayout.Type getType()
TheComponentLayout.Typeof layout- Returns:
- The layout
ComponentLayout.TypeorComponentLayout.Type.UNKNOWN
-
-