|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.sf.jportlet.impl.EventImpl
|
+--net.sf.jportlet.impl.ActionEventImpl
Implementation of ActionEvent
| Field Summary |
| Fields inherited from class net.sf.jportlet.impl.EventImpl |
_request, _response |
| Fields inherited from interface net.sf.jportlet.portlet.event.ActionEvent |
ACTION_CONFIGURE, ACTION_EDIT, ACTION_HELP, ACTION_VIEW, RETURN_ERROR, RETURN_INPUT, RETURN_SUCCESS |
| Constructor Summary | |
ActionEventImpl(java.lang.String action,
net.sf.jportlet.impl.PortletRequestImpl request,
net.sf.jportlet.impl.PortletResponseImpl response)
|
|
| 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 true if 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 class net.sf.jportlet.impl.EventImpl |
getPortlet, getPortletRequest, getPortletResponse |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.jportlet.portlet.event.Event |
getPortlet, getPortletRequest, getPortletResponse |
| Constructor Detail |
public ActionEventImpl(java.lang.String action,
net.sf.jportlet.impl.PortletRequestImpl request,
net.sf.jportlet.impl.PortletResponseImpl response)
| Method Detail |
public java.lang.String getAction()
ActionEventActionEvent.ACTION_VIEW or ActionEvent.ACTION_EDIT
or ActionEvent.ACTION_CONFIGURE or ActionEvent.ACTION_HELP
getAction in interface ActionEventActionEvent.getAction()public java.lang.String getReturnCode()
ActionEventreturnCode 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 ActionEvent.setNextURI(net.sf.jportlet.portlet.PortletURI).
getReturnCode in interface ActionEventnet.sf.jportlet.portlet.impl.EventImpl#getReturnCode()public void setReturnCode(java.lang.String returnCode)
ActionEvent
setReturnCode in interface ActionEventreturnCode - net.sf.jportlet.portlet.impl.EventImpl#setReturnCode(String)public void addError(java.lang.Object error)
ActionEvent
addError in interface ActionEventActionEvent.addError(java.lang.Object)public boolean hasErrors()
ActionEventtrue if the action has errors
hasErrors in interface ActionEventActionEvent.hasErrors()public net.sf.jportlet.portlet.PortletURI getNextURI()
ActionEventActionEvent.getReturnCode() to determine the URI where to move.
This is useful for managing navigation inside the portlet.
getNextURI in interface ActionEventActionEvent.getNextURI()public void setNextURI(net.sf.jportlet.portlet.PortletURI nextURI)
ActionEvent
setNextURI in interface ActionEventActionEvent.setNextURI(net.sf.jportlet.portlet.PortletURI)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||