List of usage examples for com.google.gwt.event.dom.client FocusEvent FocusEvent
protected FocusEvent()
From source file:geogebra.web.gui.advanced.client.ui.widget.ListPopupPanel.java
License:Apache License
/** {@inheritDoc} */ public void show() { clickSpyRegistration = Event.addNativePreviewHandler(new ClickSpyHandler()); setHidden(false);/*from w ww.j a va 2s . co m*/ super.show(); adjustSize(); setHighlightRow(getComboBox().getModel().getSelectedIndex()); getComboBox().getDelegateHandler().onFocus(new FocusEvent() { }); }
From source file:gwt.material.design.addins.client.richeditor.MaterialRichEditor.java
License:Apache License
@Override public void load() { JsRichEditor jsRichEditor = $(getElement()); options.toolbar = manager.getToolbars(); options.placeholder = getPlaceholder(); options.height = getHeight();/*w ww .jav a2s . c o m*/ jsRichEditor.materialnote(options); // Events jsRichEditor.on(RichEditorEvents.MATERIALNOTE_BLUR, event -> { fireEvent(new BlurEvent() { }); return true; }); jsRichEditor.on(RichEditorEvents.MATERIALNOTE_FOCUS, event -> { fireEvent(new FocusEvent() { }); return true; }); jsRichEditor.on(RichEditorEvents.MATERIALNOTE_KEYUP, event -> { fireEvent(new KeyUpEvent() { }); return true; }); jsRichEditor.on(RichEditorEvents.MATERIALNOTE_KEYDOWN, event -> { fireEvent(new KeyDownEvent() { }); return true; }); jsRichEditor.on(RichEditorEvents.MATERIALNOTE_PASTE, event -> { fireEvent(new PasteEvent() { }); return true; }); jsRichEditor.on(RichEditorEvents.MATERIALNOTE_CHANGE, event -> { ValueChangeEvent.fire(MaterialRichEditor.this, getHTMLCode(getElement())); return true; }); checkContainer(); }
From source file:gwt.material.design.addins.client.timepicker.MaterialTimePicker.java
License:Apache License
/** * Called after the lolliclock event <code>afterShow</code>. *//* ww w .jav a2s. c o m*/ protected void afterShow() { OpenEvent.fire(this, this.time); fireEvent(new FocusEvent() { }); }
From source file:org.jbpm.form.builder.ng.model.common.handler.EventHelper.java
License:Apache License
protected static void onFocusEvent(final Widget widget, Event event) { FocusEvent fevent = new FocusEvent() { @Override//from w ww .j a v a2 s .c o m public Object getSource() { return widget; } }; fevent.setNativeEvent(event); List<FocusHandler> handlers = FOCUS_HANDLERS.get(widget); if (handlers != null) { for (FocusHandler handler : handlers) { handler.onFocus(fevent); } } }