//package coco;

import java.awt.event.*;

/*anything that wants to submit requests on coco components; classes
  implementing this interface should be there at the client to work*/
public interface CocoSubmitter{
  /*set the addressee coco component's id; called by the designer before
    publishing the page containing this submitter*/
  public void setCocoAddressee(String id);

  /*set the request string to send to that component; called by the
    designer before publishing the page containing this submitter*/
  public void setCocoRequest(String request);

  /*after downloading the page, downloader client's listener should be
    set using this method*/
  public void setCocoSubmitListener(ActionListener l);

  /*return the whole command to submit*/
  public String getParams();
}

