public void onKeyDownOnVisiblePopup(NativeEvent nativeEvent, ComponentConnector target) { if (popup.shortcutActionHandler != null) { popup.shortcutActionHandler.handleKeyboardEvent(Event.as(nativeEvent), target); } }
@Override public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { final int cnt = uidl.getChildCount(); for (int i = 0; i < cnt; i++) { UIDL childUidl = uidl.getChildUIDL(i); if (childUidl.getTag().equals("actions")) { if (getWidget().getShortcutHandler() == null) { getWidget().setShortcutHandler(new ShortcutActionHandler(uidl.getId(), client)); } getWidget().getShortcutHandler().updateActionMap(childUidl); } } }
@Override public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { super.updateFromUIDL(uidl, client); if (uidl.hasVariable("collapsedcolumns")) { getWidget().addStyleName("collapsing-allowed"); } else { getWidget().removeStyleName("collapsing-allowed"); } // We may have actions attached to this table if (uidl.getChildCount() > 1) { final int cnt = uidl.getChildCount(); for (int i = 0; i < cnt; i++) { UIDL childUidl = uidl.getChildUIDL(i); if (childUidl.getTag().equals("shortcuts")) { if (getWidget().getShortcutActionHandler() == null) { getWidget().setShortcutActionHandler(new CubaTableShortcutActionHandler(uidl.getId(), client, this)); } getWidget().getShortcutActionHandler().updateActionMap(childUidl); } } } }
@Override public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { final int cnt = uidl.getChildCount(); for (int i = 0; i < cnt; i++) { UIDL childUidl = uidl.getChildUIDL(i); if (childUidl.getTag().equals("actions")) { if (getWidget().getShortcutHandler() == null) { getWidget().setShortcutHandler(new ShortcutActionHandler(uidl.getId(), client)); } getWidget().getShortcutHandler().updateActionMap(childUidl); } } }
@Override public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { super.updateFromUIDL(uidl, client); if (uidl.hasVariable("collapsedcolumns")) { getWidget().addStyleName("collapsing-allowed"); } else { getWidget().removeStyleName("collapsing-allowed"); } // We may have actions attached to this table if (uidl.getChildCount() > 1) { final int cnt = uidl.getChildCount(); for (int i = 1; i < cnt; i++) { UIDL childUidl = uidl.getChildUIDL(i); if (childUidl.getTag().equals("shortcuts")) { if (getWidget().getShortcutActionHandler() == null) { getWidget().setShortcutActionHandler(new CubaTableShortcutActionHandler(uidl.getId(), client, this)); } getWidget().getShortcutActionHandler().updateActionMap(childUidl); } } } getWidget().updateTableBodyScroll(); }
public void onKeyDownOnVisiblePopup(NativeEvent nativeEvent, ComponentConnector target) { if (popup.shortcutActionHandler != null) { popup.shortcutActionHandler.handleKeyboardEvent(Event.as(nativeEvent), target); } }
@Override public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { final int cnt = uidl.getChildCount(); for (int i = 0; i < cnt; i++) { UIDL childUidl = uidl.getChildUIDL(i); if (childUidl.getTag().equals("actions")) { if (getWidget().getShortcutHandler() == null) { getWidget().setShortcutHandler(new ShortcutActionHandler(uidl.getId(), client)); } getWidget().getShortcutHandler().updateActionMap(childUidl); } } } }
getConnectorId(), client); panel.shortcutHandler.updateActionMap(childUidl);
public void onKeyDownOnVisiblePopup(NativeEvent nativeEvent, ComponentConnector target) { if (popup.shortcutActionHandler != null) { popup.shortcutActionHandler.handleKeyboardEvent(Event.as(nativeEvent), target); } }
@Override public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { // We may have actions attached to this text field if (uidl.getChildCount() > 0) { final int cnt = uidl.getChildCount(); for (int i = 0; i < cnt; i++) { UIDL childUidl = uidl.getChildUIDL(i); if (childUidl.getTag().equals("actions")) { if (getWidget().getShortcutActionHandler() == null) { getWidget().setShortcutActionHandler(new ShortcutActionHandler(uidl.getId(), client)); } getWidget().getShortcutActionHandler().updateActionMap(childUidl); } } } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); final int type = DOM.eventGetType(event); if (type == Event.ONKEYDOWN && shortcutHandler != null) { shortcutHandler.handleKeyboardEvent(event); } }
@Override public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { // We may have actions attached to this text field if (uidl.getChildCount() > 0) { final int cnt = uidl.getChildCount(); for (int i = 0; i < cnt; i++) { UIDL childUidl = uidl.getChildUIDL(i); if (childUidl.getTag().equals("actions")) { if (getWidget().getShortcutActionHandler() == null) { getWidget().setShortcutActionHandler(new ShortcutActionHandler(uidl.getId(), client)); } getWidget().getShortcutActionHandler().updateActionMap(childUidl); } } } // update read only, cause tabIndex on the TextBox sets after updateReadOnly getWidget().updateReadOnly(); }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); final int type = DOM.eventGetType(event); if (type == Event.ONKEYDOWN && shortcutHandler != null) { shortcutHandler.handleKeyboardEvent(event); } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); final int type = DOM.eventGetType(event); if (type == Event.ONKEYDOWN && _delegate.shortcutHandler != null) { _delegate.shortcutHandler.handleKeyboardEvent(event); } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); final int type = DOM.eventGetType(event); if (type == Event.ONKEYDOWN && _delegate.shortcutHandler != null) { _delegate.shortcutHandler.handleKeyboardEvent(event); } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); final int type = DOM.eventGetType(event); if (type == Event.ONKEYDOWN && shortcutHandler != null) { shortcutHandler.handleKeyboardEvent(event); } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); final int type = DOM.eventGetType(event); if (type == Event.ONKEYDOWN && shortcutHandler != null) { shortcutHandler.handleKeyboardEvent(event); } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); final int type = DOM.eventGetType(event); if (type == Event.ONKEYDOWN && shortcutHandler != null) { shortcutHandler.handleKeyboardEvent(event); } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); final int type = DOM.eventGetType(event); if (type == Event.ONKEYDOWN && shortcutHandler != null) { shortcutHandler.handleKeyboardEvent(event); } }
public void handleKeyboardEvent(Event event) { // ignore keyboard shortcut if enter was pressed within a textarea int keyCode = DOM.eventGetKeyCode(event); if (keyCode == KeyCodes.KEY_ENTER) { Element el = DOM.eventGetTarget(event); if (el.getTagName().equalsIgnoreCase(TextAreaElement.TAG)) { return; } } super.handleKeyboardEvent(event); } }