Class DialogsRest

java.lang.Object
jakarta.servlet.GenericServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, BasicUniversalConfig, DefaultConfig, DefaultHtmlConfig

public class DialogsRest extends PetstoreConsolePage
Dialogs (builder only): a permanent demo of the two dialog navigation styles, a ModalDef.steps wizard and a nav:"folder" sectioned form, each opened from a ribbon button.

Nothing is stored: the submit endpoint accepts the dialog envelope and answers with a success toast. The page exists so the screenshot sweep and a person can see both dialogs in every palette and scheme.

Example:

GET /console/dev/dialogs GET /console/dev/dialogs/wizard-form GET /console/dev/dialogs/folder-form

See Also:
  • Constructor Details

  • Method Details

    • page

      public View page(RestRequest req)
      Renders the Dialogs page.
      Parameters:
      req - The request.
      Returns:
      The page.
    • rows

      public List<Map<String,Object>> rows()
      The rows the page's table draws: one per dialog style.
      Returns:
      One row per style.
    • wizardForm

      public ModalDef wizardForm()
      The wizard dialog: three steps with display fields, Back and Next, and a step rail.
      Returns:
      The dialog.
    • folderForm

      public ModalDef folderForm()
      The folder-tab dialog: a sectioned form drawn with square-topped folder tabs.
      Returns:
      The dialog.
    • submit

      Accepts either dialog's submit and stores nothing.
      Parameters:
      body - The dialog envelope; ignored.
      Returns:
      A success toast.