Interface next.wo.client.SimpleAssociationDestination

All Packages  Class Hierarchy  This Package  Previous  Next 

Interface next.wo.client.SimpleAssociationDestination

public interface SimpleAssociationDestination
extends Object
extends KeyValueCoding
The SimpleAssociationDestination interface allows applets that implement it to be the destinations of SimpleAssociations. By implementing these methods, plus the KeyValueCoding methods, the applet takes on the responsibilities of the Association object. The SimpleAssociation class simply passes calls to valueForKey(String), takeValueForKey(Object, String), and keys() along to its destination. Associations are required for the exchange of state and action information with the AppletGroupController, which handles communication with the server.
See Also:
Association, KeyValueCoding

Method Index

 o keys()
Applets must implement this method to return the list (as a Vector object) of the keys for the state that they manage.
 o setAssociation(Association)
Implemented by applets so that they can store the Association object assoc (an instance of SimpleAssociation) so that later, when an action is triggered in the applet, they can send invokeAction(String) to that object.

Methods

 o keys

  public abstract Vector keys()

Applets must implement this method to return the list (as a Vector object) of the keys for the state that they manage.
 o setAssociation

  public abstract void setAssociation(Association assoc)

Implemented by applets so that they can store the Association object assoc (an instance of SimpleAssociation) so that later, when an action is triggered in the applet, they can send invokeAction(String) to that object. This results in the invocation of the associated action method in the server. Note that even applets that do not have actions must implement this method, even if as a "null" method.
See Also:
invokeAction


Class Hierarchy  This Package  Previous  Next