public interface Widget
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_WIDGET_ID
Parameter of the widget id
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String key)
return widget attribute
|
String |
getGroupName()
Get the group name to build the url based on it.
|
String |
getParameter(String key)
return widget parameter
|
Map<String,String> |
getParameters()
Get the parameter list
|
String |
getResponseMetadata()
Return a JSON object containing arbitrary metadata the server-side widget component wants to
transmit to the client-side component as part of the current response.
|
String |
getTile(String outputType)
Deprecated.
user
#getViewIdentifier(String) instead |
String |
getViewIdentifier()
Get the view identifier which defines the view for rendering the widgets content
|
String |
getWidgetId()
Get the id of the current widget
|
Object |
handleRequest()
Handle the request and return a result
|
boolean |
isSuccess() |
void |
setGroupName(String path)
Set the group name to build the url based on it.
|
void |
setParameter(String key,
String value)
set widget parameter
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
set the http servlet request for this widget
|
void |
setResponse(javax.servlet.http.HttpServletResponse response)
set the http servlet response for this widget
|
static final String PARAM_WIDGET_ID
Object getAttribute(String key)
key
- the parameter keyString getGroupName()
String getParameter(String key)
key
- the parameter keyString getResponseMetadata()
@Deprecated String getTile(String outputType)
#getViewIdentifier(String)
insteadoutputType
- the output type (rss, dhtml ...) without any '.'String getViewIdentifier()
String getWidgetId()
Object handleRequest()
boolean isSuccess()
void setGroupName(String path)
path
- relative path in which package this controller can be foundvoid setParameter(String key, String value)
key
- the parameter keyvalue
- the parameter valuevoid setRequest(javax.servlet.http.HttpServletRequest request)
request
- the requestvoid setResponse(javax.servlet.http.HttpServletResponse response)
response
- the responseCopyright © 2019 Communote team. All rights reserved.