gov.sandia.ccaffeine.dc.user_iface.MVC.event
Class AddComponentClassEvent
java.lang.Object
java.util.EventObject
gov.sandia.ccaffeine.dc.user_iface.MVC.event.AddComponentClassEvent
- All Implemented Interfaces:
- java.io.Serializable
public class AddComponentClassEvent
- extends java.util.EventObject
Used to notify components that the cca server
added a new class that can be used to instantiate
cca components. A view entity might
respond by rendering a box inside of a palette.
Possible Scenario
A client establishes a communication link with the cca server
The cca server sends the class of cca component to the client
The client displays the class in the palette.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
AddComponentClassEvent(java.lang.Object source,
java.lang.String className)
Create an AddComponentClassEvent. |
Method Summary |
java.lang.String |
getClassName()
Get the name of the newly added class. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AddComponentClassEvent
public AddComponentClassEvent(java.lang.Object source,
java.lang.String className)
- Create an AddComponentClassEvent.
Can be used to notify components that
the cca server has added a new class.
The class can be used to instantiate
new cca components.
- Parameters:
source
- The entity that created this event.className
- The name of the newly added class.
The name is actually the name of the component's
java class. For example, the name could be
"gov.sandia.ccaffeine.dc.component.PrinterComponent"
getClassName
public java.lang.String getClassName()
- Get the name of the newly added class.
The name is actually the name of the component's
java class. For exmaple, the name could be
"gov.sandia.ccaffeine.dc.component.PrinterComponent"
- Returns:
- The name of the newly added class.