Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ve-dev] Facing problems in working with the custom widgets

Hi All,
 
I am facing some problems with the implementation of custom widgets for my application. I have a custom widget that has a property of type Vector (Holding a set of values). I use the CustomWidget as follows,
 
public void mycustomWidget()
{
    if(mycustomwidget1==null)
    {
       myCustomwidget1 = new MyCustomWidget();
       ……….
       myCustomwidget1.addElement("aaa");
       myCustomwidget1.addElement("bbb");
    }
    return myCustomwidget1;
}
 
The addElement() method in the MyCustomWidget class is as follows
 
public void addElement(String element)
{
   if(!(element.equals("")))
   {
     elements.add(element);
   }
}
 
public Vector getElements()
{
return elements;
}
 
For one of my wizard, I have to extract the editpart for the custom widget and using bean proxy get the elements added to that custom widget.
But when I invoke the addElement ()’ method through the beanproxy, I get only the first element added. Only the first call to addElement is recognized.
Can any body please help me resolve this? I need to get all the elements added.
 
Please help me in this regard.
Thanks in advance.
 
Regards,
Shobana.R


Find out what India is talking about on Yahoo! Answers India.
So, what’s NEW about the NEW Yahoo! Messenger? Find out.

Back to the top