Example usage for com.vaadin.ui.themes ValoTheme LABEL_TINY

List of usage examples for com.vaadin.ui.themes ValoTheme LABEL_TINY

Introduction

In this page you can find the example usage for com.vaadin.ui.themes ValoTheme LABEL_TINY.

Prototype

String LABEL_TINY

To view the source code for com.vaadin.ui.themes ValoTheme LABEL_TINY.

Click Source Link

Document

Tiny font size.

Usage

From source file:org.rubicone.poc.vpush.uil.sending.SendingUI.java

License:Apache License

private Panel createInstructionsPanel() {
    Panel instructionsPanel = new Panel("instructions");

    VerticalLayout instructionsLayout = new VerticalLayout();
    instructionsPanel.setContent(instructionsLayout);

    Label instructionsLabel = new Label(
            "open another UI receiving notifications from server using following transport:");
    instructionsLayout.addComponent(instructionsLabel);

    Link websocketsUILink = new Link("websockets", new ExternalResource("./receive-messages-websockets"));
    websocketsUILink.setIcon(VaadinIcons.CHEVRON_RIGHT_SMALL);
    websocketsUILink.setTargetName("_blank");
    instructionsLayout.addComponent(websocketsUILink);

    Link websocketsXhrUILink = new Link("websockets + XHR",
            new ExternalResource("./receive-messages-websocketsxhr"));
    websocketsXhrUILink.setIcon(VaadinIcons.CHEVRON_RIGHT_SMALL);
    websocketsXhrUILink.setTargetName("_blank");
    instructionsLayout.addComponent(websocketsXhrUILink);

    Link httpLongPollingUILink = new Link("HTTP long polling",
            new ExternalResource("./receive-messages-httplongpolling"));
    httpLongPollingUILink.setIcon(VaadinIcons.CHEVRON_RIGHT_SMALL);
    httpLongPollingUILink.setTargetName("_blank");
    instructionsLayout.addComponent(httpLongPollingUILink);

    Label noteLabel = new Label(
            "<i>" + VaadinIcons.INFO_CIRCLE_O.getHtml()
                    + " note: you may open several UIs at the same time to receive push notifications</i>",
            ContentMode.HTML);//from  w  w  w. ja  va  2  s.c om
    noteLabel.addStyleName(ValoTheme.LABEL_TINY);
    instructionsLayout.addComponents(noteLabel);

    return instructionsPanel;
}