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
Constructors -
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, getStyleMethods 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
-
getContent
Description copied from class:MenuItemWidgetThe content of the popup.- Specified by:
getContentin 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 the HTML5 bean classes.
-
getLabel
Description copied from class:MenuItemWidgetThe label for the menu item as it's rendered in the menu bar.- Specified by:
getLabelin classMenuItemWidget- Parameters:
req- The HTTP request object.res- The HTTP response object.- Returns:
- The menu item label.
-