Package org.apache.juneau.rest.widget
Class ThemeMenuItem
java.lang.Object
org.apache.juneau.rest.widget.Widget
org.apache.juneau.rest.widget.MenuItemWidget
org.apache.juneau.rest.widget.ThemeMenuItem
- All Implemented Interfaces:
HtmlWidget
Widget that returns back a list of hyperlinks for rendering the contents of a page in the various default styles.
The variable it resolves is
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetContent
(RestRequest req, RestResponse res) The content of the popup.getLabel
(RestRequest req, RestResponse res) The label for the menu item as it's rendered in the menu bar.Methods inherited from class org.apache.juneau.rest.widget.MenuItemWidget
getAfterShowScript, getBeforeShowScript, getHtml, getScript, getStyle
Methods inherited from class org.apache.juneau.rest.widget.Widget
getFileFinder, getHtml, getName, getScript, getStyle, loadHtml, loadHtmlWithVars, loadScript, loadScriptWithVars, loadStyle, loadStyleWithVars
-
Constructor Details
-
ThemeMenuItem
public ThemeMenuItem()
-
-
Method Details
-
getLabel
Description copied from class:MenuItemWidget
The label for the menu item as it's rendered in the menu bar.- Specified by:
getLabel
in classMenuItemWidget
- Parameters:
req
- The HTTP request object.res
- The HTTP response object.- Returns:
- The menu item label.
-
getContent
Description copied from class:MenuItemWidget
The content of the popup.- Specified by:
getContent
in classMenuItemWidget
- Parameters:
req
- The HTTP request object.res
- The HTTP response object.- Returns:
- The content of the popup.
Can be any of the following types:Reader
- Serialized directly to the output.CharSequence
- Serialized directly to the output.- Other - Serialized as HTML using
HtmlSerializer.DEFAULT
.
Note that this includes any of theorg.apache.juneau.dto.html5
beans.
-