Java Code Examples for com.vaadin.client.UIDL#getChildUIDL()
The following examples show how to use
com.vaadin.client.UIDL#getChildUIDL() .
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: CubaTextFieldConnector.java From cuba with Apache License 2.0 | 6 votes |
@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); } } } }
Example 2
Source File: CubaMaskedFieldConnector.java From cuba with Apache License 2.0 | 6 votes |
@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); } } } }
Example 3
Source File: CubaComboBoxConnector.java From cuba with Apache License 2.0 | 6 votes |
@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); } } } }
Example 4
Source File: CubaOrderedActionsLayoutConnector.java From cuba with Apache License 2.0 | 5 votes |
@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); } } }
Example 5
Source File: ViewClientCriterion.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
private static VAcceptCriterion getCriteria(final UIDL configuration, final int i) { final UIDL childUIDL = configuration.getChildUIDL(i); return VAcceptCriteria.get(childUIDL.getStringAttribute("name")); }