SimpleLayout - Vaadin Add-on Directory
Simple and designer friendly layout.SimpleLayout tries (once again) to overcome some of the limitations of the core layouts. Albeit powerful, they are quite limiting sometimes when working with additional CSS.
With SimpleLayout, you only get one wrapping DIV element, whose margin, border and padding you are free to adjust using CSS (similar to DashLayout). This makes it efficient to use as a component wrapper when you want to specify extra decorations for some components.
The contained components are rendered directly inside this DIV, no wrappers. Caption & icon support works similarly as with the core CssLayout, so caption elements are rendered mixed in between the component elements.
SimpleLayout works identically with the core CssLayout, meaning that you can use relative sized components inside it. But SimpleLayout provides also a way to clear any inline style sizes from the contained components, giving the designer more freedom in adjusting the layout using simple CSS.
The layout's size is also controlled with the stylesheet (vs. inline style), so overriding the layout size using CSS does not require using !important keyword in your own CSS. A selector with more priority is enough (i.e. div.v-simplelayout).
Supports LayoutClickListners.
DEPENDENCIES:
-Compile-time dependency: CSS Tools 0.2 (not included in the add-on package any longer)
Author HomepageCSS Tools Add-on
Issue Tracker
Source Code
SimpleLayout version 0.3
Initial release.
SimpleLayout version 0.4
-Added support for LayoutClickListeners
-Made extending a lot easier on the client side
-Added support for custom UIDL painting besides the contained components
-Now supports overflow: auto; for the layout if you wish to provide scrolling
-Lots of small fixes
SimpleLayout version 0.5
Generic captions and icons are now rendered for all components.
CSS Tools is no longer packaged in the JAR, so you need to download that manually as well (or add the Maven dependency).