当前位置: 首页>>代码示例>>Java>>正文


Java MaterialToast.fireToast方法代码示例

本文整理汇总了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));
    }

}
 
开发者ID:WSDOT,项目名称:social-analytics,代码行数:18,代码来源:AnalyticsActivity.java

示例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);
}
 
开发者ID:baldram,项目名称:tristar-eye,代码行数:12,代码来源:Settings.java

示例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);
    }
}
 
开发者ID:baldram,项目名称:tristar-eye,代码行数:13,代码来源:Settings.java

示例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();
    }
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:10,代码来源:TreeView.java

示例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);
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:9,代码来源:RichEditorView.java

示例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");
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:6,代码来源:SwipeableView.java

示例7: onClick

import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("btnClick")
void onClick(ClickEvent e) {
    MaterialToast.fireToast("Click Triggered");
    btnClick.setText("Clicked");
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:6,代码来源:ButtonsView.java

示例8: onDpValueChange

import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("dpValue")
void onDpValueChange(ValueChangeEvent<Date> e) {
    MaterialToast.fireToast(e.getValue() + "");
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:5,代码来源:PickersView.java

示例9: onValueChange

import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("eventRichEditor")
void onValueChange(ValueChangeEvent<String> e) {
    MaterialToast.fireToast("Value Change Event : " + eventRichEditor.getHTML());
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:5,代码来源:RichEditorView.java

示例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");
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:6,代码来源:ButtonsView.java

示例11: onBlur

import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("eventRichEditor")
void onBlur(BlurEvent event) {
    MaterialToast.fireToast("Blur Event : " + eventRichEditor.getHTML());
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:5,代码来源:RichEditorView.java

示例12: onHover

import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("btnHover")
void onHover(MouseOverEvent e) {
    MaterialToast.fireToast("Hover Triggered");
    btnHover.setText("Hovered");
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:6,代码来源:ButtonsView.java

示例13: onKeyDown

import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("eventRichEditor")
void onKeyDown(KeyDownEvent e) {
    MaterialToast.fireToast("Key Down : " + eventRichEditor.getHTML());
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:5,代码来源:RichEditorView.java

示例14: onBluetooth

import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("collectBluetooth")
void onBluetooth(ClickEvent e) {
    MaterialToast.fireToast("Bluetooth");
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:5,代码来源:CollectionsView.java

示例15: onGetDate

import gwt.material.design.client.ui.MaterialToast; //导入方法依赖的package包/类
@UiHandler("btnGetDate")
void onGetDate(ClickEvent e){
    MaterialToast.fireToast("" + dp.getDate());
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material-demo,代码行数:5,代码来源:PickersView.java


注:本文中的gwt.material.design.client.ui.MaterialToast.fireToast方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。