/[classpath]/classpath/javax/swing/text/SimpleAttributeSet.java
ViewVC logotype

Diff of /classpath/javax/swing/text/SimpleAttributeSet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by rabbit78, Tue Sep 13 23:44:50 2005 UTC revision 1.11 by abalkiss, Tue Sep 27 19:37:41 2005 UTC
# Line 173  public class SimpleAttributeSet Line 173  public class SimpleAttributeSet
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)

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26