public void removeWithTag(final String tag) { Set < String > tagged = taggedAttributes.get(tag); if (tagged != null) { for (String key : tagged) { remove(key); } } }
@Nonnull public Attributes removeStandard() { Attributes attributes = new Attributes(controlAttributes); attributes.remove("id"); attributes.remove("height"); attributes.remove("width"); attributes.remove("x"); attributes.remove("y"); attributes.remove("align"); attributes.remove("valign"); attributes.remove("paddingLeft"); attributes.remove("paddingRight"); attributes.remove("paddingTop"); attributes.remove("paddingBottom"); attributes.remove("padding"); attributes.remove("marginLeft"); attributes.remove("marginRight"); attributes.remove("marginTop"); attributes.remove("marginBottom"); attributes.remove("margin"); attributes.remove("childClip"); attributes.remove("visible"); attributes.remove("visibleToMouse"); attributes.remove("childLayout"); attributes.remove("focusable"); attributes.remove("filename"); attributes.remove("filter"); attributes.remove("imageMode"); attributes.remove("inset"); attributes.remove("backgroundColor");
thisType.getAttributes().remove("id");
@SuppressWarnings("ConstantConditions") public void resolveParameters(@Nonnull final Attributes attributes) { List<Parameter> entrySet = getParameterSet(); for (Parameter entry : entrySet) { String key = entry.getKey(); String value = entry.getValue(); // first check the given attributes and then check our own if (attributes.isSet(key)) { set(value, controlParameter.applyParameter(entry.getOriginalValue(), entry.getKey(), attributes.get(key))); } else if (isSet(key) && !isParameterDefinition(get(key))) { set(value, get(key)); } else { remove(value); } } }