Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
please see the attachment.
sample = new Panel("Panel caption"); sample.setHeight(100.0f, Unit.PERCENTAGE); final VerticalLayout contentLayout = new VerticalLayout(); contentLayout.setWidth(500, Unit.PIXELS); contentLayout.setMargin(true); contentLayout.addComponent(new Label(ExampleUtil.lorem.substring(0, 2000), ContentMode.HTML)); sample.setContent(contentLayout);
Thank for your fast reply unfortunately the Vaadin code doesn’t reproduce the demo :(
What are you missing? A full project?
As far as I can see, you can easily use the above snippet and put it into the UI class of the
default Vaadin7 project you can create using the Vaadin Eclipse Plugin.
We did not release the full sampler project as we did in the past with the Vaadin 6 sampler.
Is the 'old' sampler but it should pretty much give you the rest you're missing, most of all the 'lorem' string.
Maybe I'm wrong but all this code show a simple Panel with no functionality to resize by the user ?
I have seen this before, code I not doing what I looking for.
Thank for your time and help appreciate.
I see your point now. Seems like you're missing the container around the panel -- and it looks like even the 500px horizontal width from the code is not there in the demo.
I have told the people in charge of the demo about your post.
The resize handle is not a feature of the Panel component. It a custom feature built for Sampler, and can be seen in many other samples there as well, such as any other component container of äär layout demo.
the 500px sets the width of the text label inside the Panel, to illustrate that you het scrollbars on the panel if its content overflows.
Hi Jouni and Enver,
Thank for your help, now I know is a third party component, but It will be great to have the code because the functionality is good.
in that case - please can you contact our Sales team and see if you can come to an agreement?
See vaadin.com/company -- you find the contact addresses below the many photos!
I know now more or less "how to do it" I go some info, now I have to do it ;0)
Thank very much for all your helps