I believe the answer is a clear No, since the generation of visual
controls is driven by the things found in .htm within **fieldName**. ND
scans the .htm, when it finds something wrapped in **, looks at the .spg
to get more information about it and later on the page's java code
controls further action.
It is not a purely object-oriented world. For a page generation to take
place , it takes co-ordination between .htm, .spg and .java, and there
is nothing object-oriented about .htm or .spg
Aby
-----Original Message-----
From: Teplitsky, Alexander [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 05, 1999 4:41 PM
To: 'NetDynamics Developers forum'
Subject: [ND] FW: [ND] Visual Inheritance possible ?
Thanks, Janet for this clarification. This is exactly that my question
was
all about: inheriting _visual_controls_
If NetDynamics reads HTML template into instance variable of
myBasePageClass
then I think we can manipulate it in such a way that each descendant
page
will be aware of "controls" of its ancestor. Trying to find out how to
accomplish that .
Alexander Teplitsky.
> ----------
> From:
[EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, August 05, 1999 4:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [ND] Visual Inheritance possible ?
>
> <<pic31697.pcx>>
>
>
>
> Just curious, can he also put the visual controls on his
myBasePageClass ?
>
> Or is that getting too tricky for ND4? Any limitations to be aware of?
>
> Thanks,
> Janet
>
>
>
>
>
> (Embedded
> image moved Aby Mathew <[EMAIL PROTECTED]>
> to file: 08/05/99 07:03 PM
> pic31697.pcx)
>
>
>
>
> To: "'Teplitsky, Alexander'" <[EMAIL PROTECTED]>, 'NetDynamics Developers
> forum'
> <[EMAIL PROTECTED]>
> cc: (bcc: Janet Traub/IS/SSC/THD)
> Subject: Re: [ND] Visual Inheritance possible ?
>
>
>
>
> This is verymuch possible in ND and is used very commonly.
>
> All you need is a class inherited from CSpPage which is packaged in
the
> same package as the project itself, and for each page in the project
set
> the 'superclass' property to myProject.myBasePage.
>
> In ND4 and above, a little additional effort would be required to
> capture the events - onBeforeDisplay, onBeforeHtmlOutput etc. It can
be
> something like:
> ==============================================================
> public class myBaseClass extends CSpPage implements
ISpDisplayListener,
> ISpHtmlOutputListener {
> ---
> ---
> public int init(){
> int ret = super.init();
> addDisplayListener(this);
> addHtmlOutputListener(this);
> return ret;
> }
>
> onBeforeDisplayEvent() {
> --
> }
>
> onBeforeHtmlOutputEvent() {
> ---
> }
> ===================================================
>
> Aby
>
> -----Original Message-----
> From: Teplitsky, Alexander [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 05, 1999 3:09 PM
> To: 'NetDynamics Developers forum'
> Subject: [ND] Visual Inheritance possible ?
>
>
> How do I "fake" visual inheritance of pages? I'd like to create a page
> with
> all my controls and error handling code. I want to be able to inherit
> from
> it so that, when I improve the base page, the descendants will benefit
> automatically. I guess this isn't available in NetDynamics so I want
to
> know
> how to fake it.
>
>
________________________________________________________________________
> _
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to:
> http://www.netdynamics.com/support/visitdevfor.html
>
> For dire need help, email: [EMAIL PROTECTED]
>
________________________________________________________________________
_
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to:
http://www.netdynamics.com/support/visitdevfor.html
>
> For dire need help, email: [EMAIL PROTECTED]
>
>
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]