0bf67257d098f89f9f3edc6770bc2ebe45cdbc07
[jalviewjs.git] / site / j2s / javax / swing / LayoutStyle.js
1 Clazz.declarePackage ("javax.swing");
2 Clazz.load (["java.lang.Enum"], "javax.swing.LayoutStyle", ["javax.swing.UIManager", "jssun.awt.AppContext"], function () {
3 c$ = Clazz.declareType (javax.swing, "LayoutStyle");
4 c$.setInstance = Clazz.defineMethod (c$, "setInstance", 
5 function (style) {
6 {
7 if (style == null) {
8 jssun.awt.AppContext.getAppContext ().remove (javax.swing.LayoutStyle);
9 } else {
10 jssun.awt.AppContext.getAppContext ().put (javax.swing.LayoutStyle, style);
11 }}}, "javax.swing.LayoutStyle");
12 c$.getInstance = Clazz.defineMethod (c$, "getInstance", 
13 function () {
14 var style;
15 {
16 style = jssun.awt.AppContext.getAppContext ().get (javax.swing.LayoutStyle);
17 }if (style == null) {
18 return javax.swing.UIManager.getLookAndFeel ().getLayoutStyle ();
19 }return style;
20 });
21 Clazz.makeConstructor (c$, 
22 function () {
23 });
24 Clazz.pu$h(self.c$);
25 c$ = Clazz.declareType (javax.swing.LayoutStyle, "ComponentPlacement", Enum);
26 Clazz.defineEnumConstant (c$, "RELATED", 0, []);
27 Clazz.defineEnumConstant (c$, "UNRELATED", 1, []);
28 Clazz.defineEnumConstant (c$, "INDENT", 2, []);
29 c$ = Clazz.p0p ();
30 });