Package org.apache.juneau.rest.widget
Class QueryMenuItem
java.lang.Object
org.apache.juneau.rest.widget.Widget
org.apache.juneau.rest.widget.MenuItemWidget
org.apache.juneau.rest.widget.QueryMenuItem
- All Implemented Interfaces:
HtmlWidget
Widget that returns a menu-item drop-down form for entering search/view/sort arguments.
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.getStyle
(RestRequest req, RestResponse res) Returns CSS for the tooltips.Methods inherited from class org.apache.juneau.rest.widget.MenuItemWidget
getAfterShowScript, getBeforeShowScript, getHtml, getScript
Methods inherited from class org.apache.juneau.rest.widget.Widget
getFileFinder, getHtml, getName, getScript, getStyle, loadHtml, loadHtmlWithVars, loadScript, loadScriptWithVars, loadStyle, loadStyleWithVars
-
Constructor Details
-
QueryMenuItem
public QueryMenuItem()
-
-
Method Details
-
getStyle
Returns CSS for the tooltips.- Overrides:
getStyle
in classMenuItemWidget
- Parameters:
req
- The HTTP request object.res
- The current HTTP response.- Returns:
- The CSS styles needed by this widget.
-
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.
-