173 |
tab.remove(name); |
tab.remove(name); |
174 |
} |
} |
175 |
|
|
176 |
|
/** |
177 |
|
* Removes attributes from this set if they are found in the |
178 |
|
* given set. Only attributes whose key AND value are removed. |
179 |
|
* Removes attributes only from this set, not from the resolving parent. |
180 |
|
*/ |
181 |
public void removeAttributes(AttributeSet attributes) |
public void removeAttributes(AttributeSet attributes) |
182 |
{ |
{ |
183 |
removeAttributes(attributes.getAttributeNames()); |
Enumeration e = attributes.getAttributeNames(); |
184 |
|
while (e.hasMoreElements()) |
185 |
|
{ |
186 |
|
Object name = e.nextElement(); |
187 |
|
Object val = attributes.getAttribute(name); |
188 |
|
if (containsAttribute(name, val)) |
189 |
|
removeAttribute(name); |
190 |
|
} |
191 |
} |
} |
192 |
|
|
193 |
public void removeAttributes(Enumeration names) |
public void removeAttributes(Enumeration names) |