gwtbootstrap3/gwtbootstrap3-extras — pull request #41 by jeffisenhart (2014-05-21 22:58:30+00:00)
Title: Initial commit

This is a gwt wrapper for http://bootstrap-growl.remabledesigns.com/

Usage:
```
package com.bootstrap3extras.test.client;

import org.gwtbootstrap3.client.ui.Button;
import org.gwtbootstrap3.client.ui.constants.IconType;
import org.gwtbootstrap3.client.ui.constants.Styles;
import org.gwtbootstrap3.extras.growl.client.ui.Growl;
import org.gwtbootstrap3.extras.growl.client.ui.GrowlHelper;
import org.gwtbootstrap3.extras.growl.client.ui.GrowlOptions;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.RootPanel;

/**
* Entry point classes define onModuleLoad().
*/
public class Bootstrap3ExtrasTest implements EntryPoint {

/**
* This is the entry point method.
*/
public void onModuleLoad() {
basicGrowl();
basicWithTitle();
basicWithTitleAndIcon();
basicWithTitleIconAndOptions();
}

private void basicGrowl() {
Button b = new Button("Growl");
b.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
Growl.growl("hi");

}
});
RootPanel.get("myApp").add(b);
}

private void basicWithTitle() {
Button b = new Button("Growl With Title");
b.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
Growl.growl("Title","Some super cool subtitle");

}
});
RootPanel.get("myApp").add(b);
}

private void basicWithTitleAndIcon() {
Button b = new Button("Growl With Title and Icon");
b.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
Growl.growl("Title","Some super cool subtitle",Styles.FONT_AWESOME_BASE + " " + IconType.ARCHIVE);

}
});
RootPanel.get("myApp").add(b);
}

private void basicWithTitleIconAndOptions() {
Button b = new Button("Growl With Title, Icon and Options");
b.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
GrowlOptions go = GrowlHelper.getNewOptions();
go.setSuccessType();
go.setAllowDismiss(false);
Growl.growl("Title","Some super cool subtitle",Styles.FONT_AWESOME_BASE + " " + IconType.ARCHIVE,go);

}
});
RootPanel.get("myApp").add(b);
}

}

```