01: /*
02: * $Header: /cvs/j3dfly/J3dEditor/src/org/jdesktop/j3dedit/event/NamedObjectSelectionEvent.java,v 1.1 2005/04/20 22:20:31 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 the Java 3D(tm) Scene Graph Editor.
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.j3dedit.event;
19:
20: import org.jdesktop.j3dfly.event.FlyEvent;
21: import org.jdesktop.j3dfly.namecontrol.NameControl.ObjectName;
22:
23: /**
24: * An event inidicating that a named object has been selected by
25: * the user in the EditorFrameControl
26: *
27: * @author Paul Byrne
28: * @version $Id: NamedObjectSelectionEvent.java,v 1.1 2005/04/20 22:20:31 paulby Exp $
29: */
30: public class NamedObjectSelectionEvent extends FlyEvent {
31:
32: private ObjectName objectName;
33: private int objectType;
34:
35: public static final int OBJECT = 0;
36: public static final int BEHAVIOR = 1;
37: public static final int ENVIRONMENT = 2;
38: public static final int LOADER = 3;
39:
40: /** Creates new FileLoadEvent
41: *
42: * ObjectType must be one of OBJECT, BEHAVIOR, ENVIRONMENT or LOADER
43: */
44: public NamedObjectSelectionEvent(ObjectName name, int objectType) {
45: this .objectName = name;
46: this .objectType = objectType;
47: }
48:
49: /**
50: * Return the name of the selected object
51: */
52: public ObjectName getName() {
53: return objectName;
54: }
55:
56: /**
57: * Return the object type of the selected object
58: */
59: public int getType() {
60: return objectType;
61: }
62:
63: /**
64: * Return the selected object
65: */
66: //public Object getObject() {
67: // return obj;
68: //}
69: }
|