JSampler
v0.8a

org.jsampler
Class Resource

java.lang.Object
  extended by org.jsampler.Resource
Direct Known Subclasses:
OrchestraInstrument

public class Resource
extends java.lang.Object


Constructor Summary
Resource()
          Creates a new instance of Resource
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener l)
          Registers the specified listener to be notified when the instrument settings are changed.
protected  void fireChangeEvent()
          Notifies listeners that the recourse properties has changed.
 java.lang.String getDescription()
          Gets a brief description about this resource.
 java.lang.String getName()
          Gets the name of this resource.
 void removeChangeListener(javax.swing.event.ChangeListener l)
          Removes the specified listener.
 void setDescription(java.lang.String desc)
          Sets a description about this resource.
 void setName(java.lang.String name)
          Sets the name of this resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Creates a new instance of Resource

Method Detail

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener l)
Registers the specified listener to be notified when the instrument settings are changed.

Parameters:
l - The OrchestraListener to register.

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener l)
Removes the specified listener.

Parameters:
l - The OrchestraListener to remove.

getName

public java.lang.String getName()
Gets the name of this resource.

Returns:
The name of this resource.

setName

public void setName(java.lang.String name)
Sets the name of this resource.

Parameters:
name - The new name of this resource.

getDescription

public java.lang.String getDescription()
Gets a brief description about this resource.

Returns:
A brief description about this resource.

setDescription

public void setDescription(java.lang.String desc)
Sets a description about this resource.

Parameters:
desc - A brief description about this resource.

fireChangeEvent

protected void fireChangeEvent()
Notifies listeners that the recourse properties has changed.


JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.