Example usage for com.vaadin.ui Link addStyleName

List of usage examples for com.vaadin.ui Link addStyleName

Introduction

In this page you can find the example usage for com.vaadin.ui Link addStyleName.

Prototype

@Override
    public void addStyleName(String style) 

Source Link

Usage

From source file:org.vaadin.tori.component.RecentBar.java

License:Apache License

private void addRecentLink(final HorizontalLayout barLayout) {
    Link link = new Link("Recent Posts",
            new ExternalResource("#" + ToriNavigator.ApplicationView.CATEGORIES.getUrl() + "/"
                    + SpecialCategory.RECENT_POSTS.getId().toLowerCase()));
    link.addStyleName("recentlink");
    barLayout.addComponent(link);//from ww w  . j  a va  2s  . c  om
    barLayout.setComponentAlignment(link, Alignment.MIDDLE_RIGHT);
}