/** * Initially and in the case of a reset all data should be pushed to the * client. */ @Override public void beforeClientResponse(boolean initial) { super.beforeClientResponse(initial); if (initial && getPushRows().isEmpty()) { // Make sure rows are pushed when component is attached. setPushRows(Range.withLength(0, getMinPushSize())); } sendDataToClient(initial); }
@Override public void beforeClientResponse(boolean initial) { super.beforeClientResponse(initial); getState().listeners = actionListeners.size() > 0 || (stopListeners != null && stopListeners.size() > 0); }
@Override public void beforeClientResponse(boolean initial) { super.beforeClientResponse(initial); if (settings != null) { getState().json = serializer.serialize(settings); } }
@Override public void beforeClientResponse(boolean initial) { super.beforeClientResponse(initial); if (!initial) { HtmlAttributesClientRpc clientRpc = getRpcProxy(HtmlAttributesClientRpc.class); if (!removeDomAttributes.isEmpty()) { clientRpc.removeDomAttributes(removeDomAttributes); this.removeDomAttributes = Collections.emptySet(); } if (!removeCssProperties.isEmpty()) { clientRpc.removeCssProperties(removeCssProperties); this.removeCssProperties = Collections.emptySet(); } } } }
bareItemSetTriggeredSizeChange = false; super.beforeClientResponse(initial);
@Override public void beforeClientResponse(boolean initial) { super.beforeClientResponse(initial); UI uI = getUI(); if (uI != null && uI.getConnectorTracker().isDirty(this)) { /* * This should also be used by MenuBar, upgrading it from Vaadin 6 * to Vaadin 7 communication mechanism. Thus to be moved e.g. to the * AbstractMenu. */ ContextMenuState menuSharedState = getState(); itemById = new HashMap<>(); menuSharedState.menuItems = convertItemsToState(getItems(), itemById); } }
@Override public void beforeClientResponse(boolean initial) { super.beforeClientResponse(initial); if (isPersistentSessionCookie()) { getState().persistentSessionTimeout = VaadinSession.getCurrent() .getSession().getMaxInactiveInterval(); } else { getState().persistentSessionTimeout = null; } }