use of com.vaadin.ui.VerticalLayout in project vaadin-samples by xpoft.
the class GuestView method PostConstruct.
@PostConstruct
public void PostConstruct() {
setSizeFull();
VerticalLayout layout = new VerticalLayout();
layout.setSpacing(true);
layout.setMargin(true);
layout.addComponent(new Label("@RequiresGuest"));
layout.addComponent(new Link("Go back", new ExternalResource("#!" + MainView.NAME)));
setContent(layout);
}
use of com.vaadin.ui.VerticalLayout in project vaadin-samples by xpoft.
the class UserView method PostConstruct.
@PostConstruct
public void PostConstruct() {
setSizeFull();
VerticalLayout layout = new VerticalLayout();
layout.setSpacing(true);
layout.setMargin(true);
layout.addComponent(new Label("@RequiresUser"));
layout.addComponent(new Link("Go back", new ExternalResource("#!" + MainView.NAME)));
setContent(layout);
}
use of com.vaadin.ui.VerticalLayout in project vaadin-samples by xpoft.
the class MyUI method init.
@Override
protected void init(VaadinRequest request) {
// Create the content root layout for the UI
VerticalLayout content = new VerticalLayout();
setContent(content);
requestRandom = new Random().nextLong();
content.addComponent(new Label("InstanceRandom: " + instanceRandom));
content.addComponent(new Label("RequestRandom: " + requestRandom));
}
use of com.vaadin.ui.VerticalLayout in project vaadin-samples by xpoft.
the class LabelView method PostConstruct.
@PostConstruct
public void PostConstruct() {
setSizeFull();
VerticalLayout layout = new VerticalLayout();
layout.setSpacing(true);
layout.setMargin(true);
layout.addComponent(new Label("It's a label!"));
layout.addComponent(new Button("Go back", new Button.ClickListener() {
@Override
public void buttonClick(Button.ClickEvent event) {
Page.getCurrent().setUriFragment("!" + MainView.NAME);
}
}));
setContent(layout);
}
use of com.vaadin.ui.VerticalLayout in project vaadin-samples by xpoft.
the class RoleUserView method PostConstruct.
@PostConstruct
public void PostConstruct() {
setSizeFull();
VerticalLayout layout = new VerticalLayout();
layout.setSpacing(true);
layout.setMargin(true);
layout.addComponent(new Label("ROLE_USER"));
layout.addComponent(new Link("Go back", new ExternalResource("#!" + MainView.NAME)));
setContent(layout);
}
Aggregations