001: /*
002: * The contents of this file are subject to the terms of the Common Development
003: * and Distribution License (the License). You may not use this file except in
004: * compliance with the License.
005: *
006: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
007: * or http://www.netbeans.org/cddl.txt.
008: *
009: * When distributing Covered Code, include this CDDL Header Notice in each file
010: * and include the License file at http://www.netbeans.org/cddl.txt.
011: * If applicable, add the following below the CDDL Header, with the fields
012: * enclosed by brackets [] replaced by your own identifying information:
013: * "Portions Copyrighted [year] [name of copyright owner]"
014: *
015: * The Original Software is NetBeans. The Initial Developer of the Original
016: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
017: * Microsystems, Inc. All Rights Reserved.
018: */
019:
020: package org.netbeans.modules.soa.mapper.common;
021:
022: /**
023: * <p>
024: *
025: * Title: Mapper Event </p> <p>
026: *
027: * Description: Generic interface describe a mapper event. Also defines basic
028: * event operations of this mapper. </p> <p>
029: *
030: * Copyright: Copyright (c) 2002 </p> <p>
031: *
032: * Company: </p>
033: *
034: * @author Un Seng Leong
035: * @created December 4, 2002
036: * @version 1.0
037: */
038: public interface IMapperEvent {
039: /**
040: * A event type of new link request.
041: */
042: public static final String REQ_NEW_LINK = "MapperEvt.ReqNewLink";
043:
044: /**
045: * A event type of update link request.
046: */
047: public static final String REQ_UPDATE_LINK = "MapperEvt.ReqUpdateLink";
048:
049: /**
050: * A event type of update node request.
051: */
052: public static final String REQ_UPDATE_NODE = "MapperEvt.ReqUpdateNode";
053:
054: /**
055: * A event type of new link request.
056: */
057: public static final String REQ_NEW_LINK_FROM_NODE_AT_LOCATION = "MapperEvt.ReqNewLinkFromNodeAtLocation";
058:
059: /**
060: * A event type of new link request.
061: */
062: public static final String REQ_NEW_LINK_FROM_LINK_AT_LOCATION = "MapperEvt.ReqNewLinkFromLinkAtLocation";
063:
064: /**
065: * A event type of new group node request.
066: */
067: public static final String REQ_NEW_NODE = "MapperEvt.ReqNewNode";
068:
069: /**
070: * A event type of remove link request.
071: */
072: public static final String REQ_DEL_LINK = "MapperEvt.ReqDelLink";
073:
074: /**
075: * A event type of remove group node request.
076: */
077: public static final String REQ_DEL_NODE = "MapperEvt.ReqDelNode";
078:
079: /**
080: * A event type of a link has been added to the mapper, regardless added to
081: * which view model.
082: */
083: public static final String LINK_ADDED = "MapperEvt.LinkAdded";
084:
085: /**
086: * A event type of a node has been to the mapper, regardless added to which
087: * view model.
088: */
089: public static final String NODE_ADDED = "MapperEvt.NodeAdded";
090:
091: /**
092: * A event type of link has been removed from the mapper, regardless removed
093: * from which view model.
094: */
095: public static final String LINK_DEL = "MapperEvt.LinkDel";
096:
097: /**
098: * A event type of a node has been removed from the mapper, regardless
099: * removed from which view model.
100: */
101: public static final String NODE_DEL = "MapperEvt.NodeDel";
102:
103: /**
104: * Return the source view that produce this event.
105: *
106: * @return the source view that produce this event.
107: */
108: public Object getSource();
109:
110: /**
111: * Return the event type of this event.
112: *
113: * @return the event type of this event.
114: */
115: public String getEventType();
116:
117: /**
118: * Return the object that related to this event and is transferable to all
119: * listeners to this event.
120: *
121: * @return the object that related to this event.
122: */
123: public Object getTransferObject();
124:
125: /**
126: * Return a description of this event.
127: *
128: * @return a description of this event.
129: */
130: public String getDesc();
131: }
|