List of usage examples for com.vaadin.server FontAwesome WHEELCHAIR
FontAwesome WHEELCHAIR
To view the source code for com.vaadin.server FontAwesome WHEELCHAIR.
Click Source Link
From source file:org.vaadin.viritin.it.MNotificationExapmle.java
License:Apache License
@Override public Component getTestComponent() { MVerticalLayout layout = new MVerticalLayout(new MLabel("MNotification Examples").withStyleName("h1"), new MHorizontalLayout(new MButton(FontAwesome.COMMENT, "Humanized", new Button.ClickListener() { @Override//from ww w . j a v a2 s. c o m public void buttonClick(Button.ClickEvent event) { MNotification.humanized("Humanized", "This is a humanized notification!") .withIcon(FontAwesome.COMMENT); } }).withStyleName("primary"), new MButton(FontAwesome.TIMES, "Error", new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { MNotification.error("Error", "This is an error notification!").withIcon(FontAwesome.TIMES); } }).withStyleName("danger"), new MButton(FontAwesome.EXCLAMATION_TRIANGLE, "Warning", new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { MNotification.warning("Warning", "This is a warning notification!") .withIcon(FontAwesome.EXCLAMATION_TRIANGLE); } }), new MButton(FontAwesome.DOWNLOAD, "Tray", new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { MNotification.tray("Tray", "This is a tray notification!") .withIcon(FontAwesome.DOWNLOAD); } }).withStyleName("friendly"), new MButton(FontAwesome.WHEELCHAIR, "Assistive", new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { MNotification.assistive("Assistive", "This is an assistive notification!"); } }).withStyleName("quiet"))).withFullWidth(); return layout; }