1 Clazz.declarePackage ("jssun.font");
\r
2 Clazz.load (["java.util.AbstractMap"], "jssun.font.AttributeMap", ["java.lang.Thread", "java.util.HashMap"], function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
4 this.$$values = null;
\r
5 this.delegateMap = null;
\r
6 Clazz.instantialize (this, arguments);
\r
7 }, jssun.font, "AttributeMap", java.util.AbstractMap);
\r
8 Clazz.makeConstructor (c$,
\r
10 Clazz.superConstructor (this, jssun.font.AttributeMap, []);
\r
11 this.$$values = values;
\r
12 }, "jssun.font.AttributeValues");
\r
13 Clazz.overrideMethod (c$, "entrySet",
\r
15 return this.delegate ().entrySet ();
\r
17 Clazz.overrideMethod (c$, "put",
\r
18 function (key, value) {
\r
19 return this.delegate ().put (key, value);
\r
20 }, "java.awt.font.TextAttribute,~O");
\r
21 Clazz.defineMethod (c$, "getValues",
\r
23 return this.$$values;
\r
25 Clazz.defineMethod (c$, "delegate",
\r
27 if (this.delegateMap == null) {
\r
28 if (jssun.font.AttributeMap.first) {
\r
29 jssun.font.AttributeMap.first = false;
\r
30 Thread.dumpStack ();
\r
31 }this.delegateMap = this.$$values.toMap ( new java.util.HashMap (27));
\r
32 this.$$values = null;
\r
33 }return this.delegateMap;
\r
35 Clazz.defineMethod (c$, "toString",
\r
37 if (this.$$values != null) {
\r
38 return "map of " + this.$$values.toString ();
\r
39 }return Clazz.superCall (this, jssun.font.AttributeMap, "toString", []);
\r
41 Clazz.defineStatics (c$,
\r