问题
I am very new to Vaadin. My requirement is like in my page I need to have 4 input component per row. There would be 4 rows like this. I need a layout which will allow me to define number of columns and keep align it.
There should not be any border like we have in table. Please suggest me any suitable layout and how can I customize that.
Thanks
回答1:
You are probably looking for a GridLayout, it provides enough flexibility to size your grid 'cells', maintain consistency and set expand ratios for row and columns separately.
The other option for you is to use a CustomComponent and in case you are using Vaadin plugin for eclipse (and I don't have experience with Vaadin on any other IDE) you can use their WYSIWYG editor to translate your requirement to a custom component.
来源:https://stackoverflow.com/questions/23575152/want-to-have-a-layout-which-arrange-in-a-tabular-form