Class next.wo.client.Association

All Packages  Class Hierarchy  This Package  Previous  Next

Class next.wo.client.Association


Object

  
implements KeyValueCoding The Association class is an abstract class that defines the required behavior for objects that know how to get and set the values of applet keys (for state) and communicate that data to the AppletGroupController. These objects are also responsible for detecting actions triggered by their destination applets and sending invokeAction(String) to have the appropriate action method invoked in the server. Subclasses of Association must implement the KeyValueCoding interface methods takeValueForKey(Object, String) and valueForKey(String) as well as the keys() method. If you have access to the source code of an applet, consider implementing the SimpleAssociationDestination interface in the applet instead of creating a subclass of Association.
See Also:
KeyValueCoding, SimpleAssociationDestination

Method Index
 o destination()
Returns the destination (the applet) of the Association object.
 o takeValueForKey(Object, String)
Because Association explicitly implements the KeyValueCoding interface but is an abstract class, it declares this method as abstract.
 o valueForKey(String)
Because Association explicitly implements the KeyValueCoding interface but is an abstract class, it declares this method as abstract.

Methods

 o valueForKey

  public abstract Object valueForKey(String key)

Because Association explicitly implements the KeyValueCoding interface but is an abstract class, it declares this method as abstract. Subclasses of Association must implement this KeyValueCoding method.
See Also:
KeyValueCoding
 o takeValueForKey

  public abstract void takeValueForKey(Object value,

                                       String key)

Because Association explicitly implements the KeyValueCoding interface but is an abstract class, it declares this method as abstract. Subclasses of Association must implement this KeyValueCoding method.
See Also:
KeyValueCoding
 o keys

  public abstract Vector keys()

Subclasses must implement this method to return the list (as a Vector object) of the keys for the state managed by the associated applet.
 o destination

  public Object destination()

Returns the destination (the applet) of the Association object.
 o invokeAction

  public void invokeAction(String action)

When the Association determines that an action has been triggered in the destination applet, it should send this message to itself to have the bound action method in the server-side component invoked. The argument action should be the name of the action managed by the applet. for example:
    this.invokeAction("selectionChanged");


 Class Hierarchy  This Package  Previous  Next