@Override public void restoreState(FacesContext context, Object state) { if (state == null) { return; } Object[] values = (Object[]) state; super.restoreState(context, values[0]); Object restoredRowStates = UIComponentBase.restoreAttachedState(context, values[1]); if (restoredRowStates == null) { if (!_rowDeltaStates.isEmpty()) { _rowDeltaStates.clear(); } } else { _rowDeltaStates = (Map<String, Object>) restoredRowStates; } }
protected Map restorePropertyMap(FacesContext context, Object[] values, boolean restoreValuesFromAttachedState) { if (values == null) { return null; } Enum<?>[] allProperties = getAllProperties(); Map<String, Object> map = new HashMap<>(allProperties.length); for (int i = 0; i < allProperties.length; i++) { Object val = values[i]; if (restoreValuesFromAttachedState) { val = UIComponentBase.restoreAttachedState(context, val); } if (val != null) { map.put(allProperties[i].name(), val); } } return map; }
public void restoreState(FacesContext context, Object state) { Object[] values = (Object[]) state; delegate = (Converter) UIComponentBase.restoreAttachedState(context, values[0]); priority = (Integer) values[1]; valueExpression = (ValueExpression) values[2]; }
public void restoreState(FacesContext context, Object state) { Object values[] = (Object[])state; _propertyBinding = (ValueBinding)UIComponentBase.restoreAttachedState(context, values[0]); _value = values[1]; _valueBinding = (ValueBinding)UIComponentBase.restoreAttachedState(context, values[2]);; _converter = (Converter)UIComponentBase.restoreAttachedState(context, values[3]);; }
/** {@inheritDoc} */ public void restoreState(FacesContext context, Object state) { Object values[] = (Object[]) state; name = (String) values[0]; ref = (String) values[1]; vb = (ValueBinding) UIComponentBase.restoreAttachedState(context, values[2]); args = (Class[]) values[3]; }
public void restoreState(FacesContext context, Object states) { Object[] state = (Object[]) states; original = (MethodBinding) UIComponentBase.restoreAttachedState(context, state[0]); conversationName = (String) state[1]; onOutcomes = (Collection) state[2]; errorOutcome = (String) state[3]; restart = (Boolean) state[4]; restartAction = (MethodBinding) UIComponentBase.restoreAttachedState(context, state[5]); }
public void restoreState(FacesContext context, Object states) { Object[] state = (Object[]) states; original = (MethodBinding) UIComponentBase.restoreAttachedState(context, state[0]); conversationName = (String) state[1]; onOutcomes = (Collection) state[2]; errorOutcome = (String) state[3]; }
public void restoreState(FacesContext context, Object state) { Object[] values = (Object[]) state; valueExpression = (ValueExpression) UIComponentBase.restoreAttachedState(context, values[0]); type = (String) values[1]; }
/** {@inheritDoc} */ public void restoreState(FacesContext context, Object state) { Object values[] = (Object[]) state; name = (String) values[0]; ref = (String) values[1]; vb = (ValueBinding) UIComponentBase.restoreAttachedState(context, values[2]); args = (Class []) values[3]; }
@Override public void restoreState(final FacesContext context, final Object state) { final Object[] values = (Object[]) state; valueExpression = (ValueExpression) UIComponentBase.restoreAttachedState(context, values[0]); type = (String) values[1]; }
@Override public void restoreState(final FacesContext context, final Object state) { final Object[] values = (Object[]) state; clientIdsExpression = (ValueExpression) UIComponentBase.restoreAttachedState(context, values[0]); }
@Override public void restoreState(FacesContext context, Object state) { Object[] values = (Object[]) state; super.restoreState(context, values[0]); // restore fields values assignToBinding = (ValueExpression) UIComponentBase.restoreAttachedState(context, values[1]); noEscape = (Boolean) values[2]; converter = (Converter) UIComponentBase.restoreAttachedState(context, values[3]); actionListener = (MethodExpression) UIComponentBase.restoreAttachedState(context, values[4]); }
public void restoreState(FacesContext context, Object stateObject) { if (stateObject != null) { Object[] state = (Object[]) stateObject; backingList.ensureCapacity(state.length); for (int i = 0; i < state.length; i++) { backingList.add(UIComponentBase.restoreAttachedState(context, state[i])); } } }
private Map<Class<? extends SystemEvent>, List<SystemEventListener>> restoreSystemEventListeners(FacesContext ctx, Object state) { if (state == null) { return null; } Object[][] listeners = (Object[][]) state; Map<Class<? extends SystemEvent>, List<SystemEventListener>> m = new HashMap<>(listeners.length, 1.0f); for (int i = 0, len = listeners.length; i < len; i++) { Object[] source = listeners[i]; m.put((Class<? extends SystemEvent>) source[0], (List<SystemEventListener>) restoreAttachedState(ctx, source[1])); } return m; }
@Override public void restoreState(FacesContext context, Object state) { Object[] listAsMap = (Object[]) state; for (int cnt = 0; cnt < listAsMap.length; cnt += 2) { this.put((K) listAsMap[cnt], (V) UIComponentBase.restoreAttachedState(context, listAsMap[cnt + 1])); } }
public void restoreState(FacesContext context, Object state) { Object[] listAsMap = (Object[]) state; for (int cnt = 0; cnt < listAsMap.length; cnt += 2) { this.put((K) listAsMap[cnt], (V) UIComponentBase .restoreAttachedState(context, listAsMap[cnt + 1])); } }
public void restoreState(FacesContext context, Object state) { Object[] listAsMap = (Object[]) state; for (int cnt = 0; cnt < listAsMap.length; cnt += 2) { this.put((K) listAsMap[cnt], (V) UIComponentBase .restoreAttachedState(context, listAsMap[cnt + 1])); } }
public void restoreState(FacesContext context, Object stateObject) { Object[] state = (Object[]) stateObject; setCacheable((Boolean) state[0]); setContentType((String) state[1]); userData = UIComponentBase.restoreAttachedState(context, state[2]); contentProducer = (MethodExpression) UIComponentBase.restoreAttachedState(context, state[3]); fileName = (String) state[4]; }
@Override public void restoreState(final FacesContext context, final Object state) { final Object[] listAsMap = (Object[]) state; for (int cnt = 0; cnt < listAsMap.length; cnt += 2) { this.put((K) listAsMap[cnt], (V) UIComponentBase.restoreAttachedState(context, listAsMap[cnt + 1])); } }
@Override public void restoreState(FacesContext context, Object stateObject) { Object[] state = (Object[]) stateObject; super.restoreState(context, state[0]); boolean converterHasPartialState = Boolean.TRUE.equals(state[1]); Object savedConverterState = state[2]; if (converterHasPartialState) { ((StateHolder) rowKeyConverter).restoreState(context, savedConverterState); } else { rowKeyConverter = (Converter) UIComponentBase.restoreAttachedState(context, savedConverterState); } }