The problem is that
>>
*protected* CSpSelectable createNewSelectable(CSpValue value,
String label)
<<
is *protected*. May be, meant for ND's internal use or when we subclass
the 'CSpStuff'.
Fortunately, there is
>>
public void addSelectable(int index,
String label,
CSpValue value) throws
ArrayIndexOutOfBoundsException
<<
It works though with the unpleasant limitation that you can't append
something to the end of the list.
Aby
-----Original Message-----
From: Roach, Nathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 09, 1999 1:24 PM
To: [EMAIL PROTECTED]
Subject: [ND] Problems with Radio Buttons
I am trying to add an entry to a radio button group and it isnt working
properly. It is probably developer error so I'm hoping that someone
can
tell me what I'm doing wrong.
I have a radio button group called rbQueries. It contains two
hard-coded
entries : one for Daily volumes and one for Montly volumes. I want to
add a
dynamically generated radio button for the hourly volumes. So, I was
looking at the NetD class definition for
spider.visual.CSpRadioButtonsGroup.
Under the methods index, there is this entry:
createNewSelectable(CSpValue, String)
Instantiates and returns a new selectable radio button which is a child
of
this radio button group
so, in my code I added:
CSpRadioButtonsGroup radiog = (CSpRadioButtonsGroup)
getDisplayField ("rbQueries");
CSpValue newentry = new CSpString("Hourly");
radiog.createNewSelectable (newentry, "hourlyvol");
What puzzled me is the error returned:
Compiling pgCustomerMenu.java...
C:\NetDynamics\NetDynamics40\Projects\MeasurementInfo\pgCustomerMenu.jav
a:14
7: No method matching createNewSelectable(spider.session.CSpValue,
java.lang.String) found in class spider.visual.CSpRadioButtonsGroup.
radiog.createNewSelectable(newentry, "hourlyvol");
^
1 error
Failed compiling Project MeasurementInfo. - 1 error.
any ideas?
nathan
PG&E Gas Transmission Texas and any other company referenced herein
which uses the PG&E name or logo are not the same company as Pacific Gas
and Electric Company, the California utility. These companies are not
regulated by the California Public Utilities Commission, and customers
do not have to buy products from these companies in order to continue to
receive quality regulated services from the utility.
________________________________________________________________________
_
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]