Module gomint.api
Package io.gomint.gui

Interface ButtonList

  • All Superinterfaces:
    Form<String>

    public interface ButtonList
    extends Form<String>
    Version:
    1.0
    Author:
    geNAZt
    • Method Detail

      • create

        static ButtonList create​(String title)
        Create a new button list
        Parameters:
        title - of the button list
        Returns:
        fresh button list
      • setContent

        ButtonList setContent​(String content)
        Set the text content which will be displayed above the button list
        Parameters:
        content - for display
        Returns:
        instance for chaining
      • addButton

        ButtonList addButton​(String id,
                             String text)
        Add a new simple button
        Parameters:
        id - of the button ( important for the response )
        text - for display
      • addImageButton

        ButtonList addImageButton​(String id,
                                  String text,
                                  String imagePath)
        Add a new image button
        Parameters:
        id - of the button ( important for the response )
        text - for display
        imagePath - from where the client should load the image (can be http / https)