com.aspose.diagram
Class EventItem

java.lang.Object
    extended by com.aspose.diagram.EventItem

public class EventItem 
extends java.lang.Object

Encapsulates an event code. An EventItem element can trigger two kinds of actions: it can run an add-on, or it can send a notification of the event to the calling program.


Constructor Summary
EventItem()
           Constructor.
 
Property Getters/Setters Summary
intgetAction()
voidsetAction(int)
           Specifies the action code of the parent EventItem element.For an EventItem element to be saved in a DatadiagramML file, it must be persistable. Currently, the only valid action code a persistable event can have is 1 (ONEVENT_ACT_RUNADDON).
intgetEnabled()
voidsetEnabled(int)
           Represents a flag indicating if the event is enabled or disabled. The value of the property is BOOL integer constant.
intgetEventCode()
voidsetEventCode(int)
           A code indicating the event that triggers the add-on. For more information on event codes, see Event Codes in the Microsoft Visio 2007 Automation Reference.
intgetID()
voidsetID(int)
           The ID of the event.
java.lang.StringgetTarget()
voidsetTarget(java.lang.String)
           Specifies the target of an event.
java.lang.StringgetTargetArgs()
voidsetTargetArgs(java.lang.String)
           Specifies a string containing arguments to be sent to the target of an event.
 

Constructor Detail

EventItem

public EventItem()
Constructor.

Property Getters/Setters Detail

getID/setID

public int getID() / public void setID(int value)
The ID of the event.

getAction/setAction

public int getAction() / public void setAction(int value)
Specifies the action code of the parent EventItem element.For an EventItem element to be saved in a DatadiagramML file, it must be persistable. Currently, the only valid action code a persistable event can have is 1 (ONEVENT_ACT_RUNADDON).

getEventCode/setEventCode

public int getEventCode() / public void setEventCode(int value)
A code indicating the event that triggers the add-on. For more information on event codes, see Event Codes in the Microsoft Visio 2007 Automation Reference.

getTarget/setTarget

public java.lang.String getTarget() / public void setTarget(java.lang.String value)
Specifies the target of an event.

getTargetArgs/setTargetArgs

public java.lang.String getTargetArgs() / public void setTargetArgs(java.lang.String value)
Specifies a string containing arguments to be sent to the target of an event.

getEnabled/setEnabled

public int getEnabled() / public void setEnabled(int value)
Represents a flag indicating if the event is enabled or disabled. The value of the property is BOOL integer constant.

See Also:
          Aspose.Diagram Documentation - the home page for the Aspose.Diagram Product Documentation.
          Aspose.Diagram Support Forum - our preferred method of support.