List of usage examples for org.apache.wicket.util.value IValueMap makeImmutable
IValueMap makeImmutable();
IValueMap
immutable by changing the underlying map representation to a Collections.unmodifiableMap
. From source file:sf.wicklet.wicketext.markup.impl.WicketWriter.java
License:Apache License
protected void addAttributes(final IValueMap a, final String wicketid, final String... attrs) { if (wicketid != null) { a.put("wicket:id", wicketid); }/*from www . ja va 2 s . c om*/ for (int i = 0, len = attrs.length; i < len; i += 2) { a.put(attrs[i], attrs[i + 1]); } a.makeImmutable(); }
From source file:sf.wicklet.wicketext.markup.impl.WicketWriter.java
License:Apache License
protected void addAttributes(final IValueMap a, final String wicketid, final Iterable<IAttribute> attrs) { if (wicketid != null) { a.put("wicket:id", wicketid); }/*from ww w.j a v a 2s. com*/ for (final IAttribute attr : attrs) { a.put(attr.name(), attr.value()); } a.makeImmutable(); }