com.aspose.diagram

Class EventItem

  • java.lang.Object
    • 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()
void
setAction(intvalue)
           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()
void
setEnabled(intvalue)
           Represents a flag indicating if the event is enabled or disabled. The value of the property is BOOL integer constant.
intgetEventCode()
void
setEventCode(intvalue)
           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()
void
setID(intvalue)
           The ID of the event.
java.lang.StringgetTarget()
void
setTarget(java.lang.Stringvalue)
           Specifies the target of an event.
java.lang.StringgetTargetArgs()
void
setTargetArgs(java.lang.Stringvalue)
           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.