public class ServletActionEvent extends EventObject implements Serializable
The ServletActionEvent
is fired by the servlet support when a
client side action involving a graphic component and an object is triggered.
This listener is designed to be registered on an
IlvMenuItem
.
source
Constructor and Description |
---|
ServletActionEvent(Object source,
EventObject event)
Creates a new
ServletActionEvent instance. |
Modifier and Type | Method and Description |
---|---|
String[] |
getAdditionalParameters()
Returns the optional additional parameters.
|
Object |
getGraphicComponent()
Returns the graphic component that contains the selected object.
|
Object |
getObject()
Returns the object selected on the graphic component when this
action was triggered, or
null if no object was
selected. |
EventObject |
getSourceEvent()
If this event instance is translated from another event, returns the
source event or
false otherwise. |
void |
setAdditionalParameters(String[] additionalParameters)
Sets the optional additional parameters.
|
void |
setGraphicComponent(Object graphicComponent)
Sets the graphic component that contains the selected object.
|
void |
setObject(Object object)
Returns the object selected on the graphic component when this
action was triggered.
|
getSource, toString
public ServletActionEvent(Object source, EventObject event)
ServletActionEvent
instance.source
- The source of the event.event
- An optional event that has been translated into this event.public EventObject getSourceEvent()
false
otherwise.null
.public Object getGraphicComponent()
public void setGraphicComponent(Object graphicComponent)
graphicComponent
- The graphic component.public Object getObject()
null
if no object was
selected.public void setObject(Object object)
object
- The selected object.public String[] getAdditionalParameters()
public void setAdditionalParameters(String[] additionalParameters)
additionalParameters
- The optional additional parameters.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.