public class ContentTypeMenuItem 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 |
---|
ContentTypeMenuItem() |
Modifier and Type | Method and Description |
---|---|
Div |
getContent(RestRequest req)
The content of the popup.
|
String |
getLabel(RestRequest req)
The label for the menu item as it's rendered in the menu bar.
|
getAfterShowScript, getBeforeShowScript, getHtml, getScript, getStyle
getClasspathResourceAsString, getClasspathResourceAsString, getName, loadHtml, loadHtmlWithVars, loadScript, loadScriptWithVars, loadStyle, loadStyleWithVars
public ContentTypeMenuItem()
public String getLabel(RestRequest req)
MenuItemWidget
getLabel
in class MenuItemWidget
req
- The HTTP request object.public Div getContent(RestRequest req)
MenuItemWidget
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.
Copyright © 2018 Apache. All rights reserved.