Extension SDK 10.1.2

oracle.ide.addin
Interface VetoableSubject

All Superinterfaces:
Subject
All Known Subinterfaces:
WorkEnvironment
All Known Implementing Classes:
Project

public interface VetoableSubject
extends Subject

VetoableSubject interface defines the API to register observers interested in receiving notifications of pending subject changes. Classes that want to veto a pending Subject change should attach an VetoObserver to a VetoableSubject in order to approve the change.

See Also:
oracle.ide.VetoableObserver, oracle.ide.VetoableMessage

Field Summary
 
Fields inherited from interface oracle.ide.addin.Subject
OBJECT_MODIFIED
 
Method Summary
 void notifyObservers(java.lang.Object subject, VetoableMessage change)
          Notifies all observers that the state of the subject has changed.
 
Methods inherited from interface oracle.ide.addin.Subject
attach, detach, notifyObservers
 

Method Detail

notifyObservers

public void notifyObservers(java.lang.Object subject,
                            VetoableMessage change)
                     throws ChangeVetoException
Notifies all observers that the state of the subject has changed.

Parameters:
subject - the subject whose state has changed.
change - what changed.
Throws:
ChangeVetoException

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.