Source and listener

What do you mean by the term source and listener?

E

Expert

Verified

The source is an object which produces an event. This takes place when the internal state of that object changes in a certain manner. A listener is an object which is notified whenever an event takes place. It consists of two major requirements. First, it should have been registered with a source to receive the notifications regarding specific event. Second, it should implement essential methods to receive and process such notifications.

   Related Questions in Programming Languages

  • Q : Programming analysis and design

    Illustrate the term programming analysis and design in brief.

  • Q : Simple Sorting Program in C Shell

    Assignment: Sorting

    You will write a simple sorting program. This program should be invoked as follows:

    shell% ./fastsort -i inputfile -o outputfile

  • Q : Explain Global variable Global variable

    Global variable: It is a phenomenon which is more generally regarded as being a trouble in structured programming languages than in object-oriented languages. In structured programming language, like C or Pascal, a global variable is one stated outsid

  • Q : What is Stepwise refinement Stepwise

    Stepwise refinement: It is a divide and conquer approach to the programming, in which a complicated problem is recursively divided into smaller, sub-problems and more manageable. This approach to program design is frequently employed with structured p

  • Q : Intermediate language concept Describe

    Describe the term Intermediate language? Illustrate in brief.

  • Q : State HyperText Transfer Protocol

    HyperText Transfer Protocol: The HyperText Transfer Protocol (abbreviated as HTTP) is a set of rules stated to enable a Web client (that is, browser) to interact with the Web server.

  • Q : Explain script recorded over tested web

    Why is the script recorded over the tested web pages not playback correctly?

  • Q : Define HyperText Markup Language

    HyperText Markup Language: The HyperText Markup Language (abbreviated as HTML) is a simple presentation language employed to markup the content of the Web pages. Its tags appear frequently in pairs to mark sections of text which must be represented in

  • Q : Explain the applications of testing

    Explain the applications of testing life cycle.

  • Q : Phenomenon of page fault Explain the

    Explain the phenomenon of page fault?

2015 ┬ęTutorsGlobe All rights reserved. TutorsGlobe Rated 4.8/5 based on 34139 reviews.