|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public IEventDescription
It contains various pieces of information describing an event.
Field Summary | |
---|---|
String |
alias
The alias of the event. |
String |
name
The name of the event. |
String |
type
The type of any payload. |
String |
handlingFn
This provides the name of a callback function with the following signature and no return value. |
String |
lang
This provides the default language of all the localized attributes within this event description. |
Boolean |
isHandled
This indicates if an event is a handled event or not. |
Boolean |
isPublished
This indicates if an event is a published event or not. |
Constructor Summary | |
---|---|
constructor()
|
Method Summary | |
---|---|
String |
getDescription(String locale)
Deprecated. please use getAttribute("description",locale) instead |
String |
getAttribute(String attributeName,
String locale)
This method returns the asking value of an attribute of the event description. |
IEventDescription |
setAttribute(String attributeName,
String attributeValue,
String locale)
The method set the value for a given event description attribute.It returns a handle of this eventdescription, return null upon failure. |
Field Detail |
---|
String alias
String name
String type
String handlingFn
function(ievent)
String lang
Boolean isHandled
Boolean isPublished
Constructor Detail |
---|
public constructor()
Method Detail |
---|
String getDescription(String locale)
locale
-
required locale. Can be NULL. If no locale is supplied, the default locale of the iWidget is used (with "en" being the default iWidget locale).
String getAttribute(String attributeName, String locale)
attributeName
-
name of attribute. Can Not be NULL.locale
-
required locale. Can be NULL. If no locale is supplied, the default locale of the iWidget is used (with "en" being the default iWidget locale).
IEventDescription setAttribute(String attributeName, String attributeValue, String locale)
attributeName
-
name of attribute. Can Not be NULL.attributeValue
-
value of attribute. Can Not be NULL.locale
-
optional, locale. Can be NULL.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |