|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Widget
All Widgets must implement this interface, which exposes the
render(WidgetContext, com.jivesoftware.community.widget.Widget.ContainerSize) method.
A widget is responsible for rendering a portable chunk of code that can be installed and
executed within any separate HTML-based web page by an end user without requiring additional
compilation.
WidgetFrame,
WidgetManager| Nested Class Summary | |
|---|---|
static class |
Widget.ContainerSize
Enumeration of the size of the parent container. |
| Method Summary | |
|---|---|
java.lang.String |
getCssClass()
Returns a custom css class for the widget, or null if a custom css class does not exist. |
java.lang.String |
getCustomTitle()
Returns a custom title that will override the default title when the widget is rendered, or null if a custom title does not exist. |
java.lang.String |
getDescription(WidgetContext widgetContext)
Returns the default description of the widget |
long |
getID()
Gets the internal id of the widget |
java.lang.String |
getTitle(WidgetContext widgetContext)
Returns the default title of the widget |
java.lang.String |
render(WidgetContext widgetContext,
Widget.ContainerSize size)
Renders the HTML content of the widget. |
void |
setCustomTitle(java.lang.String customTitle)
Sets a custom title that will override the default title when the widget is rendered. |
void |
setID(long ID)
Sets the internal id of the widget |
| Method Detail |
|---|
long getID()
void setID(long ID)
ID - the internal id of the widgetjava.lang.String getTitle(WidgetContext widgetContext)
widgetContext - the widget context that will be used to get the title
java.lang.String getCustomTitle()
void setCustomTitle(java.lang.String customTitle)
customTitle - a custom title that will override the default title when the widget is rendered.java.lang.String getDescription(WidgetContext widgetContext)
widgetContext - the widget context that will be used to get the description
java.lang.String getCssClass()
java.lang.String render(WidgetContext widgetContext,
Widget.ContainerSize size)
widgetContext - the widget context that will be used to render this widgetsize - the container size to render the widget
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||