At 02:08 PM 7/6/99 -0400, [EMAIL PROTECTED] wrote:
>I don't mean to be dense.
>
>According to both _Teach_Yourself_Java_in_21_Days_ and _Java_in_a_Nutshell_,
>protected methods should also be available to other classes in the same
package.
>The two classes in question are both in the package spider.visual. Thus, the
>method should be available.
I think you're confusing 'protected' and 'package protection'.
//available to all descendants of current class:
protected Object myobject;
//available to all classes in same package (no private/protected/public
keyword)
Object myobject;
>
>As to what I'm trying to do: I'm trying to create a two-dimensional array of
>check boxes. In order to do this, it appears that I need to override the
>subscripting of the repeated fields because NetDynamics numbers each row's
>fields as [0], [1], [2], [3], and [4] (actually there is no subscript at
all for
>the [0]).
I don't believe that the subscripts are actually written into the html that
is produced. Rather, they are assigned when multiple values come back with
the same field name.
You don't need to muck with the html. You should be able to do what you
need to do by using nested CSpRepeateds.
>
>I wanted to use the getHtmlNameText and getHtmlValueText methods to assist
me in
>creating the HTML in the OnBeforeHtmlOutputEvent method.
>
>There are workarounds for me, but the issue seems to be that the methods are
>unavailable when they shouldn't be.
I don't think you need these methods. I never heard of them until you
mentioned them. From a quick glance at the javadoc, it appears that they
are indeed internal methods. For the most part, I think ND has called it
right in determining which methods are public, and which are protected.
-- Curt Springer, Team ND
>
>-steve
>
>
>"Grace Frederick" <[EMAIL PROTECTED]>
>07/06/99 05:38 PM GMT
>
>To: "Steven Bergstein" <[EMAIL PROTECTED]>
>cc: [EMAIL PROTECTED] (bcc:
Steven H.
> Bergstein)
>Subject: Re: [ND] Using spider.visual.CSpDisplayField.getHtmlNameText
>
>
>
>
>Let me take a whack at this.
>
>You are attempting to use CSpDisplayField.getHtmlValueText (which is
>protected) within a method in a subclass of CSpPage.
>
>CSpDisplayField is a child of CSpVisual.
>
>CSpPage is a child of CSpCommonPage which is a child of CSpDataDrivenVisual
>which is a child of CSpVisual.
>
>That makes CSpPage sort of a distant cousin to CSpDisplayField.
>
>Thus, the protected methods of CSpDisplayField are not accessible to methods
>within CSpPage.
>
>Now, you've said that "getHtmlText" returns more information than what you
>want. Perhaps if you tell us what you're trying to accomplish, we can be of
>more help.
>
>-- Grace
>
>----- Original Message -----
>From: Steven Bergstein <[EMAIL PROTECTED]>
>Newsgroups: netdynamics.public.support.nd4.talk
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, July 06, 1999 12:55 PM
>Subject: Re: [ND] Using spider.visual.CSpDisplayField.getHtmlNameText
>
>
>>
>> Please ignore the previous post.
>>
>> Protected methods are supposed to be
>> available to subclasses and to other members
>> of the same package. I am trying to make a
>> call to these methods from within a CSpPage
>> which is a member of the spider.visual
>> package, as is CSpDisplayField.
>>
>> The getHtmlText method returns more information than I am interested in,
>requiring parsing.
>>
>> This seems like a bug to me.
>>
>> -steve
>>
>> Curt Springer <[EMAIL PROTECTED]> wrote:
>> >These are protected methods, available only to children of
>CSpDisplayField.
>> >
>> >Use getHtmlText.
>> >
>> >-- Curt Springer, Team ND
>> >
>> >At 08:43 AM 7/6/99 -0800, Steven Bergstein wrote:
>> >>
>> >>I'm trying to use CSpDisplayField.getHtmlNameText and
>> >CSpDisplayField.getHtmlValueText
>> >> in an OnBeforeHtmlOutput event but am finding that the methods do not
>> >exist. I'm
>> >> passing a CSpDisplayAttributes object and have imported
>spider.visual.*.
>> >>
>> >>Has anyone used these methods successfully? Am I missing something?
>> >>
>> >>Thanks for your help.
>> >>
>> >>-steve
>>
>>>_________________________________________________________________________
>> >>
>> >>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]
>
>
>
>
>
>_________________________________________________________________________
>
>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]