home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
VisualObjectListener.java
< prev
next >
Wrap
Text File
|
1998-10-25
|
4KB
|
97 lines
/*
* Copyright 1998 Symantec Corporation, All Rights Reserved.
*/
package com.symantec.itools.vcafe.openapi;
/**
* The listener interface for receiving notification when a change has occurred to
* a <code>VisualObject</code>.
* To be notified of changes, a plug-in implements this interface then calls
* <code>VisualObject.addVisualObjectListener</code> to place itself on the notification
* list. When the <code>VisualObject</code> changes, the appropriate method of this interface
* is called.
* If you are only interested in a subset of the notification methods, you can extend the
* <code>VisualObjectAdapter</code> class rather than implement all the methods yourself.
*
* @see VisualObject#addVisualObjectListener
* @see VisualObject#removeVisualObjectListener
* @see VisualCafe#removeVisualObjectListener
* @see VisualObjectAdapter
*
* @author Symantec Internet Tools Division
* @version 1.0
* @since VCafe 3.0
*/
public interface VisualObjectListener
{
/**
* This method is called when a property of the <code>VisualObject</code> is changed.
*
* @param visualObject the <code>VisualObject</code> which had the change.
* @param index the zero-based index of the property that has changed.
*/
public void propertyChanged(VisualObject visualObject, short index);
/**
* This method is called when a child is added to the <code>VisualObject</code>.
*
* @param visualObject the <code>VisualObject</code> which had the change.
* @param childVisualObject the child <code>VisualObject</code> that was added.
*/
public void childAdded(VisualObject visualObject, VisualObject childVisualObject);
/**
* This method is called when a child is removed from the <code>VisualObject</code>.
*
* @param visualObject the <code>VisualObject</code> which had the change.
* @param childVisualObject the child <code>VisualObject</code> that was removed.
*/
public void childDeleted(VisualObject visualObject, VisualObject childVisualObject);
/**
* This method is called when a VisualObject's internal data structures are replaced.
*
* @param visualObject the parent <code>VisualObject</code> which had the change.
* @param replacedVisualObject the child <code>VisualObject</code> that was replaced.
*/
public void objectReplaced(VisualObject visualObject, VisualObject replacedVisualObject);
/**
* This method is called before the <code>VisualObject</code> is removed from the repository.
* (The object is still valid.)
*
* @param visualObject the <code>VisualObject</code> that has been deleted.
*/
public void objectDeleted(VisualObject visualObject);
/**
* This method is called when the description of the <code>VisualObject</code> is changed.
*
* @param visualObject the <code>VisualObject</code> whose description has been changed.
*/
public void descriptionChanged(VisualObject visualObject);
/**
* This method is called when the <code>VisualObject</code> is added to the repository.
*
* @param visualObject the <code>VisualObject</code> that was added.
*/
public void objectAdded(VisualObject visualObject);
/**
* This method is called after the <code>VisualObject</code> is removed from the repository
*
* @param visualObject the <code>VisualObject</code> that was removed.
*/
public void objectRemoved(VisualObject visualObject);
/**
* This method is called when a property is added or removed from the <code>VisualObject</code>
*
* @param visualObject the <code>VisualObject</code> which had the change.
*/
public void propertyAddedDeleted(VisualObject visualObject);
}