@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) { 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) { 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) { // 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 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 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) { 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(); }
getConnectorId(), client); panel.shortcutHandler.updateActionMap(childUidl);