Class DialogsRest
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.apache.juneau.rest.server.servlet.RestServlet
org.apache.juneau.rest.server.servlet.BasicRestServlet
org.apache.juneau.petstore.console.PetstoreConsolePage
org.apache.juneau.petstore.console.dev.DialogsRest
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,BasicUniversalConfig,DefaultConfig,DefaultHtmlConfig
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.rest.server.servlet.RestServlet
RestServlet.Builder<R extends RestServlet,SELF extends RestServlet.Builder<R, SELF>>, RestServlet.DefaultBuilder<R extends RestServlet> -
Field Summary
Fields inherited from class org.apache.juneau.petstore.console.PetstoreConsolePage
PAGE_HEADER, TEMPLATESFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe folder-tab dialog: a sectioned form drawn with square-topped folder tabs.page(RestRequest req) Renders the Dialogs page.rows()The rows the page's table draws: one per dialog style.Accepts either dialog's submit and stores nothing.The wizard dialog: three steps with display fields, Back and Next, and a step rail.Methods inherited from class org.apache.juneau.petstore.console.PetstoreConsolePage
builder, freemarker, store, twinMethods inherited from class org.apache.juneau.rest.server.servlet.RestServlet
builder, createAuthenticator, destroy, doLog, getContext, getPath, getPaths, getRequest, getResponse, getRestBuilder, init, log, log, service, setContextMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, isSensitiveHeader, serviceMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
DialogsRest
public DialogsRest()
-
-
Method Details
-
page
Renders the Dialogs page.- Parameters:
req- The request.- Returns:
- The page.
-
rows
The rows the page's table draws: one per dialog style.- Returns:
- One row per style.
-
wizardForm
The wizard dialog: three steps with display fields, Back and Next, and a step rail.- Returns:
- The dialog.
-
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.
-