public class StyleMenuItem extends MenuItemWidget
The variable it resolves is
An example of this widget can be found in the PetStoreResource
in the examples that provides
a drop-down menu item for rendering all other supported content types in plain text:
Constructor and Description |
---|
StyleMenuItem() |
Modifier and Type | Method and Description |
---|---|
Div |
getContent(RestRequest req)
Looks at the supported media types from the request and constructs a list of hyperlinks to render the data
as plain-text.
|
String |
getLabel(RestRequest req)
The label for the menu item as it's rendered in the menu bar.
|
getHtml, getScript, getStyle
getClasspathResourceAsString, getClasspathResourceAsString, getName, loadHtml, loadScript, loadStyle
public StyleMenuItem()
public String getLabel(RestRequest req)
MenuItemWidget
getLabel
in class MenuItemWidget
req
- The HTTP request object.public Div getContent(RestRequest req) throws Exception
getContent
in class MenuItemWidget
req
- The HTTP request object.Reader
- Serialized directly to the output.
CharSequence
- Serialized directly to the output.
HtmlSerializer.DEFAULT
.
org.apache.juneau.dto.html5
beans.
Exception
Copyright © 2018 Apache. All rights reserved.