S Sherlock Member Licensed User Longtime User Apr 10, 2012 #1 Hi, I've created a dummy class in Eclipse: public class NewClass { public void setMethod1(){ } public void setMethod2(){ } public void getMethod1(){ } public void getMethod2(){ } public void getMethod(){ } And here is the output after running Javadoc in Eclipse : <class> <name>anywheresoftware.b4a.objects.NewClass</name> <owner>process</owner> <method> <name>setMethod1</name> <comment></comment> <returntype>void</returntype> </method> <method> <name>setMethod2</name> <comment></comment> <returntype>void</returntype> </method> <property> <name>Method</name> <returntype>void</returntype> <comment></comment> </property> <property> <name>Method2</name> <returntype>void</returntype> <comment></comment> </property> <property> <name>Method1</name> <returntype>void</returntype> <comment></comment> </property> </class> All the "get.." where removed from the method name in the XML file. Any ideas what is wrong?:sign0163: Tks Sherlock
Hi, I've created a dummy class in Eclipse: public class NewClass { public void setMethod1(){ } public void setMethod2(){ } public void getMethod1(){ } public void getMethod2(){ } public void getMethod(){ } And here is the output after running Javadoc in Eclipse : <class> <name>anywheresoftware.b4a.objects.NewClass</name> <owner>process</owner> <method> <name>setMethod1</name> <comment></comment> <returntype>void</returntype> </method> <method> <name>setMethod2</name> <comment></comment> <returntype>void</returntype> </method> <property> <name>Method</name> <returntype>void</returntype> <comment></comment> </property> <property> <name>Method2</name> <returntype>void</returntype> <comment></comment> </property> <property> <name>Method1</name> <returntype>void</returntype> <comment></comment> </property> </class> All the "get.." where removed from the method name in the XML file. Any ideas what is wrong?:sign0163: Tks Sherlock
Erel B4X founder Staff member Licensed User Longtime User Apr 10, 2012 #2 Yes. getMethod and setMethod are converted to Method property. For example Button.Width is actually Button.getWidth and Button.setWidth. Note that you can use GetMethod instead of getMethod if you want it to be kept as a method.
Yes. getMethod and setMethod are converted to Method property. For example Button.Width is actually Button.getWidth and Button.setWidth. Note that you can use GetMethod instead of getMethod if you want it to be kept as a method.
warwound Expert Licensed User Longtime User Apr 11, 2012 #4 Erel said: Yes. getMethod and setMethod are converted to Method property. For example Button.Width is actually Button.getWidth and Button.setWidth. Note that you can use GetMethod instead of getMethod if you want it to be kept as a method. Click to expand... That is unless the setter method accepts more than one parameter! In which case the library method will retain it's set name prefix and remain a method rather than a settable property. That's logical as there's no way to pass more than one parameter to a settable property. Martin. Last edited: Apr 12, 2012
Erel said: Yes. getMethod and setMethod are converted to Method property. For example Button.Width is actually Button.getWidth and Button.setWidth. Note that you can use GetMethod instead of getMethod if you want it to be kept as a method. Click to expand... That is unless the setter method accepts more than one parameter! In which case the library method will retain it's set name prefix and remain a method rather than a settable property. That's logical as there's no way to pass more than one parameter to a settable property. Martin.