home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 144 / DPCS0200.iso / Internet / Supanet / system / swing.jar / javax / swing / text / html / CSS.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-05  |  1.4 KB  |  34 lines

  1. package javax.swing.text.html;
  2.  
  3. import java.util.Hashtable;
  4.  
  5. public class CSS {
  6.    private static final Hashtable attributeMap = new Hashtable();
  7.    private static final Hashtable valueMap = new Hashtable();
  8.  
  9.    static {
  10.       for(int var0 = 0; var0 < javax.swing.text.html.CSS.Attribute.allAttributes.length; ++var0) {
  11.          attributeMap.put(javax.swing.text.html.CSS.Attribute.allAttributes[var0].toString(), javax.swing.text.html.CSS.Attribute.allAttributes[var0]);
  12.       }
  13.  
  14.       for(int var1 = 0; var1 < javax.swing.text.html.CSS.Value.allValues.length; ++var1) {
  15.          valueMap.put(javax.swing.text.html.CSS.Value.allValues[var1].toString(), javax.swing.text.html.CSS.Value.allValues[var1]);
  16.       }
  17.  
  18.    }
  19.  
  20.    public static Attribute[] getAllAttributeKeys() {
  21.       Attribute[] var0 = new Attribute[javax.swing.text.html.CSS.Attribute.allAttributes.length];
  22.       System.arraycopy(javax.swing.text.html.CSS.Attribute.allAttributes, 0, var0, 0, javax.swing.text.html.CSS.Attribute.allAttributes.length);
  23.       return var0;
  24.    }
  25.  
  26.    public static final Attribute getAttribute(String var0) {
  27.       return (Attribute)attributeMap.get(var0);
  28.    }
  29.  
  30.    static final Value getValue(String var0) {
  31.       return (Value)valueMap.get(var0);
  32.    }
  33. }
  34.