public class MaterialToast extends Object
MaterialToast.fireToast("I love Material Design");
Modifier and Type | Field and Description |
---|---|
static int |
DURATION |
Constructor and Description |
---|
MaterialToast(gwt.material.design.jquery.client.api.Functions.Func callback,
com.google.gwt.user.client.ui.Widget... widgets) |
MaterialToast(com.google.gwt.user.client.ui.Widget... widgets) |
Modifier and Type | Method and Description |
---|---|
static void |
fireToast(String msg)
Quick fire your toast.
|
static void |
fireToast(String msg,
int lifeMillis)
Quick fire your toast.
|
static void |
fireToast(String msg,
int lifeMillis,
String className)
Quick fire your toast.
|
static void |
fireToast(String msg,
String className)
Quick fire your toast.
|
void |
toast(String msg) |
void |
toast(String msg,
int lifeMillis) |
void |
toast(String msg,
int lifeMillis,
String className) |
protected void |
toast(String msg,
int lifeMillis,
String id,
String className,
gwt.material.design.jquery.client.api.Functions.Func callback) |
void |
toast(String msg,
String className) |
public static final int DURATION
public MaterialToast(com.google.gwt.user.client.ui.Widget... widgets)
public MaterialToast(gwt.material.design.jquery.client.api.Functions.Func callback, com.google.gwt.user.client.ui.Widget... widgets)
public static void fireToast(String msg)
msg
- Message text for your toast.public static void fireToast(String msg, int lifeMillis)
msg
- Message text for your toast.lifeMillis
- how long it should present itself before being removed.public static void fireToast(String msg, int lifeMillis, String className)
msg
- Message text for your toast.lifeMillis
- how long it should present itself before being removed.className
- class name to custom style your toast.public static void fireToast(String msg, String className)
msg
- Message text for your toast.className
- class name to custom style your toast.public void toast(String msg, int lifeMillis)
msg
- Message text for your toast.lifeMillis
- how long it should present itself before being removed.public void toast(String msg, String className)
msg
- Message text for your toast.className
- class name to custom style your toast.public void toast(String msg, int lifeMillis, String className)
msg
- Message text for your toast.lifeMillis
- how long it should present itself before being removed.className
- class name to custom style your toast.Copyright © 2018. All rights reserved.