Package io.prismmc.prism.dashboard
@NullMarked
package io.prismmc.prism.dashboard
Pages of a plugin's own in Prism's web dashboard, and actions to run from them.
A plugin describes its pages with View: figures, tables,
charts, forms, buttons. The dashboard draws them in its own style, in both themes and both
languages, and draws them again when the plugin says something changed. For anything else, a
page can be the plugin's own web files (Page.view(String)),
which talk to the plugin through the dashboard's script, window.prism.
-
ClassDescriptionAn action of an extension, as
Extension.action(String, ActionHandler)made it.An action as it runs: who runs it, from which page, and its values: a form's fields, a button'sView.Button.with(String, Object), or what a view's script sent.What an action does, answering at once.What an action does, answering when its future completes: work on the thread of an entity or a region (ActionContext.entity(Entity, Supplier),ActionContext.region(Location, Supplier)), a database, a web service.Prism's web dashboard, as plugins see it: where a plugin gets itsExtension.What the server implements behindDashboard.Where a page's renderer or an action's handler runs.A plugin's place in the dashboard: a link in the sidebar, its pages, and the actions they run.One page of an extension: drawn from what itsRendererdescribes, or the plugin's own web page (Page.view(String)).Describes a page, for one dashboard, each time it is drawn.What an action answers: a message for the dashboard to show, whether the page is drawn again, the page to go to, and data for a view's script.The dashboard's colours, the same in both themes.What a page shows, top to bottom: the dashboard draws each block in its own style.The bars ofView.bars(Consumer).One button ofView.Buttons.Buttons ofView.buttons(Consumer)andView.Row.buttons(Consumer).A chart ofView.chart(Consumer): lines over the same moments.The pairs ofView.facts(Consumer).One field of aView.Form.The fields ofView.form(String, Consumer), in order.A row of aView.Table: one cell per call.One figure ofView.Stats.The figures ofView.stats(Consumer).A table ofView.table(Consumer).The tabs ofView.tabs(Consumer).Who uses the dashboard, for a page drawn or an action run.