Interface TextInputBuilderDelegate

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      TextInput build()
      Creates a TextInput instance with the given values.
      void copy​(TextInput textInput)
      Copy a TextInput's values into the builder.
      java.lang.String getCustomId()
      Get the TextInput's component identifier.
      java.lang.String getLabel()
      Get the TextInput's label.
      java.util.Optional<java.lang.Integer> getMaximumLength()
      Get the TextInput's maximum length.
      java.util.Optional<java.lang.Integer> getMinimumLength()
      Get the TextInput's minimum length.
      java.util.Optional<java.lang.String> getPlaceholder()
      Get the TextInput's placeholder.
      TextInputStyle getStyle()
      Get the TextInput's style.
      ComponentType getType()
      Get the TextInput's type.
      java.util.Optional<java.lang.String> getValue()
      Get the TextInput's value.
      boolean isRequired()
      Get whether the TextInput is required.
      void setCustomId​(java.lang.String customId)
      Set the TextInput's custom ID.
      void setLabel​(java.lang.String label)
      Set the TextInput's label.
      void setMaximumLength​(java.lang.Integer maximumLength)
      Set the TextInput's maximumLength length.
      void setMinimumLength​(java.lang.Integer minimumLength)
      Set the TextInput's minimum length.
      void setPlaceholder​(java.lang.String placeholder)
      Set the TextInput's placeholder.
      void setRequired​(boolean required)
      Set whether the TextInput is required.
      void setStyle​(TextInputStyle style)
      Set the TextInput's style.
      void setValue​(java.lang.String value)
      Set the TextInput's value.
    • Method Detail

      • copy

        void copy​(TextInput textInput)
        Copy a TextInput's values into the builder.
        Parameters:
        textInput - The TextInput to copy.
      • getStyle

        TextInputStyle getStyle()
        Get the TextInput's style.
        Returns:
        The TextInput's style.
      • getLabel

        java.lang.String getLabel()
        Get the TextInput's label.
        Returns:
        The TextInput's label.
      • getCustomId

        java.lang.String getCustomId()
        Get the TextInput's component identifier.
        Returns:
        The TextInput's component identifier.
      • getValue

        java.util.Optional<java.lang.String> getValue()
        Get the TextInput's value.
        Returns:
        The TextInput's value.
      • getPlaceholder

        java.util.Optional<java.lang.String> getPlaceholder()
        Get the TextInput's placeholder.
        Returns:
        The TextInput's placeholder.
      • getMinimumLength

        java.util.Optional<java.lang.Integer> getMinimumLength()
        Get the TextInput's minimum length.
        Returns:
        The TextInput's minimum length.
      • getMaximumLength

        java.util.Optional<java.lang.Integer> getMaximumLength()
        Get the TextInput's maximum length.
        Returns:
        The TextInput's maximum length.
      • isRequired

        boolean isRequired()
        Get whether the TextInput is required.
        Returns:
        Whether the TextInput is required.
      • setStyle

        void setStyle​(TextInputStyle style)
        Set the TextInput's style.
        Parameters:
        style - The style of the TextInput.
      • setLabel

        void setLabel​(java.lang.String label)
        Set the TextInput's label.
        Parameters:
        label - The TextInput's label.
      • setValue

        void setValue​(java.lang.String value)
        Set the TextInput's value.
        Parameters:
        value - The TextInput's label.
      • setPlaceholder

        void setPlaceholder​(java.lang.String placeholder)
        Set the TextInput's placeholder.
        Parameters:
        placeholder - The TextInput's placeholder.
      • setMinimumLength

        void setMinimumLength​(java.lang.Integer minimumLength)
        Set the TextInput's minimum length.
        Parameters:
        minimumLength - The TextInput's minimum length.
      • setMaximumLength

        void setMaximumLength​(java.lang.Integer maximumLength)
        Set the TextInput's maximumLength length.
        Parameters:
        maximumLength - The TextInput's maximumLength length.
      • setCustomId

        void setCustomId​(java.lang.String customId)
        Set the TextInput's custom ID.
        Parameters:
        customId - The TextInput's identifier.
      • setRequired

        void setRequired​(boolean required)
        Set whether the TextInput is required.
        Parameters:
        required - Whether the TextInput is required or not.
      • build

        TextInput build()
        Creates a TextInput instance with the given values.
        Returns:
        The created TextInput instance.