java.lang.Object | ||
↳ | com.microstrategy.utils.config.AbstractConfigurationElement | |
↳ | com.microstrategy.web.beans.EventInfo |
This class represents the "event" node from the XML. Each event is identified by its id and holds a list of all the arguments associated with the event. Children : The arguments node which holds the list of all the arguments. Attributes: "id" - The event id "name" - The name of the event "target" - The target for the event "event-class" - A fully qualified class name of the concrete WebEvent that should be instantiated for this event. Key : "id" attribute.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ATT_DEPRECATED | ||||||||||
String | ATT_EVENT_CLASS | ||||||||||
String | ATT_ID | ||||||||||
String | ATT_NAME | ||||||||||
String | ATT_TARGET | ||||||||||
String | ATT_WINDOW | ||||||||||
String | NODE_EVENT |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EventInfo()
Default constructor.
| |||||||||||
EventInfo(int id)
Constructor: Set the id field for the event
| |||||||||||
EventInfo(int id, String name)
Set the id and name for the event
| |||||||||||
EventInfo(int id, String name, String target)
Set the id, name and target for the event
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
deleteArgument(int id)
Delete the argument with the given id.
| ||||||||||
EventArgumentInfo |
getArgument(int argID)
Return the event argument with the given id from the arguments list
| ||||||||||
EventArgumentInfoList |
getArguments()
Return the list of arguments associated with this event
| ||||||||||
String |
getDeprecated()
Returns the deprecated field value.
| ||||||||||
String |
getEventClass()
Returns the fully qualified class name of the a class that implements
WebEvent
and that should be instantiated when creating concrete WebEvent instances for this EventInfo. | ||||||||||
int |
getID()
Return the id field value.
| ||||||||||
String |
getName()
Returns the name field value.
| ||||||||||
String |
getTarget()
Returns the target field value.
| ||||||||||
String |
getWindow()
Returns the window attribute value.
| ||||||||||
EventArgumentInfo |
newArgument(int id)
Create a new argument and add it to the arguments list.
| ||||||||||
void |
setDeprecated(String message)
Sets the deprecated field value.
| ||||||||||
void |
setEventClass(String value)
Indicates the fully qualified class name of the a class that implements
WebEvent
and that should be instantiated when creating concrete WebEvent instances for this EventInfo. | ||||||||||
void |
setID(int id)
Sets the id field value.
| ||||||||||
void |
setName(String name)
Sets the name field value.
| ||||||||||
void |
setTarget(String target)
Set the target field value.
| ||||||||||
void |
setWindow(String value)
Set the window attribute.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getKeyAttribute()
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the
getKey and
setKey methods. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Default constructor. Set the node name and register the child element
Constructor: Set the id field for the event
id | The event "id" for this object |
---|
Set the id and name for the event
id | The event "id" for this object |
---|---|
name | The event "name" for this object |
Set the id, name and target for the event
id | The event "id" for this object |
---|---|
name | The event "name" for this object |
target | The event "target" for this object |
Delete the argument with the given id. This is a shortcut to EventArgumentInfoList#deleteArgument()
id | The id of the argument to be deleted |
---|
Return the event argument with the given id from the arguments list
argID | The id for the argument to be returned |
---|
Return the list of arguments associated with this event
Returns the deprecated field value. When an event is marked as deprecated and
the events is used, the deprecated message is log as a warning. The event will still
be executed.
If the event is not deprecated, this method returns null
Returns the fully qualified class name of the a class that implements WebEvent
and that should be instantiated when creating concrete WebEvent instances for this EventInfo.
If an event-class is not specified, is up to the EventHandler to decide what
class to use (typically GenericWebEvent
).
Return the id field value. The id uniquely identifies the event across the application.
Returns the name field value. The name can be used to identify the action associated with the event
Returns the target field value. The target indicates the bean (if other than the source bean) who should handle the request for this event.
Returns the window attribute value. The window identifies the browser's window name where the event should be open when triggered.
Create a new argument and add it to the arguments list. This is a shortcut method to EventArgumentInfoList#newArgument()
id | The id (key) for the new argument to be created |
---|
Sets the deprecated field value. When an event is marked as deprecated and the events is used, the deprecated message is log as a warning. The event will still be executed.
message | The message to display indicating the event has been deprecated. |
---|
Indicates the fully qualified class name of the a class that implements WebEvent
and that should be instantiated when creating concrete WebEvent instances for this EventInfo.
Sets the id field value. The id most be unique across the application.
id | The new value for the "id" attribute |
---|
Sets the name field value. Set the name to identify the action associated with this event.
name | The new value for the "name" attribute |
---|
Set the target field value. The target indicates the bean (if other than the source bean) who should handle the request for this event.
target | The new value for the "target" attribute |
---|
Set the window attribute. The window identifies the browser's window name where the event should be open when triggered. To always open in a new window, use "_blank"; if no value is specified it opens in the current window.
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the getKey
and
setKey
methods.