| || |
using createchild() method in Silk4j (in eclipse)
Does anybody working with silk4j ?
I m trying to create a new child under ScrollableControl0 object, and i can't succeed in getting creatchild to work
<font color="red">public <T extends AbstractTestObject> T createChild(java.lang.Class<T> clazz, ObjectResolveElement resolveElement)</font>
Re: using createchild() method in Silk4j (in eclipse)
I'm not quite sure what you troubles are, so I'm assuming the syntax is confusing you - please feel free to correct me if that assumption was wrong.
The usage of the method should be like the following
PushButton pb = scrollableControl0.createChild(PushButton.class, new ObjectResolveElement().withCaption("SomeCaption")) ;
(You might need to adapt the ObjectResolveElement so that it properly describes the control you are looking for, as well as the class you are looking for)
Hope this helps