Module gomint.api
Package io.gomint.gui

Interface CustomForm

    • Method Detail

      • create

        static CustomForm create​(String title)
        Create a new custom form
        Parameters:
        title - of the form
        Returns:
        fresh custom form
      • createDropdown

        Dropdown createDropdown​(String id,
                                String text)
        Create a new dropbox
        Parameters:
        id - of the dropbox ( important for the response )
        text - for display
        Returns:
        new dropbox where you can add options
      • addInputField

        CustomForm addInputField​(String id,
                                 String text,
                                 String placeHolder,
                                 String defaultValue)
        Add a new input box
        Parameters:
        id - of the input ( important for the response )
        text - for display
        placeHolder - which should be put into the box
        defaultValue - of the input box
        Returns:
        instance for chaining
      • addLabel

        CustomForm addLabel​(String text)
        Add a new label
        Parameters:
        text - to display
        Returns:
        instance for chaning
      • addSlider

        CustomForm addSlider​(String id,
                             String text,
                             float min,
                             float max,
                             float step,
                             float defaultValue)
        Add a range slider
        Parameters:
        id - of the slider ( important for the response )
        text - for display
        min - value of the slider
        max - value of the slider (when max < min slider will not be added)
        step - in which steps the client will select on this slider
        defaultValue - of this slider
        Returns:
        instance for chaining
      • createStepSlider

        StepSlider createStepSlider​(String id,
                                    String text)
        Create a new step slider
        Parameters:
        id - of the step slider ( important for the response )
        text - for display
        Returns:
        new step slider where you can add steps
      • addToggle

        CustomForm addToggle​(String id,
                             String text,
                             boolean value)
        Add a toggle
        Parameters:
        id - of the toggle ( important for the response )
        text - for display
        value - true when checked, false when not
        Returns:
        instance for chaining