1 Clazz.declarePackage ("javax.swing");
2 Clazz.load (["javax.swing.JComponent", "$.SwingConstants"], "javax.swing.JSeparator", ["java.lang.IllegalArgumentException", "javax.swing.UIManager"], function () {
3 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, javax.swing, "JSeparator", javax.swing.JComponent, javax.swing.SwingConstants);
7 Clazz.makeConstructor (c$,
11 Clazz.makeConstructor (c$,
12 function (orientation) {
13 Clazz.superConstructor (this, javax.swing.JSeparator, []);
14 this.checkOrientation (orientation);
15 this.orientation = orientation;
16 this.setFocusable (false);
19 Clazz.overrideMethod (c$, "getUI",
23 Clazz.overrideMethod (c$, "updateUI",
25 this.setUI (javax.swing.UIManager.getUI (this));
27 Clazz.overrideMethod (c$, "getUIClassID",
31 Clazz.defineMethod (c$, "getOrientation",
33 return this.orientation;
35 Clazz.defineMethod (c$, "setOrientation",
36 function (orientation) {
37 if (this.orientation == orientation) {
39 }var oldValue = this.orientation;
40 this.checkOrientation (orientation);
41 this.orientation = orientation;
42 this.firePropertyChangeInt ("orientation", oldValue, orientation);
46 Clazz.defineMethod (c$, "checkOrientation",
47 function (orientation) {
48 switch (orientation) {
53 throw new IllegalArgumentException ("orientation must be one of: VERTICAL, HORIZONTAL");
56 Clazz.defineMethod (c$, "paramString",
58 var orientationString = (this.orientation == 0 ? "HORIZONTAL" : "VERTICAL");
59 return Clazz.superCall (this, javax.swing.JSeparator, "paramString", []) + ",orientation=" + orientationString;
61 Clazz.defineStatics (c$,
62 "$uiClassID", "SeparatorUI");