/[svn]/jlscp/trunk/src/org/linuxsampler/lscp/event/InstrumentsDbEvent.java
ViewVC logotype

Annotation of /jlscp/trunk/src/org/linuxsampler/lscp/event/InstrumentsDbEvent.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1202 - (hide annotations) (download)
Thu May 24 20:17:25 2007 UTC (16 years, 11 months ago) by iliev
File size: 2587 byte(s)
* updated to version 0.5a

1 iliev 1202 /*
2     * jlscp - a java LinuxSampler control protocol API
3     *
4     * Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com>
5     *
6     * This file is part of jlscp.
7     *
8     * jlscp is free software; you can redistribute it and/or modify
9     * it under the terms of the GNU General Public License version 2
10     * as published by the Free Software Foundation.
11     *
12     * jlscp is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with jlscp; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20     * MA 02111-1307 USA
21     */
22    
23     package org.linuxsampler.lscp.event;
24    
25     /**
26     *
27     * @author Grigor Iliev
28     */
29     public class InstrumentsDbEvent extends java.util.EventObject {
30     private String pathName;
31     private String newName;
32     private int jobId;
33    
34    
35     /**
36     * Constructs an <code>InstrumentsDbEvent</code> object.
37     * @param source The object that originated the event.
38     * @param pathName Depending on the event this is
39     * the absolute path name of either a directory, or an instrument.
40     */
41     public
42     InstrumentsDbEvent(Object source, String pathName) {
43     this(source, pathName, null);
44     }
45    
46     /**
47     * Constructs an <code>InstrumentsDbEvent</code> object.
48     * @param source The object that originated the event.
49     * @param pathName Depending on the event this is
50     * the absolute path name of either a directory, or an instrument.
51     * @param newName When an isntrument or directory is renamed,
52     * specifies the new name for the respective instrument or directory.
53     */
54     public
55     InstrumentsDbEvent(Object source, String pathName, String newName) {
56     super(source);
57     this.pathName = pathName;
58     this.newName = newName;
59     }
60    
61     /**
62     * Constructs an <code>InstrumentsDbEvent</code> object.
63     * @param source The object that originated the event.
64     * @param jobId The job ID.
65     */
66     public
67     InstrumentsDbEvent(Object source, int jobId) {
68     super(source);
69     this.jobId = jobId;
70     }
71    
72     /**
73     * Gets the path name of the changed instrument or directory.
74     */
75     public String
76     getPathName() { return pathName; }
77    
78     /**
79     * When an isntrument or directory is renamed, this method
80     * returns the new name for the respective instrument or directory.
81     */
82     public String
83     getNewName() { return newName; }
84    
85     /**
86     * Returns the ID of the job, which status has changed.
87     */
88     public int
89     getJobId() { return jobId; }
90     }

  ViewVC Help
Powered by ViewVC