| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An ActionEvent is sent by the portlet container when an HTTP
 request is received that is associated with an action
| Field Summary | |
| static java.lang.String | ACTION_CONFIGUREName of the action if the portlet in Portlet.Mode.CONFIGUREmode | 
| static java.lang.String | ACTION_EDITName of the action if the portlet in Portlet.Mode.EDITmode | 
| static java.lang.String | ACTION_HELPName of the action if the portlet in Portlet.Mode.HELPmode | 
| static java.lang.String | ACTION_VIEWName of the action if the portlet in Portlet.Mode.VIEWmode | 
| static java.lang.String | RETURN_ERRORCode to return if an error has occured while perfoming the action | 
| static java.lang.String | RETURN_INPUTCode to return if mode input data are required | 
| static java.lang.String | RETURN_SUCCESSCode to return if performing the action was successfull | 
| Method Summary | |
|  void | addError(java.lang.Object error)Add an error. | 
|  java.lang.String | getAction()Returns the action that this action event carries. | 
|  net.sf.jportlet.portlet.PortletURI | getNextURI()Return the URI where to move after the action is executed. | 
|  java.lang.String | getReturnCode()Returns the returnCode. | 
|  boolean | hasErrors()Return trueif the action has errors | 
|  void | setNextURI(net.sf.jportlet.portlet.PortletURI nextURI)Set the URI where to move after the action is executed | 
|  void | setReturnCode(java.lang.String returnCode)Set the returnCode. | 
| Methods inherited from interface net.sf.jportlet.portlet.event.Event | 
| getPortlet, getPortletRequest, getPortletResponse | 
| Field Detail | 
public static final java.lang.String ACTION_CONFIGURE
Portlet.Mode.CONFIGURE mode
public static final java.lang.String ACTION_EDIT
Portlet.Mode.EDIT mode
public static final java.lang.String ACTION_HELP
Portlet.Mode.HELP mode
public static final java.lang.String ACTION_VIEW
Portlet.Mode.VIEW mode
public static final java.lang.String RETURN_ERROR
public static final java.lang.String RETURN_SUCCESS
public static final java.lang.String RETURN_INPUT
| Method Detail | 
public void addError(java.lang.Object error)
public boolean hasErrors()
true if the action has errors
public java.lang.String getAction()
ACTION_VIEW or ACTION_EDIT
 or ACTION_CONFIGURE or ACTION_HELP
public java.lang.String getReturnCode()
returnCode is used by the container for managing the 
 navigation using the <webflow> tag from the portlet
 deployment descriptor, if the nextURI 
 was not set with setNextURI(net.sf.jportlet.portlet.PortletURI).
public net.sf.jportlet.portlet.PortletURI getNextURI()
getReturnCode() to determine the URI where to move.
 This is useful for managing navigation inside the portlet.
public void setReturnCode(java.lang.String returnCode)
returnCode - RETURN_SUCCESS, 
RETURN_ERROR, 
RETURN_INPUTpublic void setNextURI(net.sf.jportlet.portlet.PortletURI nextURI)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||