Hai everyone,
I had downloaded some swing components from jidesoftware. Now i want to deploy them in servoy and for doing that i know that i should develop the beans and plugin’for those components.I am completely new to the servoy environment and infact new to the swings and beans concept. So i dont have any idea of converting these swing components to java beans.
As i had downloaded from jide software and extracted from the xml file i got the class files.Now my doubt is how to develop the bean files for these class files and then how can i develop the plugin’s to deploy those components in servoy. I just need some suggestions so that i can implement them and any sample code also is appreciable.Please give me some idea.
Thanks in advance…,
To create a bean that will work inside Servoy, you’ll just have to create a class that implements the IScriptObject interface. That’s pretty much it, then package the jar with a manifest that has the name of your bean, and a line specifying Java-Bean: true;
Take that .jar file and drop it in the $SERVOY_HOME/beans directory, restart the app server, and your bean will appear in the beans pick list. Easy as pie.
Same thing for plugins, except you’ll implement the IClientPlugin interface as well, and drop it in the $SERVOY_HOME/plugins directory instead.
Of course there are always problems… I’m having an issue where the servoy client will not download the dependencies to my bean. I’m sure there is some easy explanation and fix, but it is becoming a royal pain in my rear.
Fred