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 / html / StyleSheet$LargeConversionSet.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.2 KB  |  45 lines

  1. package javax.swing.text.html;
  2.  
  3. import javax.swing.text.AttributeSet;
  4. import javax.swing.text.SimpleAttributeSet;
  5. import javax.swing.text.StyleConstants;
  6.  
  7. class StyleSheet$LargeConversionSet extends SimpleAttributeSet {
  8.    // $FF: synthetic field
  9.    private final StyleSheet this$0;
  10.  
  11.    public StyleSheet$LargeConversionSet(StyleSheet var1, AttributeSet var2) {
  12.       super(var2);
  13.       this.this$0 = var1;
  14.    }
  15.  
  16.    public StyleSheet$LargeConversionSet(StyleSheet var1) {
  17.       this.this$0 = var1;
  18.    }
  19.  
  20.    public boolean isDefined(Object var1) {
  21.       if (var1 instanceof StyleConstants) {
  22.          CSS.Attribute var2 = StyleSheet.access$000(this.this$0).styleConstantsKeyToCSSKey((StyleConstants)var1);
  23.          if (var2 != null) {
  24.             return super.isDefined(var2);
  25.          }
  26.       }
  27.  
  28.       return super.isDefined(var1);
  29.    }
  30.  
  31.    public Object getAttribute(Object var1) {
  32.       if (var1 instanceof StyleConstants) {
  33.          CSS.Attribute var2 = StyleSheet.access$000(this.this$0).styleConstantsKeyToCSSKey((StyleConstants)var1);
  34.          if (var2 != null) {
  35.             Object var3 = super.getAttribute(var2);
  36.             if (var3 != null) {
  37.                return StyleSheet.access$000(this.this$0).cssValueToStyleConstantsValue((StyleConstants)var1, var3);
  38.             }
  39.          }
  40.       }
  41.  
  42.       return super.getAttribute(var1);
  43.    }
  44. }
  45.