|
Jive API (3.0.13) 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 | |
|---|---|
String |
getCssClass()
Returns a custom css class for the widget, or null if a custom css class does not exist. |
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. |
String |
getDescription(WidgetContext widgetContext)
Returns the default description of the widget |
String |
getFeedURL()
Returns the location of a feed for this widget or null if no feed exists. |
long |
getID()
Gets the internal id of the widget |
String |
getTitle(WidgetContext widgetContext)
Returns the default title of the widget |
boolean |
isEnabled(WidgetContext widgetContext)
Gives widgets the ability to determine whether or not the widget should be available for end users / administrators to add in a specific widget context. |
boolean |
isPropertyEnabled(WidgetContext widgetContext,
String propertyName)
Gives widgets the ability to determine whether or not a specific property should be available during editing of the widget by end users / administrators. |
boolean |
isRefreshable()
Gives widgets the ability to determine whether or not they can be reloaded via an asynchrounous refresh. |
String |
render(WidgetContext widgetContext,
Widget.ContainerSize size)
Renders the HTML content of the widget. |
void |
setCustomTitle(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 widgetString getTitle(WidgetContext widgetContext)
widgetContext - the widget context that will be used to get the title
String getCustomTitle()
void setCustomTitle(String customTitle)
customTitle - a custom title that will override the default title when the widget is rendered.String getDescription(WidgetContext widgetContext)
widgetContext - the widget context that will be used to get the description
String getCssClass()
String getFeedURL()
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
boolean isEnabled(WidgetContext widgetContext)
widgetContext - the context the widget would be rendered in
boolean isPropertyEnabled(WidgetContext widgetContext,
String propertyName)
widgetContext - the context the widget would be rendered inpropertyName - the property to enable for editing
boolean isRefreshable()
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||