Class ModalManager.ModalContext

All Implemented Interfaces:
AccessContext, AccessValidator, ChannelAccessContext
Enclosing class:
ModalManager

public final class ModalManager.ModalContext extends ComponentManager.ComponentContext<ModalSubmitInteractionEvent>
The execution context of a modal being submitted.
Since:
1.0
  • Method Details

    • getField

      public TextInput getField(String fieldId) throws IllegalArgumentException
      Retrieves the input field with the given custom ID.
      Parameters:
      fieldId - The custom ID.
      Returns:
      The input field with that ID.
      Throws:
      IllegalArgumentException - if there is no field in this context with that ID.
    • getFields

      public Collection<TextInput> getFields()
      Retrieves the input fields in this context.
      Returns:
      The input fields.