JSWindows (a JavaScript Inheritance Demo) Classes

© 2013, Martin Rinehart

See the menu above to choose a class.

The JSWindows (a JavaScript Inheritance Demo) system should stand on its own merits. It is a windowing frontend for applications that run in browsers.

Aside from its design goal, JSWindow's structure was influenced by the author's desire to experiment with longer inheritance chains in JavaScript. Here, for example, the generic DOM element is wrapped with an Wobj-class object, a Rect (really just an element that is a DOM div) extends the Wobj, a Button extends the Rect and a Button_close extends the Button.

Conclusion of the experiment? You can use these C++/Java inheritance chains in JavaScript, if you like. Not recommended (see the book). Possible? Surprisingly easy. (This code uses straight JavaScript, not a library class system.)

Feedback: MartinRinehart at gmail dot com

# # #