Package com.arbortext.epic.cms
Interface CMSObjectEvent
- All Superinterfaces:
Event
- All Known Implementing Classes:
CMSObjectEventImpl
The
CMSObjectEvent interface provides specific contextual
information associated with the CMSObjectEvent extension.
These event types notify programmers of important CMS object operations.- Since:
- Arbortext 5.4
-
Field Summary
Fields inherited from interface org.w3c.dom.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE -
Method Summary
Modifier and TypeMethodDescriptiongetEnd()Specifies an event-dependent DOM endNodeassociated with the event.shortUsed when the event handler wants to cancel the operation or throw an error exception.Used when the event handler wants to throw an error exception and additionally provide a human-readable error message.intgetFlags()Provides an event-dependent bitmask of information.Represents the event-dependent result of an event.getStart()Specifies an event-dependent DOM startNodeassociated with the event.voidinitCMSObjectEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node endArg, int flagsArg, CMSObject resultArg, Node startArg) Initializes the value of anCMSObjectEventcreated through theCMSObjectEventinterface.voidsetErrorCode(short errorCode) Used when the event handler wants to cancel the operation or throw an error exception.voidsetErrorMessage(String errorMessage) Used when the event handler wants to throw an error exception and additionally provide a human-readable error message.voidRepresents the event-dependent result of an event.Methods inherited from interface org.w3c.dom.events.Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation
-
Method Details
-
getEnd
Node getEnd()Specifies an event-dependent DOM endNodeassociated with the event. -
getErrorCode
short getErrorCode()Used when the event handler wants to cancel the operation or throw an error exception. This can hold any definedCMSExceptionCodevalue. To cancel the operation, callpreventDefault()and store a value ofOPERATION_CANCELED_ERRintoerrorCode. To cause an error exception, callpreventDefault(), store any other definedCMSExceptionCodevalue intoerrorCode, and optionally store a message intoerrorMessage. -
setErrorCode
void setErrorCode(short errorCode) Used when the event handler wants to cancel the operation or throw an error exception. This can hold any definedCMSExceptionCodevalue. To cancel the operation, callpreventDefault()and store a value ofOPERATION_CANCELED_ERRintoerrorCode. To cause an error exception, callpreventDefault(), store any other definedCMSExceptionCodevalue intoerrorCode, and optionally store a message intoerrorMessage. -
getErrorMessage
String getErrorMessage()Used when the event handler wants to throw an error exception and additionally provide a human-readable error message. To do this, callpreventDefault(), store the appropriate value intoerrorCode, and store a message intoerrorMessage. -
setErrorMessage
Used when the event handler wants to throw an error exception and additionally provide a human-readable error message. To do this, callpreventDefault(), store the appropriate value intoerrorCode, and store a message intoerrorMessage. -
getFlags
int getFlags()Provides an event-dependent bitmask of information. -
getResult
CMSObject getResult()Represents the event-dependent result of an event. -
setResult
Represents the event-dependent result of an event. -
getStart
Node getStart()Specifies an event-dependent DOM startNodeassociated with the event. -
initCMSObjectEvent
void initCMSObjectEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node endArg, int flagsArg, CMSObject resultArg, Node startArg) Initializes the value of anCMSObjectEventcreated through theCMSObjectEventinterface. This method should only be called before theCMSObjectEventhas been dispatched using thedispatchEventmethod, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence.- Parameters:
typeArg- Specifies the event type.canBubbleArg- Specifies whether or not the event can bubble.cancelableArg- Specifies whether or not the event's default action can be prevented.endArg- Specifies an event-dependent DOM endNodeassociated with the event.flagsArg- Provides an event-dependent bitmask of information.resultArg- Represents the event-dependent result of an event.startArg- Specifies an event-dependent DOM startNodeassociated with the event.
-