01: /*
02: * $Header: /cvs/j3dfly/J3dFly/src/org/jdesktop/j3dfly/event/VPBehaviorPluginEvent.java,v 1.1 2005/04/20 21:04:26 paulby Exp $
03: *
04: * Sun Public License Notice
05: *
06: * The contents of this file are subject to the Sun Public License Version
07: * 1.0 (the "License"). You may not use this file except in compliance with
08: * the License. A copy of the License is available at http://www.sun.com/
09: *
10: * The Original Code is Java 3D(tm) Fly Through.
11: * The Initial Developer of the Original Code is Paul Byrne.
12: * Portions created by Paul Byrne are Copyright (C) 2002.
13: * All Rights Reserved.
14: *
15: * Contributor(s): Paul Byrne.
16: *
17: **/
18: package org.jdesktop.j3dfly.event;
19:
20: import org.jdesktop.j3dfly.plugins.VPBehaviorPlugin;
21:
22: /**
23: * An event indicating that view platform behavior plugin has been
24: * added or removed (via Plugin install) from the system
25: *
26: * @author Paul Byrne
27: * @version
28: */
29: public class VPBehaviorPluginEvent extends FlyEvent {
30:
31: public final static int INSTALLED = 1;
32: public final static int UNINSTALLED = 2;
33: public final static int ACTIVATED = 3;
34: public static final int DEACTIVATED = 4;
35:
36: private VPBehaviorPlugin plugin;
37: private int status;
38:
39: /** Creates new FileLoadEvent */
40: public VPBehaviorPluginEvent(VPBehaviorPlugin plugin, int status) {
41: this .plugin = plugin;
42: this .status = status;
43: }
44:
45: /**
46: * The Behavior Plugin that has been added or removed
47: */
48: public VPBehaviorPlugin getBehaviorPlugin() {
49: return plugin;
50: }
51:
52: /**
53: * Return the status for the event one of
54: *
55: * INSTALLED, UNINSTALLED, ACTIVATED, DEACTIVED
56: */
57: public int getStatus() {
58: return status;
59: }
60: }
|