home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / text / SimpleAttributeSet$EmptyAttributeSet.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.1 KB  |  52 lines

  1. package javax.swing.text;
  2.  
  3. import java.io.Serializable;
  4. import java.util.Enumeration;
  5. import javax.swing.tree.DefaultMutableTreeNode;
  6.  
  7. class SimpleAttributeSet$EmptyAttributeSet implements AttributeSet, Serializable {
  8.    public int getAttributeCount() {
  9.       return 0;
  10.    }
  11.  
  12.    public boolean isDefined(Object var1) {
  13.       return false;
  14.    }
  15.  
  16.    public boolean isEqual(AttributeSet var1) {
  17.       return var1.getAttributeCount() == 0;
  18.    }
  19.  
  20.    public AttributeSet copyAttributes() {
  21.       return this;
  22.    }
  23.  
  24.    public Object getAttribute(Object var1) {
  25.       return null;
  26.    }
  27.  
  28.    public Enumeration getAttributeNames() {
  29.       return DefaultMutableTreeNode.EMPTY_ENUMERATION;
  30.    }
  31.  
  32.    public boolean containsAttribute(Object var1, Object var2) {
  33.       return false;
  34.    }
  35.  
  36.    public boolean containsAttributes(AttributeSet var1) {
  37.       return var1.getAttributeCount() == 0;
  38.    }
  39.  
  40.    public AttributeSet getResolveParent() {
  41.       return null;
  42.    }
  43.  
  44.    public boolean equals(Object var1) {
  45.       if (this == var1) {
  46.          return true;
  47.       } else {
  48.          return var1 instanceof AttributeSet && ((AttributeSet)var1).getAttributeCount() == 0;
  49.       }
  50.    }
  51. }
  52.