@Override public void setLabelledBy(String labelledBy) { getStateHelper().put("labelledby", labelledBy); } }
@Override public String getPaginatorTemplate() { return (String) getStateHelper().eval(PropertyKeys.paginatorTemplate, "{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"); }
public boolean isDefaultSort() { Object value = getStateHelper().get("defaultSort"); if (value == null) { return true; } else { return (java.lang.Boolean) value; } }
if (component.attributesThatAreSet == null) { if (value instanceof List) { component.getStateHelper().put(UIComponent.PropertyKeysPrivate.attributesThatAreSet, value); (List<String>) component.getStateHelper().get(PropertyKeysPrivate.attributesThatAreSet); if (sProperties == null) { component.getStateHelper().add(PropertyKeysPrivate.attributesThatAreSet, keyValue); } else if (!sProperties.contains(keyValue)) { component.getStateHelper().add(PropertyKeysPrivate.attributesThatAreSet, keyValue);
private void clearMultiSortMeta() { multiSortMeta = null; getStateHelper().remove("multiSortState"); }
public void restoreState(FacesContext context, Object state) { getStateHelper().restoreState(context, state); }
/** * <p>Add the argument <code>newPhaseListener</code> to the list of * {@link PhaseListener}s on this <code>UIViewRoot</code>.</p> * * @param newPhaseListener the {@link PhaseListener} to add * * @since 1.2 */ public void addPhaseListener(PhaseListener newPhaseListener) { getStateHelper().add(PropertyKeys.phaseListeners, newPhaseListener); }
if (component.attributesThatAreSet == null) { if (value instanceof List) { component.getStateHelper().put(UIComponent.PropertyKeysPrivate.attributesThatAreSet, value); List<String> sProperties = (List<String>) component.getStateHelper().get(PropertyKeysPrivate.attributesThatAreSet); if (sProperties == null) { component.getStateHelper().add(PropertyKeysPrivate.attributesThatAreSet, keyValue); } else if (!sProperties.contains(keyValue)) { component.getStateHelper().add(PropertyKeysPrivate.attributesThatAreSet, keyValue);
@Override public void processDecodes(FacesContext context) { if (!isRendered()) { return; } pushComponentToEL(context, this); preDecode(context); Map<String, SavedState> saved = (Map<String, SavedState>) getStateHelper().get(PropertyKeys.saved); if (saved == null) { getStateHelper().remove(PropertyKeys.saved); } processNodes(context, PhaseId.APPLY_REQUEST_VALUES); try { decode(context); } catch (RuntimeException e) { context.renderResponse(); throw e; } popComponentFromEL(context); }
protected void resetActiveIndex() { getStateHelper().remove(PropertyKeys.activeIndex); }
@Override public void restoreState(final FacesContext facesContext, final Object o) { if (o == null) { return; } final Object[] values = (Object[]) o; if (values[0] != null) { super.restoreState(facesContext, values[0]); } getStateHelper().restoreState(facesContext, values[1]); }
/** * Adds a The phaseListeners attached to ViewRoot. */ public void addPhaseListener(PhaseListener phaseListener) { if (phaseListener == null) { throw new NullPointerException("phaseListener"); } getStateHelper().add(PropertyKeys.phaseListeners, phaseListener); }
if (component.attributesThatAreSet == null) { if (value instanceof List) { component.getStateHelper().put(UIComponent.PropertyKeysPrivate.attributesThatAreSet, value); List<String> sProperties = (List<String>) component.getStateHelper().get(PropertyKeysPrivate.attributesThatAreSet); if (sProperties == null) { component.getStateHelper().add(PropertyKeysPrivate.attributesThatAreSet, keyValue); } else if (!sProperties.contains(keyValue)) { component.getStateHelper().add(PropertyKeysPrivate.attributesThatAreSet, keyValue);
public void setValue(Object value) { getStateHelper().put(PropertyKeys.value, value); _dataModelMap.clear(); _rowStates.clear(); _isValidChilds = true; }
@Override public String getSeverity() { return (String) getStateHelper().eval(PropertyKeys.severity, null); }
@Override public String getLabelledBy() { return (String) getStateHelper().get("labelledby"); }
private void preDecode(FacesContext context) { setDataModel(null); // Re-evaluate even with server-side state saving Map<String, SavedState> saved = (Map<String, SavedState>) getStateHelper().get(PropertyKeys.saved); if (null == saved || !keepSaved(context)) { //noinspection CollectionWithoutInitialCapacity getStateHelper().remove(PropertyKeys.saved); } }
public void clearDefaultSorted() { getStateHelper().remove("defaultSorted"); }