public void addAttributes(AttributeSet attributes){
  Enumeration names=attributes.getAttributeNames();
  while (names.hasMoreElements()) {
    Object name=names.nextElement();
    addAttribute(name,attributes.getAttribute(name));
  }
}

public void addAttributes ( AttributeSet attributes ) { Enumeration names = attributes . getAttributeNames ( ) ; while ( names . hasMoreElements ( ) ) { Object name = names . nextElement ( ) ; addAttribute ( name , attributes . getAttribute ( name ) ) ; } }
adds a set of attributes to the list .
