I want to experiment use of vaadin gantt chart with Tree-table.
I understand from the documentation that i have to take few steps e.g. following codes, unwrap etc…
Add the add-on dependency to the web module in the project’s build.gradle. For example:
configure(webModule) {
...
dependencies {
...
compile("org.vaadin.addons:some-addon:1.2.3")
}
Include the add-on widget set to the AppWidgetSet.gwt.xml file, created in Step 1:
<module>
...
<inherits name="org.vaadin.someaddon.widgetset.SomeAddonWidgetset" />
how do we get the above parameter for any other add-on e.g.
Methods implemented in the “Integrating a Vaadin Component into the Generic UI” example are wrappers for the Vaadin component methods. You have to wrap all methods that you are going to use from your application code.
But before you start doing this, maybe you don’t need a GUI integration? I mean that if you are going to use a Gantt chart at only one or two screens, you can use a Vaadin component directly like in the [url=]https://doc.cuba-platform.com/manual-6.1/vaadin_addon_sample.html[/url] example.
GUI integration is necessary when you want to be able to declare your component in the screen xml descriptor like this ….
So if the Gantt chart will be placed on a single screen only, I would recommend you using a native vaadin component in you screen controller code without GUI integration.
Thank you. I am now experimenting vaadin-addon “gantt for vaadin 7+”
i have created the component successfully using the Maven dependency, widgetset etc. Now trying to deal with the interface in the gui module. Noticed that in Stepper example, some methods are implemented. My question is, what is these methods coming from or referenced to? Is it related to the addon’s methods? Thanks for giving some insights.
Hi
Yes, you are right, I do only need basic integration, not the GUI integration. I have successfully added the vaadin Gantt add-on and I can see it in my project and use it. Now, I am a bit stuck on how I can initiate it in init method to show it in a layout. I have done the following to initiate in controller. I see nothing, may be i am missing something to visualize it!
As I see, you’ve created a ‘box’ container and added a ‘gantt’ to it, but you haven’t add a’box’ container to the screen. Instead of creating the ‘box’ in the code try to define it in the screen xml and then inject it in your screen controller.
Unfortunately, the Gantt chart add-on is not supported by the out-the-box version of the CUBA Platform; consequently it will require extra time of dedicated support to investigate the subject. You can find more information here ([url=https://www.cuba-platform.com/consulting-and-development]High productivity application development platform) and contact us via e-mail (info@cuba-platform.com) or contact form ([url=https://www.cuba-platform.com/contacts]High productivity application development platform) to proceed further.
Hi George
I didn’t try it further for the Vaadin component. I am using AmChart Gantt chart for the time being until finding a better alternative as CUBA component.