|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.ChangeRequest
ptolemy.actor.gt.GTEntityUtils.LoadActorIconChangeRequest
private static class GTEntityUtils.LoadActorIconChangeRequest
A change request to copy the icon of a newly created entity within a container to a given GTEntity.
Red (tfeng) |
Yellow (tfeng) |
Field Summary | |
---|---|
private CompositeEntity |
_container
The container of a single entity to retrieve the icon. |
private GTEntity |
_entity
The entity to which the icon is to be copied. |
Constructor Summary | |
---|---|
GTEntityUtils.LoadActorIconChangeRequest(GTEntity entity,
CompositeEntity container)
Construct a change request to copy the icon of a newly created entity within a container to a given GTEntity. |
Method Summary | |
---|---|
protected void |
_execute()
Execute the change request by retrieving the icon description or EditorIcon of the single entity in the container given in the constructor and copying it to the entity given in the constructor. |
Methods inherited from class ptolemy.kernel.util.ChangeRequest |
---|
addChangeListener, execute, getDescription, getLocality, getSource, isErrorReported, isPersistent, isStructuralChange, removeChangeListener, setDescription, setErrorReported, setListeners, setPersistent, waitForCompletion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private CompositeEntity _container
private GTEntity _entity
Constructor Detail |
---|
public GTEntityUtils.LoadActorIconChangeRequest(GTEntity entity, CompositeEntity container)
entity
- The entity whose icon is to be set.container
- The container of a single entity inside, which has
the icon to be copied.Method Detail |
---|
protected void _execute() throws java.lang.Exception
_execute
in class ChangeRequest
java.lang.Exception
- If the icon cannot be retrieved, or it cannot
be associated with the entity.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |