本文整理汇总了Java中gwt.material.design.client.ui.MaterialToast.fireToast方法的典型用法代码示例。如果您正苦于以下问题:Java MaterialToast.fireToast方法的具体用法?Java MaterialToast.fireToast怎么用?Java MaterialToast.fireToast使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gwt.material.design.client.ui.MaterialToast
的用法示例。
在下文中一共展示了MaterialToast.fireToast方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onDateSubmit
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@Override
public void onDateSubmit(Date startDate, Date endDate, String account) {
DateTimeFormat fmt = DateTimeFormat.getFormat("/yyyy/M/d");
if (startDate.getTime() > endDate.getTime()) {
MaterialToast.fireToast("Whoops! Invalid date range.", 1000);
} else {
String fromDate = fmt.format(startDate);
String toDate = fmt.format(endDate);
String dateRange = fromDate + toDate;
clientFactory.getEventBus().fireEvent(new DateSubmitEvent(dateRange, startDate, endDate, account));
}
}
示例2: addOrRemoveFavouriteCamera
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
private void addOrRemoveFavouriteCamera(Integer id) {
Set<Integer> selectedCameras = getUserFavouriteCameras();
if (selectedCameras.contains(id)) {
selectedCameras.remove(id);
MaterialToast.fireToast(Texts.CAMERA_REMOVED);
} else {
selectedCameras.add(id);
MaterialToast.fireToast(Texts.CAMERA_ADDED);
}
userSettings.storeFavouriteCameras(selectedCameras);
}
示例3: onMapTypeChange
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@SuppressWarnings("unused")
private void onMapTypeChange(@Observes FavouritesModify modifyEvent) {
FavouritesModify.ModificationType modificationType = modifyEvent.getModificationType();
if (modificationType == FavouritesModify.ModificationType.REMOVE_ALL) {
removeAllFavourites();
MaterialToast.fireToast(Texts.FAVOURITES_REMOVED);
}
if (modificationType == FavouritesModify.ModificationType.RESTORE_DEFAULT) {
restoreDefaultFavourites();
MaterialToast.fireToast(Texts.FAVOURITES_DEFAULTED);
}
}
示例4: onDeselectItem
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("btnDeselectItem")
void onDeselectItem(ClickEvent e) {
if (docTree.getSelectedItem() == null) {
MaterialToast.fireToast("You must select an item first.");
} else {
MaterialToast.fireToast("Item " + docTree.getSelectedItem().getText() + " was deselected.");
docTree.deselectSelectedItem();
}
}
示例5: onGetValue
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("getValue")
void onGetValue(ClickEvent e) {
String value = clearRichEditor.getValue();
if (value.isEmpty()) {
value = "Empty";
}
MaterialToast.fireToast(value);
}
示例6: onSwipeRight
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("swipeablePanel")
void onSwipeRight(SwipeRightEvent<Widget> e) {
MaterialLabel label = (MaterialLabel) e.getTarget();
MaterialToast.fireToast(label.getText() + " swiped right");
}
示例7: onClick
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("btnClick")
void onClick(ClickEvent e) {
MaterialToast.fireToast("Click Triggered");
btnClick.setText("Clicked");
}
示例8: onDpValueChange
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("dpValue")
void onDpValueChange(ValueChangeEvent<Date> e) {
MaterialToast.fireToast(e.getValue() + "");
}
示例9: onValueChange
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("eventRichEditor")
void onValueChange(ValueChangeEvent<String> e) {
MaterialToast.fireToast("Value Change Event : " + eventRichEditor.getHTML());
}
示例10: onDoubleClick
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("btnDoubleClick")
void onDoubleClick(DoubleClickEvent e) {
MaterialToast.fireToast("Double Click Triggered");
btnDoubleClick.setText("Double Clicked");
}
示例11: onBlur
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("eventRichEditor")
void onBlur(BlurEvent event) {
MaterialToast.fireToast("Blur Event : " + eventRichEditor.getHTML());
}
示例12: onHover
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("btnHover")
void onHover(MouseOverEvent e) {
MaterialToast.fireToast("Hover Triggered");
btnHover.setText("Hovered");
}
示例13: onKeyDown
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("eventRichEditor")
void onKeyDown(KeyDownEvent e) {
MaterialToast.fireToast("Key Down : " + eventRichEditor.getHTML());
}
示例14: onBluetooth
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("collectBluetooth")
void onBluetooth(ClickEvent e) {
MaterialToast.fireToast("Bluetooth");
}
示例15: onGetDate
import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("btnGetDate")
void onGetDate(ClickEvent e){
MaterialToast.fireToast("" + dp.getDate());
}