Package org.apache.juneau.marshall.html
Interface HtmlWidget
- All Known Implementing Classes:
ContentTypeMenuItem,MenuItemWidget,PoweredByApache,PoweredByJuneau,QueryMenuItem,Widget
public interface HtmlWidget
-
Method Summary
Modifier and TypeMethodDescriptiongetHtml(VarResolverSession session) Resolves the HTML content for this widget.getName()The name for this widget.getScript(VarResolverSession session) Resolves any Javascript that should be added to the<head>/<script> element.getStyle(VarResolverSession session) Resolves any CSS styles that should be added to the<head>/<style> element.
-
Method Details
-
getHtml
Resolves the HTML content for this widget.A returned value of
null will cause nothing to be added to the page.- Parameters:
session- The current serializer session.- Returns:
- The HTML content of this widget.
-
getName
The name for this widget.- Returns:
- A unique identifying name for this widget.
-
getScript
Resolves any Javascript that should be added to the<head>/<script> element.A returned value of
null will cause nothing to be added to the page.- Parameters:
session- The current serializer session.- Returns:
- The Javascript needed by this widget.
-
getStyle
Resolves any CSS styles that should be added to the<head>/<style> element.A returned value of
null will cause nothing to be added to the page.- Parameters:
session- The current serializer session.- Returns:
- The CSS styles needed by this widget.
-