|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
ilog.views.servlet.ServerActionEvent
public class ServerActionEvent
An event object that is sent to listeners of actions requested
from the client side.
An action is generated from the client side when the
IlvView.performAction method
is called. This method queries the server for a new image, but
additional parameters are sent in the image request so that
an action such as adding, removing, or selecting objects can be
performed before the image is generated. An action is
defined by a name and a list of parameters. To implement
the action on the client side, you will implement the ServerActionListener
interface
and check the action name and parameters in the event.
IlvView.performAction(java.lang.String, java.lang.String[]),
IlvManagerServlet.addServerActionListener(ilog.views.servlet.ServerActionListener),
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ServerActionEvent(javax.servlet.http.HttpServletRequest request,
IlvManagerView view,
String action,
IlvManagerServletSupport support,
String[] params)
Creates an action event. |
|
ServerActionEvent(javax.servlet.http.HttpServletRequest request,
IlvManagerView view,
String action,
String[] params)
Deprecated. Beginning with JViews 8.0 use ServerActionEvent(HttpServletRequest, IlvManagerView, String, IlvManagerServletSupport, String[]) instead. |
|
| Method Summary | |
|---|---|
String |
getActionName()
Returns the name of the action corresponding to this event. |
float |
getFloatParameter(int index)
Returns a float parameter at the specified index. |
int |
getIntParameter(int index)
Returns an int parameter at the specified index. |
IlvManagerView |
getManagerView()
Returns the manager view to which the action applies. |
String[] |
getParameters()
Returns the array of all parameters of this action. |
IlvPoint |
getPointParameter(int index)
Returns an IlvPoint parameter at the specified index. |
IlvRect |
getRectParameter(int index)
Returns an IlvRect parameter at the specified index. |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the request origin of the action. |
IlvManagerServletSupport |
getServletSupport()
Returns the IlvManagerServletSupport that created that
event. |
String |
getStringParameter(int index)
Returns a string parameter at the specified index. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServerActionEvent(javax.servlet.http.HttpServletRequest request,
IlvManagerView view,
String action,
String[] params)
ServerActionEvent(HttpServletRequest, IlvManagerView, String, IlvManagerServletSupport, String[]) instead.
public ServerActionEvent(javax.servlet.http.HttpServletRequest request,
IlvManagerView view,
String action,
IlvManagerServletSupport support,
String[] params)
| Method Detail |
|---|
public String getActionName()
public String[] getParameters()
public javax.servlet.http.HttpServletRequest getRequest()
public IlvManagerView getManagerView()
public IlvManagerServletSupport getServletSupport()
IlvManagerServletSupport that created that
event.
public String getStringParameter(int index)
throws javax.servlet.ServletException
index - The parameter index.
javax.servlet.ServletException
public int getIntParameter(int index)
throws javax.servlet.ServletException
index - The parameter index.
javax.servlet.ServletException
public float getFloatParameter(int index)
throws javax.servlet.ServletException
index - The parameter index.
javax.servlet.ServletException
public IlvPoint getPointParameter(int index)
throws javax.servlet.ServletException
IlvPoint parameter at the specified index.
This utility method reads two float parameters starting at index
and creates an IlvPoint.
index - The parameter index.
javax.servlet.ServletException
public IlvRect getRectParameter(int index)
throws javax.servlet.ServletException
IlvRect parameter at the specified index.
This utility method reads four float parameters starting at index
and creates an IlvRect.
index - The parameter index.
javax.servlet.ServletException
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||