Java Code Examples for gwt.material.design.client.ui.MaterialToast#fireToast()
The following examples show how to use
gwt.material.design.client.ui.MaterialToast#fireToast() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StandardDataTableView.java From gwt-material-demo with Apache License 2.0 | 6 votes |
@UiHandler("updateFirstRow") void onUpdateFirstRow(ClickEvent e) { String firstName = "John"; String lastName = "Doe"; String email = "[email protected]"; if (people.get(0) != null) { Person firstPerson = people.get(0); firstPerson.setFirstName(firstName); firstPerson.setLastName(lastName); firstPerson.setEmail(email); table.updateRow(firstPerson); MaterialToast.fireToast("Updated first row : " + firstName + " " + lastName); } else { MaterialToast.fireToast("Can not find the first person."); } }
Example 2
Source File: ImageCropperView.java From gwt-material-demo with Apache License 2.0 | 6 votes |
void applyDimension() { if (comboViewPortWidth.getSingleValue() > comboBoundaryWidth.getSingleValue()) { MaterialToast.fireToast("Boundary width must be greater than the Viewport width"); return; } if (comboViewPortHeight.getSingleValue() > comboBoundaryHeight.getSingleValue()) { MaterialToast.fireToast("Boundary height must be greater than the Viewport height"); return; } JsCropperDimension viewPort = new JsCropperDimension(); viewPort.width = comboViewPortWidth.getSingleValue(); viewPort.height = comboViewPortHeight.getSingleValue(); JsCropperDimension boundary = new JsCropperDimension(); boundary.width = comboBoundaryWidth.getSingleValue(); boundary.height = comboBoundaryHeight.getSingleValue(); cropper.setViewport(viewPort); cropper.setBoundary(boundary); cropper.reload(); }
Example 3
Source File: MenuBarView.java From gwt-material-demo with Apache License 2.0 | 5 votes |
@UiHandler({"dpFile", "dpNew", "dpView", "dpEdit", "dpFormat"}) void onSelectionFileDropdown(SelectionEvent<Widget> selection) { if(selection.getSelectedItem() instanceof MaterialLink){ MaterialToast.fireToast("Triggered : " + ((MaterialLink)selection.getSelectedItem()).getText()); }else if(selection.getSelectedItem() instanceof MaterialCheckBox){ MaterialToast.fireToast("Checked : " + ((MaterialCheckBox)selection.getSelectedItem()).getText()); } }
Example 4
Source File: RichEditorView.java From gwt-material-demo with Apache License 2.0 | 5 votes |
@UiHandler("getValue") void onGetValue(ClickEvent e) { String value = clearRichEditor.getValue(); if (value.isEmpty()) { value = "Empty"; } MaterialToast.fireToast(value); }
Example 5
Source File: CollectionsView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("collectBluetooth") void onBluetooth(ClickEvent e) { MaterialToast.fireToast("Bluetooth"); }
Example 6
Source File: RichEditorView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("eventRichEditor") void onKeyUp(KeyUpEvent e) { MaterialToast.fireToast("Key Up : " + eventRichEditor.getHTML()); }
Example 7
Source File: ServiceWorkerView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("btnGetScope") void getScope(ClickEvent e) { MaterialToast.fireToast(PwaManager.getInstance().getServiceWorkerManager().getServiceWorker().scriptURL); }
Example 8
Source File: ComboBoxView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("btnGetValues") void onGetValues(ClickEvent e) { for(State state : comboTimeZone12_1.getSelectedValues()) { MaterialToast.fireToast("Name: " + state.getName() + " Value: " + state.getValue()); } }
Example 9
Source File: PwaGettingStartedView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("btnGetServiceWorker") void getServiceWorker(ClickEvent e) { MaterialToast.fireToast("Script URL : " + PwaManager.getInstance().getServiceWorkerManager().getServiceWorker().scriptURL); MaterialToast.fireToast("State : " + PwaManager.getInstance().getServiceWorkerManager().getServiceWorker().state); }
Example 10
Source File: SteppersView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
protected void reset(MaterialStepper stepper) { MaterialToast.fireToast("All done"); stepper.reset(); }
Example 11
Source File: SwipeableView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("swipeablePanel") void onSwipeLeft(SwipeLeftEvent<Widget> e) { MaterialLabel label = (MaterialLabel) e.getTarget(); MaterialToast.fireToast(label.getText() + " swiped left"); }
Example 12
Source File: ServiceWorkerView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("btnGetState") void getState(ClickEvent e) { MaterialToast.fireToast(PwaManager.getInstance().getServiceWorkerManager().getServiceWorker().state); }
Example 13
Source File: InputMaskView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("maskInteger") void maskInteger(ValueChangeEvent<Integer> event) { MaterialToast.fireToast(maskInteger.getValue() + ""); }
Example 14
Source File: ButtonsView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("btnDoubleClick") void onDoubleClick(DoubleClickEvent e) { MaterialToast.fireToast("Double Click Triggered"); btnDoubleClick.setText("Double Clicked"); }
Example 15
Source File: CircularProgressView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("btnGetValue") void onGetValue(ClickEvent e) { MaterialToast.fireToast("Value: " + circValues.getValue()); }
Example 16
Source File: InputMaskView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("maskDouble") void maskDouble(ValueChangeEvent<Double> event) { MaterialToast.fireToast(maskDouble.getValue().toString()); }
Example 17
Source File: ComboBoxView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("btnGetValues2") void onGetValues2(ClickEvent e) { for(State state : comboTimeZone14.getSelectedValues()) { MaterialToast.fireToast("Name: " + state.getName() + " Value: " + state.getValue()); } }
Example 18
Source File: CollectionsView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("collectData") void onData(ClickEvent e) { MaterialToast.fireToast("Data Usage"); }
Example 19
Source File: FrozenDataTableView.java From gwt-material-demo with Apache License 2.0 | 4 votes |
@UiHandler("getFirstRow") void onGetFirstRow(ClickEvent e) { MaterialToast.fireToast("FIRST ROW: " + table.getRow(0).getData().getFirstName()); }
Example 20
Source File: DefaultDisplayLoader.java From gwt-material with Apache License 2.0 | 4 votes |
@Override public void failure(String error) { MaterialToast.fireToast(error); }