public interface HtmlWidget
Widgets must provide one of the following public constructors:
public Widget();
Widgets can be defined as inner classes of REST resource classes.
Modifier and Type | Method and Description |
---|---|
String |
getHtml(VarResolverSession session)
Resolves the HTML content for this widget.
|
String |
getName()
The name for this widget.
|
String |
getScript(VarResolverSession session)
Resolves any Javascript that should be added to the
|
String |
getStyle(VarResolverSession session)
Resolves any CSS styles that should be added to the
|
String getName()
String getHtml(VarResolverSession session) throws Exception
A returned value of
session
- The current serializer session.Exception
- Error occurred.String getScript(VarResolverSession session) throws Exception
A returned value of
session
- The current serializer session.Exception
- Error occurred.String getStyle(VarResolverSession session) throws Exception
A returned value of
session
- The current serializer session.Exception
- Error occurred.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.