use of com.vaadin.ui.Link 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);
}
Aggregations