table.addItem(new Object[] { "Larry", "the Bird", "@twitter" }, "larry");
return table;
}
private void forms(CssLayout container) {
VerticalLayout form = new VerticalLayout();
form.addStyleName(Bootstrap.Forms.FORM.styleName());
form.setSpacing(true);
form.setCaption("Legend");
TextField email = new TextField("Email address");
email.setInputPrompt("Enter email");
form.addComponent(email);
PasswordField password = new PasswordField("Password");
password.setInputPrompt("Password");
form.addComponent(password);
Upload upload = new Upload("File input", null);
form.addComponent(upload);
Label help = new Label("Example block-level help text here.");
help.addStyleName("help-block");
form.addComponent(help);
CheckBox check = new CheckBox("Check me out");
form.addComponent(check);
Button submit = new Button("Submit");
submit.addStyleName(Bootstrap.Buttons.DEFAULT.styleName());
form.addComponent(submit);
container.addComponent(form);
}