Java Code Examples for com.google.gwt.event.dom.client.DomEvent#fireNativeEvent()
The following examples show how to use
com.google.gwt.event.dom.client.DomEvent#fireNativeEvent() .
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: ConfigViewImpl.java From bitcoin-transaction-explorer with MIT License | 6 votes |
@SuppressWarnings("unchecked") @Override public void setValue(final AdministratedApplicationConfig value, final boolean fireEvents) { for (int i = 0; i < connectorListBox.getItemCount(); i++) { if(connectorListBox.getValue(i).equals(value.getBlockchainSource().name())) { connectorListBox.setSelectedIndex(i); DomEvent.fireNativeEvent(Document.get().createChangeEvent(), connectorListBox); break; } } currentEditor.setValue(value); applicationTitle.setText(value.getApplicationTitle()); applicationSubtitle.setText(value.getApplicationSubTitle()); donationAddress.setText(value.getHostDonationAddress()); }
Example 2
Source File: CompositeFocusHelper.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
private void focus() { if (!this.focused) { this.focused = true; this.updateHandler(); DomEvent.fireNativeEvent(Document.get().createFocusEvent(), this); } }
Example 3
Source File: CompositeFocusHelper.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
private void blur() { if (this.focused) { this.focused = false; this.updateHandler(); DomEvent.fireNativeEvent(Document.get().createBlurEvent(), this); } }
Example 4
Source File: ConfigViewImpl.java From bitcoin-transaction-explorer with MIT License | 5 votes |
public ConfigViewImpl() { initWidget(UI_BINDER.createAndBindUi(this)); for (final BlockchainSource source : compatibleSources) { connectorListBox.addItem(M.messages().configConnectorOption(source), source.name()); } DomEvent.fireNativeEvent(Document.get().createChangeEvent(), connectorListBox); StyleUtil.setPlaceHolder(createPassword, M.messages().configPasswordPlaceHolder()); StyleUtil.setPlaceHolder(password, M.messages().configPasswordPlaceHolder()); StyleUtil.setPlaceHolder(createPasswordRepeat, M.messages().configPasswordRepeatPlaceHolder()); }
Example 5
Source File: MockComponent.java From appinventor-extensions with Apache License 2.0 | 5 votes |
/** * Invoked by GWT whenever a browser event is dispatched to this component. */ @Override public void onBrowserEvent(Event event) { if (!shouldCancel(event)) return; switch (event.getTypeInt()) { case Event.ONTOUCHSTART: case Event.ONTOUCHEND: if (isForm()) { select(); } case Event.ONTOUCHMOVE: case Event.ONTOUCHCANCEL: cancelBrowserEvent(event); DomEvent.fireNativeEvent(event, handlers); break; case Event.ONMOUSEDOWN: case Event.ONMOUSEUP: case Event.ONMOUSEMOVE: case Event.ONMOUSEOVER: case Event.ONMOUSEOUT: cancelBrowserEvent(event); mouseListeners.fireMouseEvent(this, event); break; case Event.ONCLICK: cancelBrowserEvent(event); select(); break; default: // Ignore unexpected events break; } }
Example 6
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireGestureEndEvent(HasHandlers widget) { DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.GESTUREEND, false, false), widget); }
Example 7
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireMouseWheelEvent(HasHandlers widget) { DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.MOUSEWHEEL, false, false), widget); }
Example 8
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireMouseMoveEvent(HasHandlers widget) { DomEvent.fireNativeEvent( Document.get().createMouseMoveEvent(1, 1, 1, 1, 1, false, false, false, false, 1), widget ); }
Example 9
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireMouseDownEvent(HasHandlers widget) { DomEvent.fireNativeEvent( Document.get().createMouseDownEvent(1, 1, 1, 1, 1, false, false, false, false, 1), widget ); }
Example 10
Source File: Viewport.java From gwt-traction with Apache License 2.0 | 4 votes |
static void dispatchEvent(Event event, boolean hasFocus) { if (instance != null) { instance.hasFocus = hasFocus; DomEvent.fireNativeEvent(event, instance); } }
Example 11
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireTouchEndEvent(HasHandlers widget) { DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.TOUCHEND, false, false), widget); }
Example 12
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireTouchMoveEvent(HasHandlers widget) { DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.TOUCHMOVE, false, false), widget); }
Example 13
Source File: FullCalendar.java From gwtbootstrap3-extras with Apache License 2.0 | 4 votes |
private void renderCalendar() { boolean selectable = false; boolean selectHelper = false; boolean unselectAuto = true; boolean selectOverlap = true; JsArray<JavaScriptObject> javascriptParams = null; String language = null; String timezone = null; String weekNumberTitle = null; String unselectCancel = null; String selectContraint = null; if (config != null) { selectable = config.isSelectable(); selectHelper = config.isSelectHelper(); unselectAuto = config.isUnselectAuto(); selectOverlap = config.isSelectOverlap(); timezone = config.getTimezone(); weekNumberTitle = config.getWeekNumberTitle(); unselectCancel = config.getUnselectCancel(); selectContraint = config.getSelectContraint(); javascriptParams = config.getJavaScriptParameters(); if (config.getLangauge() != null) { language = config.getLangauge().getCode(); ensureInjected(config.getLangauge()); } } addCalendar(getElement().getId(), currentView.name(), editable, selectable, selectHelper, unselectAuto, selectOverlap, language, timezone, weekNumberTitle, unselectCancel, selectContraint, javascriptParams ); //Let everyone know it is ok to add events and set properties on the instance DomEvent.fireNativeEvent(Document.get().createLoadEvent(), this); }
Example 14
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireGestureStartEvent(HasHandlers widget) { DomEvent.fireNativeEvent(Document.get().createHtmlEvent(BrowserEvents.GESTURESTART, false, false), widget); }
Example 15
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireKeyUpEvent(HasHandlers widget) { DomEvent.fireNativeEvent(Document.get().createKeyUpEvent(false, false, false, false, 1), widget); }
Example 16
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireKeyDownEvent(HasHandlers widget) { DomEvent.fireNativeEvent(Document.get().createKeyDownEvent(false, false, false, false, 1), widget); }
Example 17
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireDoubleClickEvent(HasHandlers widget) { DomEvent.fireNativeEvent( Document.get().createDblClickEvent(1, 1, 1, 1, 1, false, false, false, false), widget ); }
Example 18
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireClickEvent(HasHandlers widget) { DomEvent.fireNativeEvent( Document.get().createClickEvent(1, 1, 1, 1, 1, false, false, false, false), widget ); }
Example 19
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireBlurEvent(HasHandlers widget) { DomEvent.fireNativeEvent(Document.get().createBlurEvent(), widget); }
Example 20
Source File: MaterialWidgetTestCase.java From gwt-material with Apache License 2.0 | 4 votes |
public void fireFocusEvent(HasHandlers widget) { DomEvent.fireNativeEvent(Document.get().createFocusEvent(), widget); }