Changing of the initializing parameter in the property sheet [message #607097] |
Mon, 11 April 2005 10:44 |
Elena Demeter Messages: 152 Registered: July 2009 |
Senior Member |
|
|
Hello,
I use the allocation feature to initialize my component.
MyButton mb = new MyButton("test");
There is a string variable "argument" in the class MyButton. There is an
implementation of "getBeanDescritor" in the class "MyButtonBeanInfo".
public BeanDescriptor getBeanDescriptor() {
BeanDescriptor descriptor = new BeanDescriptor(EdmJButton.class);
descriptor.setValue("argument", "test");
return descriptor;
}
But if I change the value of an "argument" in the property sheet,
one more line will be inserted:
mb.setArgument("newvalue");
I would like that the string variable "test" changes to "newvalue" and
there will be not inserted any other line.
Is the class "MyButtonBeanInfo" not enough for that?
How do I have to change the funktion "getBeanDescriptor" to get it working
?
Can you give me a tip?
Thank you in advance
Elena
|
|
|
Powered by
FUDForum. Page generated in 0.02965 seconds