home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text.html;
-
- class StyleSheet$FontWeight extends StyleSheet.CssValue {
- // $FF: synthetic field
- private final StyleSheet this$0;
- int weight;
-
- StyleSheet$FontWeight(StyleSheet var1) {
- super(var1);
- this.this$0 = var1;
- }
-
- int getValue() {
- return this.weight;
- }
-
- Object parseCssValue(String var1) {
- StyleSheet$FontWeight var2 = new StyleSheet$FontWeight(this.this$0);
- var2.svalue = var1;
- if (var1.equals("bold")) {
- var2.weight = 700;
- } else if (var1.equals("normal")) {
- var2.weight = 400;
- } else {
- try {
- var2.weight = Integer.parseInt(var1);
- } catch (NumberFormatException var3) {
- var2 = null;
- }
- }
-
- return var2;
- }
- }
-