Package io.quarkus.devui.spi.page
Class Page
java.lang.Object
io.quarkus.devui.spi.page.Page
Define a page in Dev UI.
This is not a full web page, but rather the section in the middle where extensions can display data.
All pages (fragments) are rendered using Web components, but different builders exist to make it easy to define a page
Navigation to this page is also defined here.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPage(String icon, String title, String staticLabel, String dynamicLabel, String streamingLabel, String componentName, String componentLink, Map<String, String> metadata, boolean embed, boolean includeInMenu, boolean internalComponent, String namespace, String namespaceLabel, String extensionId) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExternalPageBuilderexternalPageBuilder(String name) Here you provide a url to an external resource.getIcon()getId()getTitle()booleanisEmbed()booleanbooleanstatic QuteDataPageBuilderquteDataPageBuilder(String name) Here you can render the data with a qute templatestatic RawDataPageBuilderrawDataPageBuilder(String name) Here you provide the data that should be rendered in raw json formatstatic TableDataPageBuildertableDataPageBuilder(String name) Here you provide the data that should be rendered in a tabletoString()static WebComponentPageBuilderHere you provide the Web Component that should be rendered.
-
Constructor Details
-
Page
protected Page(String icon, String title, String staticLabel, String dynamicLabel, String streamingLabel, String componentName, String componentLink, Map<String, String> metadata, boolean embed, boolean includeInMenu, boolean internalComponent, String namespace, String namespaceLabel, String extensionId)
-
-
Method Details
-
getId
-
getComponentRef
-
getNamespace
-
getNamespaceLabel
-
getIcon
-
getTitle
-
getStaticLabel
-
getDynamicLabel
-
getStreamingLabel
-
getComponentName
-
getComponentLink
-
isEmbed
public boolean isEmbed() -
isIncludeInMenu
public boolean isIncludeInMenu() -
isInternal
public boolean isInternal() -
getExtensionId
-
getMetadata
-
toString
-
webComponentPageBuilder
Here you provide the Web Component that should be rendered. You have full control over the page. You can use build time data if you made it available -
externalPageBuilder
Here you provide a url to an external resource. When code/markup, if can be displayed in a code view, when HTML it can render the HTML -
rawDataPageBuilder
Here you provide the data that should be rendered in raw json format -
quteDataPageBuilder
Here you can render the data with a qute template -
tableDataPageBuilder
Here you provide the data that should be rendered in a table
-