1 /**
2 * This is a simple mechanism to bind Inkscape to Java, and thence
3 * to all of the nice things that can be layered upon that.
4 *
5 * Authors:
6 * Bob Jamison
7 *
8 * Copyright (c) 2007-2008 Inkscape.org
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 3 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 *
24 * Note that the Events files are implementations of the Java
25 * interface package found here:
26 * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html
27 */
29 package org.inkscape.dom.events;
31 import org.w3c.dom.Node;
34 public class MutationEventImpl
35 extends EventImpl
36 implements org.w3c.dom.events.MutationEvent
37 {
38 public native Node getRelatedNode();
40 public native String getPrevValue();
42 public native String getNewValue();
44 public native String getAttrName();
46 public native short getAttrChange();
48 public native void initMutationEvent(String typeArg,
49 boolean canBubbleArg,
50 boolean cancelableArg,
51 Node relatedNodeArg,
52 String prevValueArg,
53 String newValueArg,
54 String attrNameArg,
55 short attrChangeArg);
57 public native void initMutationEventNS(String namespaceURI,
58 String typeArg,
59 boolean canBubbleArg,
60 boolean cancelableArg,
61 Node relatedNodeArg,
62 String prevValueArg,
63 String newValueArg,
64 String attrNameArg,
65 short attrChangeArg);
67 }