Directory

← Back

Layouts Add-on

Layouts

Author

Rating

Popularity

<100

The add-on attempts to be a collection of useful, alternative layouts for Vaadin.

The current version contains a single layout, CardLayout, which is a port of java.awt.CardLayout to Vaadin. I will add more layouts over time. Suggestions are welcome!

Sample code

CardLayout layout = new CardLayout();

// First component in layout is visible by default
layout.addComponent(new Label("foo"));

layout.addComponent(new Label("bar"));
layout.addComponent(new Label("baz"));

// Make next component visible
layout.next();
// label "bar" now visible

// Make next component visible
layout.next();
// label "baz" now visible

// Make previous component visible
layout.previous();
// label "bar" now visible

// Make last component visible
layout.last();
// label "baz" now visible

// Make first component visible
layout.first();
// label "foo" now visible

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Add CardLayout

Released
2015-03-07
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.1+
Vaadin 7.0+
Vaadin 8.0+
Browser
Browser Independent

Layouts Add-on - Vaadin Add-on Directory

Layouts Layouts Add-on - Vaadin Add-on Directory
The add-on attempts to be a collection of useful, alternative layouts for Vaadin. The current version contains a single layout, CardLayout, which is a port of java.awt.CardLayout to Vaadin. I will add more layouts over time. Suggestions are welcome!
Online