gov.sandia.ccaffeine.dc.user_iface.MVC.event
Class DisplayComponentEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gov.sandia.ccaffeine.dc.user_iface.MVC.event.DisplayComponentEvent
All Implemented Interfaces:
java.io.Serializable

public class DisplayComponentEvent
extends java.util.EventObject

This event can be used to notify components that an entity wants some information on a cca component. A view might respond by rendering a cca component in the main workspace (the arena). The end-user can drag the component to a new location, remove the component, draw a line to/from a different component, view or edit the component's properties, etc.

A view might respond by rendering a cca component in the main workspace (the arena). The end-user can drag the component to a new location, remove the component, draw a line to/from a different component, view or edit the component's properties, etc.

See Also:
Serialized Form

Field Summary
protected  java.lang.String componentInstanceName
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DisplayComponentEvent(java.lang.Object source, java.lang.String componentInstanceName)
          Create a DisplayComponentEvent.
 
Method Summary
 java.lang.String getComponentInstanceName()
           
 
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
 

Field Detail

componentInstanceName

protected java.lang.String componentInstanceName
Constructor Detail

DisplayComponentEvent

public DisplayComponentEvent(java.lang.Object source,
                             java.lang.String componentInstanceName)
Create a DisplayComponentEvent. This event can be used to notify components that an entity wants some information on a cca component. A view might respond by rendering a cca component in the main workspace (the arena). The end-user can drag the component to a new location, remove the component, draw a line to/from a different component, view or edit the component's properties, etc.

Parameters:
source - The entity that created this event.
componentInstanceName - The name of the cca component object. The instance name is usually the name of the component's java class (without the package name) concatenated with an index number. EXAMPLE: "StarterComponent0"
Method Detail

getComponentInstanceName

public java.lang.String getComponentInstanceName()