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
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.getStyle(RestRequest req, RestResponse res) Returns CSS for the tooltips.Methods inherited from class org.apache.juneau.rest.widget.MenuItemWidget
getAfterShowScript, getBeforeShowScript, getHtml, getScriptMethods 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
-
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.
-
getStyle
Returns CSS for the tooltips.- Overrides:
getStylein classMenuItemWidget- Parameters:
req- The HTTP request object.res- The current HTTP response.- Returns:
- The CSS styles needed by this widget.
-