EP0974897A2

Methods and systems for java interapplet communication

Abstract

Methods and systems for inter-applet communication. The methods and systems of the invention are particularly useful for communication between applets in different frames of an HTML page. Java and HTML specifications generally preclude interaction between applets in different HTML pages or frames. The present invention permits such communication by defining a superclass (102) from which all such communicating applets are specialized. The superclass (102) includes static structures (104) and associated methods (106..110) for enabling communication between the applets specialized therefrom. A static notification list (104) has entries each of which identify a particular applet which requires notification of events from other applets. A first method (106) of the superclass (102), invoked by a second applet desiring notification of an event, adds (or removes) entries in the notification list. A second method (108), invoked by a first applet (114) recognizing occurrence of the event, searches the list and notifies all applets having entries registering their interest in events. A third method (110), an event notification handler overridden by the second applet(s) desiring such notification (126), is recorded in the notification list entry and invoked by the second method (108) to provide the requisite notification to the second applet (122). Through notification of occurrence of an event and receipt of such notification, applets specialized from this superclass may effectuate inter-applet communication. Optional parameters passed through the notification registration method, stored in the notification list, and passed to the event notification handler, allows more detailed communication messages.

EP0974897A2, drawing sheet 1
Sheet 1 of 6

Term

Term ended

Projected expiry passed 10 February 2019, 7.6 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

10 claims: 2 independent, 8 dependent

  1. 1
    A system for inter-applet communication CHARACTERIZED IN THAT said system comprises:a superclass (102) including inter-applet communication means (104);a first applet (114) operable in a first frame of an HTML page (112) wherein said first applet is instantiated as a subclass of said superclass (102);and a second applet (122) operable in a second frame of an HTML page (120) wherein said second applet is instantiated as a subclass of said superclass (102) and wherein said first applet and said second applet communicate via said inter-applet communication means.
  2. 6
    A method for communicating between a first applet operable in a first frame of an HTML page and a second applet operable in a second frame of the same HTML page CHARACTERIZED IN THAT said method comprises the steps of:providing a superclass (102) having inter-applet communication means (104) associated therewith;specializing said first applet (114) from said superclass (102);specializing said second applet (122) from said superclass (102);and exchanging information between said first applet and said second applet via said inter-applet communication means of said superclass (200..400).