public void mergeFromAttributes(@Nonnull final Attributes attributesParam) { attributes.merge(attributesParam); }
@Nonnull public Element createPopupWithStyle( @Nonnull final Screen screen, @Nonnull final String popupId, @Nonnull final String id, @Nullable final String style, @Nullable final Attributes parameters) { @Nullable PopupType popupType = popupTypes.get(popupId); if (popupType == null) { throw new IllegalArgumentException("Popup ID \"" + popupId + "\" can't be matched to a popup type."); } popupType = popupType.copy(); if (style != null) { popupType.getAttributes().set("style", style); } if (parameters != null) { popupType.getAttributes().merge(parameters); } return createAndAddPopup(screen, id, popupType); }
void resolveParameters(@Nonnull final Attributes parentAttributes) { getAttributes().resolveParameters(parentAttributes); Attributes newParent = new Attributes(parentAttributes); newParent.merge(getAttributes()); interact.resolveParameters(newParent); effects.resolveParameters(newParent); for (ElementType elementType : elements) { elementType.resolveParameters(newParent); } }
@Nonnull final List<Object> controllers) { Attributes effectAttributes = new Attributes(getAttributes()); effectAttributes.merge(effectsTypeAttributes);